
HashiCorp Certified:Terraform Authoring and Operations Professional
Domain 2Objective 5
2e TERRAFORM-AUTHORING-AND-OPERATIONS-PROFESSIONAL Practice Questions (Page 2)
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 18 practice questions to prepare you well beyond it. (estimate)
18questions here
4free pages
6concepts
Questions 6–10
- 6
Which block is used to declare an input variable in Terraform configuration?
Select an answer first - 7
A CI pipeline runs `terraform plan` with the following setup: a `terraform.tfvars` file sets `instance_count = 3`, the environment variable `TF_VAR_instance_count=5` is set, and the command line includes `-var='instance_count=2'`. The variable has no default. What value will be used for `instance_count`?
Select an answer first - 8
Which output value type is represented by a collection of key-value pairs where each value can be of any type?
Select an answer first - 9
A team defines a variable to represent a load balancer configuration. Each listener needs a port, a protocol, and a target group name. They want to enforce that the port is between 1 and 65535 and that the protocol is one of `HTTP`, `HTTPS`, or `TCP`. They also need to output the listener configurations for documentation. Which variable type and validation is most appropriate?
Select an answer first - 10
A developer runs `terraform plan` in a CI pipeline. The configuration defines a variable `region` with a default of `us-east-1` and a variable `api_key` marked as sensitive. The pipeline sets `TF_VAR_region=eu-west-1` in the environment and passes `-var='api_key=...'` on the command line. A `terraform.tfvars` file in the directory also sets `region = "ap-south-1"`. What value of `region` will be used?
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.