Docker and CI/CD · Senior · Question 49 of 75
Why does a Terraform state file need care?
- 1It must be committed to Git next to the code
- ✓Correct answer: It can hold secrets and needs locking to avoid conflicts
- 3It is regenerated from scratch on every single plan
Explanation
State maps config to real resources and often contains sensitive values. Use a remote backend with encryption and locking, not a file in the repo.