Question 71
Your security team scanned some Terraform workspaces and found secrets stored in a plaintext in state files. How can you protect sensitive data stored in Terraform state files?
- Delete the state file every time you run Terraform
- Store the state in an encrypted backend
- Edit your state file to scrub out the sensitive data
- Always store your secrets in a secrets.tfvars file.