Free TA-002-P Exam Braindumps

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

Page 22 of 19
QUESTION 101

- (Exam Topic 4)
Choose the answer that correctly completes the sentence: _______ backends support state locking.

  1. A. All
  2. B. No
  3. C. Only local
  4. D. Some

Correct Answer: D

QUESTION 102

- (Exam Topic 3)
You have already set TF_LOG = DEBUG to enable debug log. Now you want to always write the log to the directory you're currently running terraform from. what should you do to achieve this.

  1. A. Run the command export TF_LOG_FILE=./terraform.log.
  2. B. Run the command export TF_LOG_PATH=./terraform.log.
  3. C. Run the command export TF_DEBUG_PATH=./terraform.log.
  4. D. No explicit action require
  5. E. Terraform will take care of this as you have enable TF_LOG.

Correct Answer: B
https://www.terraform.io/docs/commands/environment-variables.html

QUESTION 103

- (Exam Topic 4)
A variable az has the following default value. What will be the datatype of the variable? az=["us-west-1a","us-east-1a"]

  1. A. Object
  2. B. List
  3. C. Map
  4. D. String

Correct Answer: B

QUESTION 104

- (Exam Topic 2)
You want terraform plan and apply to be executed in Terraform Cloud's run environment but the output is to be streamed locally. Which one of the below you will choose?

  1. A. Local Backends
  2. B. This can be done using any of the local or remote backends
  3. C. Remote Backends
  4. D. Terraform Backends

Correct Answer: C
The remote backend stores Terraform state and may be used to run operations in Terraform Cloud. When using full remote operations, operations like terraform plan or terraform apply can be executed in
Terraform Cloud's run environment, with log output streaming to the local terminal.
Remote plans and applies use variable values from the associated Terraform Cloud workspace. https://www.terraform.io/docs/backends/types/remote.html

QUESTION 105

- (Exam Topic 1)
Where does the Terraform local backend store its state?

  1. A. In the /tmp directory
  2. B. In the terraform.tfvars file
  3. C. In the terraform.tfstate file
  4. D. In the user's .terraformrc file

Correct Answer: C
https://www.terraform.io/language/state
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
Reference: https://www.terraform.io/docs/language/settings/backends/local.html

Page 22 of 19

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