Interview Prep/DevSecOps/Container and IaC Security

How do you ensure all new EBS volumes and RDS instances are encrypted, even if a team forgets?

IntermediateScenarioContainer and IaC Security
Answer

Situation read → Rely on defaults and guardrails, not on remembering.

What I'd do →

  1. Turn on EBS encryption by default per region: aws ec2 enable-ebs-encryption-by-default.
  2. Use IaC modules where storage_encrypted = true is hard-coded.
  3. Add an SCP denying rds:CreateDBInstance when rds:StorageEncrypted is false.
  4. Add AWS Config rules (encrypted-volumes, rds-storage-encrypted) with auto-remediation or alerts.
  5. Use customer managed KMS keys for sensitive data with key policies.

Why → Preventive controls beat detective ones; you want both.

Interview tip → Remember that you cannot encrypt an existing unencrypted RDS instance in place; you restore from an encrypted snapshot copy.

All DevSecOps questions Roadmap: Policy as code

More on Container and IaC Security