- (Exam Topic 4)
Choose the answer that correctly completes the sentence: _______ backends support state locking.
Correct Answer:
D
- (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.
Correct Answer:
B
https://www.terraform.io/docs/commands/environment-variables.html
- (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"]
Correct Answer:
B
- (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?
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
- (Exam Topic 1)
Where does the Terraform local backend store its state?
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