Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 147 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 147
Topic #: 1
[All Terraform Associate Questions]

How does Terraform determine dependencies between resources?

  • A. Terraform automatically builds a resource graph based on resources, provisioners, special meta-parameters, and the state file, if present.
  • B. Terraform requires all dependencies between resources to be specified using the depends_on parameter
  • C. Terraform requires resources in a configuration to be listed in the order they will be created to determine dependencies
  • D. Terraform requires resource dependencies to be defined as modules and sourced in order
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
depal_dhir
Highly Voted 2 years, 2 months ago
Selected Answer: A
https://learn.hashicorp.com/tutorials/terraform/dependencies
upvoted 6 times
...
Bere
Most Recent 10 months, 1 week ago
Selected Answer: A
https://developer.hashicorp.com/terraform/tutorials/configuration-language/dependencies Most of the time, Terraform infers dependencies between resources based on the configuration given, so that resources are created and destroyed in the correct order. Occasionally, however, Terraform cannot infer dependencies between different parts of your infrastructure, and you will need to create an explicit dependency with the depends_on argument.
upvoted 3 times
...
SilentMilli
1 year, 8 months ago
Selected Answer: A
When Terraform evaluates a configuration, it automatically creates a graph of all the resources and their dependencies. Terraform uses this graph to determine the order in which resources need to be created, updated, or destroyed. Terraform looks at resource dependencies based on implicit and explicit relationships between resources, which are defined using properties like count, for_each, depends_on, and others. Terraform can also use the state file to track dependencies between resources and maintain the order of operations during updates
upvoted 2 times
...
chael88
1 year, 9 months ago
Took the exam and passed. There was a similar question like this not listed here on ExamTopics. It goes like this: How does Terraform handle dependencies? A. By using depends_on B. Terraform will automatically handle some resource dependencies I cant remember the other options, but I selected B.
upvoted 2 times
...
keiffo2
2 years, 2 months ago
A is the correct answer - by way of eliminating the other answers
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...