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 83 discussion

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

Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.

  • A. True
  • B. False
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
vitasac
Highly Voted 2 years, 6 months ago
Selected Answer: B
I think it's B for sure
upvoted 12 times
gofavad926
1 year, 1 month ago
"I think", and "for sure"... are not compatible :D
upvoted 24 times
...
...
Ni33
Highly Voted 1 year, 6 months ago
B is the correct answer. Terraform do manage implicit dependencies using the attribute values mentioned in the configuration of the resources.
upvoted 7 times
...
gofavad926
Most Recent 1 year, 1 month ago
Selected Answer: B
B, false
upvoted 2 times
...
dhez46
1 year, 7 months ago
Selected Answer: B
https://developer.hashicorp.com/terraform/tutorials/0-13/dependencies?in=terraform%2F0-13 Implicit dependencies are the primary way that Terraform understands the relationships between your resources. Sometimes there are dependencies between resources that are not visible to Terraform, however. The depends_on argument is accepted by any resource or module block and accepts a list of resources to create explicit dependencies for.
upvoted 4 times
...
camps
1 year, 7 months ago
Selected Answer: B
B. False. Terraform can manage resource dependencies automatically without explicitly setting them using the depends_on argument.
upvoted 3 times
...
Power123
1 year, 7 months ago
B is correct. Implicit as well
upvoted 2 times
...
resnef
1 year, 10 months ago
Selected Answer: B
you have implicit as well, therefore B
upvoted 1 times
...
vikramvlr
1 year, 11 months ago
Answer is B. 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. https://developer.hashicorp.com/terraform/tutorials/0-13/dependencies?in=terraform%2F0-13
upvoted 3 times
...
eduvar4
2 years, 1 month ago
Answer: B "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" -> https://learn.hashicorp.com/tutorials/terraform/dependencies
upvoted 2 times
...
j1809
2 years, 2 months ago
Terraform automatically infers when one resource depends on another by studying the resource attributes used in interpolation expressions.
upvoted 1 times
...
GopinathM
2 years, 2 months ago
A is correct we need pass explicitly depends_on
upvoted 1 times
...
kopper2019
2 years, 3 months ago
Selected Answer: B
It is B
upvoted 1 times
...
Ahmad_Terraform
2 years, 4 months ago
B. False implicit = hidden dependencies Trfm can can manage.
upvoted 2 times
...
Ahmad_Terraform
2 years, 4 months ago
B is correct implicit decencies trfm can manage without depends on command, for example in AWS eip resource will be dependent on the Ec2 creation, so trfm will first create the Ec2 and then eip will be allocated/created. and eip creation will be after the creation of Ec2. https://learn.hashicorp.com/tutorials/terraform/dependencies?in=terraform/0-13
upvoted 1 times
...
Eltooth
2 years, 4 months ago
Selected Answer: A
I believe A is the correct answer. "Use the depends_on meta-argument to handle hidden resource or module dependencies that Terraform cannot automatically infer. You only need to explicitly specify a dependency when a resource or module relies on another resource's behavior but does not access any of that resource's data in its arguments." https://www.terraform.io/language/meta-arguments/depends_on
upvoted 2 times
RVivek
2 years, 2 months ago
You voted A and the comment is in support of B ?
upvoted 2 times
...
...
Zam88
2 years, 5 months ago
Manage explicit dependencies Implicit dependencies are the primary way that Terraform understands the relationships between your resources. Sometimes there are dependencies between resources that are not visible to Terraform, however. The depends_on argument is accepted by any resource or module block and accepts a list of resources to create explicit dependencies for. B
upvoted 1 times
Zam88
2 years, 5 months ago
I was wrong i have checked it again - Terraform cannot infer dependencies between different parts of your infrastructure, and you will need to create an explicit dependency with the depends_on argument. A is correct answer
upvoted 2 times
...
...
rfd
2 years, 5 months ago
Selected Answer: B
Terraform is smart enough to manage resource dependencies to an extent, without any explicit instructions.
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 ...