Choose the best description of what a Terraform state file does.
Think about what Terraform needs to remember between runs to manage resources.
The state file keeps a snapshot of the infrastructure Terraform manages. It helps Terraform know what exists so it can apply updates correctly.
Identify the correct structure of a Terraform state file.
Consider the file format Terraform uses to save detailed info about resources.
The state file is a JSON document that holds detailed info about each resource, including IDs, attributes, and dependencies.
Choose the main security concern when handling Terraform state files.
Think about what kind of information Terraform stores about resources.
State files often include sensitive info such as passwords or tokens in plain text, so securing them is critical.
Select the best practice for sharing and managing Terraform state files among multiple users.
Think about how to avoid multiple people changing the state at the same time.
Remote state storage with locking ensures only one user can modify the state at a time, preventing conflicts and data loss.
Choose the most accurate description of the impact when the Terraform state file is lost or corrupted.
Consider what Terraform relies on to know what resources exist.
Without the state file, Terraform cannot track existing resources and may attempt to recreate or delete them, causing errors or resource duplication.