
HashiCorp Certified:Terraform Authoring and Operations Professional
Domain 2Objective 4
2d TERRAFORM-AUTHORING-AND-OPERATIONS-PROFESSIONAL Practice Questions (Page 1)
Part of the Develop and troubleshoot dynamic configuration domain, which makes up ~20% of our current practice bank. HashiCorp does not publish an official question count, but from its 240-minute exam (~95–160 total, ~19–32 in this domain), expect 3–5 from this objective — we provide 10 practice questions to prepare you well beyond it. (estimate)
10questions here
2free pages
6concepts
Questions 1–5
- 1
When should you use the depends_on meta-argument in a Terraform configuration?
Select an answer first - 2
What is the purpose of the provider meta-argument in a resource block?
Select an answer first - 3
You are managing a Terraform configuration that creates an Azure VM. The VM's OS disk is encrypted with a customer-managed key. You need to ensure that if the encryption key is rotated, Terraform does not attempt to replace the VM. Which lifecycle argument should you configure?
Select an answer first - 4
How do you reference the key of an instance created with for_each?
Select an answer first - 5
You are configuring a Terraform module that creates an Azure App Service and a diagnostic setting that sends logs to a Log Analytics Workspace. The diagnostic setting resource references the workspace ID and the App Service ID, but Terraform's dependency graph does not automatically order the creation correctly because the workspace is created in a separate module. The diagnostic setting is failing because the workspace does not exist yet. What should you do?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by HashiCorp. “TERRAFORM-AUTHORING-AND-OPERATIONS-PROFESSIONAL” is a trademark of its owner, used for identification only.