
HashiCorp Certified:Terraform Authoring and Operations Professional
Domain 4Objective 3
4c TERRAFORM-AUTHORING-AND-OPERATIONS-PROFESSIONAL Practice Questions (Page 1)
Part of the Create, maintain, and use Terraform modules domain, which makes up ~13% of our current practice bank. HashiCorp does not publish an official question count, but from its 240-minute exam (~95–160 total, ~12–21 in this domain), expect 3–5 from this objective — we provide 23 practice questions to prepare you well beyond it. (estimate)
23questions here
5free pages
6concepts
Questions 1–5
- 1
You are refactoring a Terraform module that creates an AWS EC2 instance. The module currently uses a `count` to create multiple instances based on a list of names. You want to change this to use `for_each` to improve the handling of instance state. What is the most important consideration when making this change?
Select an answer first - 2
You are upgrading a module in your configuration from version `1.0.0` to `1.1.0`. The module's changelog indicates that a new output `vpc_id` was added, and the existing `vpc_name` output is now deprecated but still functional. After updating the source reference and running `terraform plan`, you notice that the plan is empty. What does this indicate?
Select an answer first - 3
You have published version `1.0.0` of a module to your private registry. You later make a backward-compatible bug fix and want to publish it. What version should you publish?
Select an answer first - 4
Your team maintains a Terraform module that provisions an Azure virtual network. The module currently creates a single `azurerm_virtual_network` resource with a fixed address space. A new requirement demands that consumers be able to create multiple subnets with different address prefixes. You want to refactor the module to accept a map of subnet names to prefixes. What is the most appropriate way to implement this change while minimizing disruption to existing consumers?
Select an answer first - 5
A team maintains a Terraform module that has been in production for over a year. They want to restructure the module's internal resource definitions to improve readability and reduce duplication. What is the primary reason to prioritize preserving the module's existing input variables and outputs during this refactoring?
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.