Interview practice question
Database passwords visible in Terraform state
Cloud & DevOps · Terraform and IaC · Intermediate
A security review finds database passwords in plain text in Terraform state. How do you address this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- State always holds resource attributes.
- Restrict and encrypt state access.
- Let cloud manage passwords (managed secrets).
- Generate/store in secret manager; avoid passing through TF.
- Ephemeral/write-only features; rotate.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.