HashiCorp Certified: Terraform Associate — Question 332

How does Terraform determine dependencies between resources?

Answer options

Correct answer: A

Explanation

The correct answer is A because Terraform constructs a resource graph automatically by analyzing the resources and their characteristics, along with the state file if available. Options B, C, and D are incorrect as they suggest manual specification of dependencies, which contradicts Terraform's automated dependency resolution process.