Terraform must trac...
 
Notifications
Clear all

Terraform must track metadata such as resource dependencies. Where is this data stored?

1 Posts
1 Users
0 Likes
146 Views
(@burlandeldridge)
Posts: 713
Noble Member
Topic starter
 

Terraform must track metadata such as resource dependencies. Where is this data stored?

  • A . workspace
    B. backend
    C. state file
    D. metadata store

Show Answer Hide Answer

Suggested Answer: C

Explanation:

Terraform typically uses the configuration to determine dependency order. However, when you delete a resource from a Terraform configuration, Terraform must know how to delete that resource. Terraform can see that a mapping exists for a resource not in your configuration and plan to destroy. However, since the configuration no longer exists, the order cannot be determined from the configuration alone.

To ensure correct operation, Terraform retains a copy of the most recent set of dependencies within the state. Now Terraform can still determine the correct order for destruction from the state when you delete one or more items from the configuration. https://www.terraform.io/docs/state/purpose.html#metadata
 
Posted : 11/11/2022 8:10 am

Latest TA-002-P V1 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: