nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #53

TERRAFORM-ASSOCIATE-004 Question #53: Real Exam Question with Answer & Explanation

The correct answer is B: Terraform automatically builds a resource graph based on resources provisioners, special meta-. Terraform automatically builds a dependency graph (resource graph) by analyzing resource references within the configuration. When one resource references an attribute of another (e.g., aws_subnet.id), Terraform infers an implicit dependency. You can also declare explicit depende

Submitted by renata2k· Apr 18, 2026Work with Terraform Configurations

Question

How does Terraform determine dependencies between resources?

Options

  • ATerraform requires resource dependencies to be defined as modules and sourced in order
  • BTerraform automatically builds a resource graph based on resources provisioners, special meta-
  • CTerraform requires resources in a configuration to be listed m the order they will be created to
  • DTerraform requires all dependencies between resources to be specified using the depends_on

Explanation

Terraform automatically builds a dependency graph (resource graph) by analyzing resource references within the configuration. When one resource references an attribute of another (e.g., aws_subnet.id), Terraform infers an implicit dependency. You can also declare explicit dependencies using the depends_on meta-argument. Resources with no dependency relationship are provisioned in parallel. Terraform does NOT require resources to be listed in order, nor does it require all dependencies to be explicitly declared.

Topics

#Dependency Graph#Resource Dependencies#Expressions#Meta-arguments

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions