- (Exam Topic 1)
Which of the following is not true of Terraform providers?
Correct Answer:
E
https://registry.terraform.io/providers/hashicorp/google/latest - This provider is collaboratively maintained by the Google Terraform Team at Google and the Terraform team at HashiCorp
https://www.terraform.io/language/providers
- (Exam Topic 1)
Which of the following is allowed as a Terraform variable name?
Correct Answer:
B
"The name of a variable can be any valid identifier except the following: source, version, providers, count, for_each, lifecycle, depends_on, locals." https://www.terraform.io/language/values/variables
- (Exam Topic 4)
Why should secrets not be hard coded into Terraform code? Choose two correct answers
Correct Answer:
BC
- (Exam Topic 3)
The canonical format may change in minor ways between Terraform versions, so after upgrading Terraform it is recommended to proactively run.
Correct Answer:
A
- (Exam Topic 4)
What does the command terraform fmt do?
Correct Answer:
A
The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style. This command applies a subset of the Terraform language style conventions, along with other minor adjustments for readability.
Other Terraform commands that generate Terraform configuration will produce configuration files that conform to the style imposed by terraform fmt, so using this style in your own files will ensure consistency.
https://www.terraform.io/docs/commands/fmt.html