
HashiCorp Certified:Terraform Associate
Domain 5Objective 3
5c Use Modules in Configuration TERRAFORM-ASSOCIATE-004 Practice Questions (Page 1)
Part of the Terraform modules domain, which makes up ~8% of our current practice bank. HashiCorp does not publish an official question count, but from its 60-minute exam (~25–40 total, ~2–3 in this domain), expect 1–1 from this objective — we provide 16 practice questions to prepare you well beyond it. (estimate)
16questions here
4free pages
7concepts
Questions 1–5
- 1
Module A creates a security group. Module B creates an EC2 instance that needs to use the security group ID from Module A. How can Module B reference the security group created in Module A?
Select an answer first - 2
A team has a resource aws_instance.web defined in the root module. They want to move it into a module called 'compute'. They have added the resource to the module and added a moved block. However, when they run terraform plan, they see that Terraform still wants to destroy the old resource and create a new one. What is the most likely reason?
Select an answer first - 3
A team has an existing Terraform configuration where resources are defined directly in the root module. They want to refactor the configuration to move a set of resources into a new module called 'database'. They want to avoid destroying and recreating the resources. What should they do?
Select an answer first - 4
A resource in the root module references an output from a module. What does this reference create between the resource and the module?
Select an answer first - 5
A team has a monolithic configuration with resources defined in the root module. They want to refactor it to use a module. They have already created the module and copied the resource definitions into it. They run terraform plan and see that Terraform wants to destroy the old resources and create new ones. They want to avoid this. What is the most appropriate action?
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-ASSOCIATE-004” is a trademark of its owner, used for identification only.