🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)106 / 150
Question 106 of 150

Your team deploys a VPC, subnets, and EC2 instances in a single Terraform configuration. You did not write any explicit 'depends_on' statements, yet Terraform consistently creates the VPC before the subnets and the subnets before the instances. During a later 'terraform destroy', the resources are removed in the reverse order. Which mechanism, informed by the state file, explains this ordering behavior?

Reviewed for accuracy · Report an issueNext question