Home » HashiCorp » Terraform Associate » What resource dependency information is stored in Terraform’s state?
What resource dependency information is stored in Terraform’s state?
A. Only implicit dependencies are stored in state.
B. Both implicit and explicit dependencies are stored in state.
C. Only explicit dependencies are stored in state.
D. No dependency information is stored in state.
Correct Answer: B
Explanation/Reference:
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.
https://www.terraform.io/docs/state/purpose.html#metadata
Download Printable PDF. VALID exam to help you PASS.
|
|