
HashiCorp Certified:Terraform Associate
Domain 4Objective 3
4c Use Variables and Outputs TERRAFORM-ASSOCIATE-004 Practice Questions (Page 7)
Part of the Terraform configuration domain, which makes up ~22% of our current practice bank. HashiCorp does not publish an official question count, but from its 60-minute exam (~25–40 total, ~6–9 in this domain), expect 1–1 from this objective — we provide 34 practice questions to prepare you well beyond it. (estimate)
34questions here
7free pages
12concepts
Questions 31–34
- 31
A developer has a Terraform configuration with a variable `instance_count` defined with a default of 2. The developer runs `terraform apply -var='instance_count=4'` in a directory that contains a `terraform.tfvars` file setting `instance_count = 3` and an environment variable `TF_VAR_instance_count=5`. What value will Terraform use for `instance_count`?
Select an answer first - 32
How do you reference an output value named 'vpc_id' from a child module named 'network'?
Select an answer first - 33
Which type constraint allows a variable to accept a value of any type?
Select an answer first - 34
A root module calls a child module that creates a VNet. The root module needs to pass the VNet's ID to a resource in another module. How should the root module access the VNet ID?
Select an answer first
Finished these 4 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to TERRAFORM-ASSOCIATE-004
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-ASSOCIATE-004” is a trademark of its owner, used for identification only.