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.
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
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.
A is the correct answer - by way of eliminating the other answers
upvoted 3 times
...
Log in to ExamTopics
Sign in:
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.
depal_dhir
Highly Voted 2 years, 2 months agoBere
Most Recent 10 months, 1 week agoSilentMilli
1 year, 8 months agochael88
1 year, 9 months agokeiffo2
2 years, 2 months ago