Interview Prep/Real-World Interview/Secrets, security & access

How did you protect the Terraform state and CI credentials?

IntermediateBehavioralSecrets, security & access
Answer

Good answer looks like → "State bucket in a separate management account, encrypted with a dedicated KMS key, bucket policy allowing only the Terraform deploy roles and a break-glass role, versioning and access logging enabled. CI credentials were short-lived OIDC sessions, so there was nothing long-lived to steal from the CI system."

Follow-ups to expect → Why is state sensitive? Who could read it?

Red flags → A state bucket readable by every engineer.

All Real-World Interview questions Roadmap: Interview readiness

More on Secrets, security & access