Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
HashiCorp logo

HashiCorp Certified:Terraform Associate

Domain 4Objective 6

4f Define Resource Dependencies in Configuration TERRAFORM-ASSOCIATE-004 Practice Questions (Page 1)

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 1–5

  1. 1foundation · easy

    In Terraform, how does an implicit resource dependency typically arise?

    Select an answer first
  2. 2application · medium

    A configuration contains three resources: A, B, and C. Resource A references an attribute of B. Resource C has depends_on = [A]. Which statement correctly describes the order in which Terraform will create these resources?

    Select an answer first
  3. 3expert · hard

    A configuration has resources A, B, C, and D. A references B. C has depends_on = [A]. D has depends_on = [B]. During terraform destroy, which resources will be destroyed first?

    Select an answer first
  4. 4foundation · easy

    What does Terraform use to determine the order in which resources are created, updated, and destroyed?

    Select an answer first
  5. 5expert · hard

    A team has a configuration with three resources: a security group (aws_security_group "sg"), an instance (aws_instance "web"), and a load balancer (aws_lb "lb"). The instance references the security group ID. The load balancer has depends_on = [aws_instance.web]. During a terraform apply, the team notices that the security group is created, then the instance, then the load balancer. However, the load balancer also needs the security group to exist. Why does Terraform not create the load balancer in parallel with the instance?

    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.