HashiCorp Terraform Associate 003 - HashiCorp Certified: Terraform Associate (003) Exam
Page: 3 / 27
Total 133 questions
Question #11 (Topic: Exam A)
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
A. Delete the state before running Terraform.
B. Refresh the state after running Terraform.
C. Run Terraform with parallelism set to 1.
D. Configure state locking for your state backend.
Answer: D
Question #12 (Topic: Exam A)
When should you use the force-unlock command?
A. When apply has failed due to a state lock.
B. When automatic unlocking has failed.
C. When you see a status message stating that you cannot acquire the lock.
D. When you have a high priority change.
Answer: B
Question #13 (Topic: Exam A)
Which of the following is not a benefit of adopting infrastructure as code?
A. Versioning
B. Automation
C. Reusability of code
D. A Graphical User Interface
Answer: D
Question #14 (Topic: Exam A)
You used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform configuration. To be safe, you would like to first see all the infrastructure that Terraform will delete.
Which command should you use to show all the resources that will be deleted? (Choose two.)
Which command should you use to show all the resources that will be deleted? (Choose two.)
A. Run terraform state rm *.
B. Run terraform destroy.This will output all the resources that will be deleted before prompting for approval.
C. Run terraform plan -destroy.
D. Run terraform show -destroy.
Answer: BC
Question #15 (Topic: Exam A)
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
A. terraform init
B. terraform get
C. terraform import
D. terraform refresh
Answer: C