
HashiCorp Certified:Terraform Associate
Domain 5Objective 3
5c Use Modules in Configuration TERRAFORM-ASSOCIATE-004 Practice Questions (Page 2)
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 6–10
- 6
A configuration has a module that creates a security group and another module that creates an EC2 instance. The instance module needs the security group ID. The security group module outputs sg_id. How does Terraform determine the order in which to create these resources?
Select an answer first - 7
A resource was previously defined directly in the root module as aws_instance.web. A developer is refactoring the configuration to move this resource into a module named "web". What is the purpose of adding a moved block to the configuration?
Select an answer first - 8
A module defines an output named vpc_id. In the root module, a resource needs to use this value. Which expression correctly references the module's output?
Select an answer first - 9
A configuration has two module blocks that both use the same source: "./modules/vpc". The first block has the local name "vpc_a" and the second has "vpc_b". How does Terraform distinguish the resources created by these two module instances?
Select an answer first - 10
A module block is written as follows: module "database" { source = "terraform-aws-modules/rds/aws" version = "6.0.0" db_name = "mydb" } What is the purpose of the version argument in this block?
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.