HashiCorp Terraform Associate 003 - HashiCorp Certified: Terraform Associate (003) Exam
Page: 1 / 19
Total 93 questions
Question #1 (Topic: Exam A)
As a developer, you want to ensure your plugins are up-to-date with the latest versions. Which Terraform command should you use?
A. terraform refresh -upgrade
B. terraform apply -upgrade
C. terraform providers -upgrade
D. terraform init -upgrade
Answer: D
Question #2 (Topic: Exam A)
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
A. Delete the state file every time you run Terraform.
B. Store the state in an encrypted backend.
C. Always store your secrets in a secrets.tfvars file.
D. Edit your state file to scrub out the sensitive data.
Answer: B
Question #3 (Topic: Exam A)
You can reference a resource created with for_each using a splat ( * ) expression.
A. True
B. False
Answer: A
Question #4 (Topic: Exam A)
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working directory contains a .terraform.lock.hcl file.
How will Terraform choose which version of the provider to use?
How will Terraform choose which version of the provider to use?
A. Terraform will use the latest version of the provider for the new resource and the version recorded in the lock file to manage existing resources.
B. Terraform will use the version recorded in your lock file.
C. Terraform will check your state file to determine the provider version to use.
D. Terraform will use the latest version of the provider available at the time you provision your new resource.
Answer: B
Question #5 (Topic: Exam A)
All standard backend types support state storage, locking, and remote operations like plan, apply, and destroy.
A. True
B. False
Answer: B