TA-002-P · Question #196
TA-002-P Question #196: Real Exam Question with Answer & Explanation
The correct answer is A: Both implicit and explicit dependencies are stored in state file.. Terraform state captures all dependency information, both implicit and explicit. One purpose for state is to determine the proper order to destroy resources. When resources are created all of their dependency information is stored in the state. If you destroy a resource with depe
Question
What kind of resource dependency is stored in terraform.tfstate file?
Options
- ABoth implicit and explicit dependencies are stored in state file.
- BOnly explicit dependencies are stored in state file.
- COnly implicit dependencies are stored in state file.
- DNo dependency information is stored in state file.
Explanation
Terraform state captures all dependency information, both implicit and explicit. One purpose for state is to determine the proper order to destroy resources. When resources are created all of their dependency information is stored in the state. If you destroy a resource with dependencies, Terraform can still determine the correct destroy order for all other resources because the dependencies are stored in the state.
Topics
Community Discussion
No community discussion yet for this question.