
HashiCorp Certified:Terraform Associate
Domain 4Objective 6
4f Define Resource Dependencies in Configuration TERRAFORM-ASSOCIATE-004 Practice Questions (Page 3)
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 15 practice questions to prepare you well beyond it. (estimate)
15questions here
3free pages
5concepts
Questions 11–15
- 11
A team is configuring a Google Cloud environment. They have a service account (google_service_account "sa") and a bucket (google_storage_bucket "bucket"). The bucket's IAM policy must grant access to the service account's email. Which configuration correctly creates an implicit dependency so the service account is created before the IAM policy?
Select an answer first - 12
In which scenario would you need to use depends_on to ensure proper resource ordering?
Select an answer first - 13
A team manages a multi-tier application. The database (aws_db_instance "db") is created first, then the application server (aws_instance "app"), and finally the load balancer (aws_lb "lb"). The application server references the database endpoint. The load balancer has depends_on = [aws_instance.app]. During a terraform apply, the team notices that the load balancer is created after the application server, but the application server is sometimes created before the database. What is the most likely cause?
Select an answer first - 14
A developer has two resources: aws_instance "app" and aws_eip "eip". The EIP is associated with the instance using aws_eip_association "eip_assoc" with instance_id = aws_instance.app.id. The developer wants to ensure the EIP is created before the association. Which statement is true?
Select an answer first - 15
Which meta-argument is used to explicitly declare a dependency between resources when Terraform cannot infer one from configuration references?
Select an answer first
Finished these 5 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.