Free TA-002-P Exam Braindumps

Pass your HashiCorp Certified: Terraform Associate exam with these free Questions and Answers

Page 23 of 19
QUESTION 106

- (Exam Topic 4)
What Terraform command can be used to inspect the current state file?

  1. A. terraform inspect
  2. B. terraform read
  3. C. terraform show
  4. D. terraform state

Correct Answer: C

QUESTION 107

- (Exam Topic 2)
What is the standard workflow that a developer follows while working with terraform open source version?

  1. A. Run terraform refresh to update the terraform state , then write the terraform code , and finally run terraform apply.
  2. B. Run terraform destroy first since you need to start from fresh every time , before running terraform apply.
  3. C. Write terraform code , and run terraform push , to update the terraform state to the remote repo , which in turn will take care of the next steps.
  4. D. Write the terraform code on the developer machine , run terraform plan to check the changes , and run terraform apply to provision the infra.

Correct Answer: D
You do not need to run terraform refresh as terraform plan implicitly will run terraform refresh. https://www.terraform.io/guides/core-workflow.html

QUESTION 108

- (Exam Topic 4)
You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called
TA-002-P dumps exhibit
You immediately run terraform apply but don't see any changes. Your state file didn't move. Which command
will migrate your current state file to the new S3 remote backend?

  1. A. terraform push
  2. B. terraform init
  3. C. terraform refresh
  4. D. terraform state

Correct Answer: B

QUESTION 109

- (Exam Topic 1)
Which of the following is not a valid string function in Terraform?

  1. A. split
  2. B. join
  3. C. slice
  4. D. chomp

Correct Answer: C

https://www.terraform.io/language/functions

QUESTION 110

- (Exam Topic 1)
Which of these is the best practice to protect sensitive values in state files?

  1. A. Blockchain
  2. B. Secure Sockets Layer (SSL)
  3. C. Enhanced remote backends
  4. D. Signed Terraform providers

Correct Answer: C
Use of remote backends and especially the availability of Terraform Cloud, there are now a variety of backends that will encrypt state at rest and will not store the state in cleartext on machines running. Reference:
https://www.terraform.io/docs/extend/best-practices/sensitive-state.html

Page 23 of 19

Post your Comments and Discuss HashiCorp TA-002-P exam with other Community members: