How do you protect backups against ransomware or an attacker who gets admin in your AWS account?

AdvancedScenarioData and databases
Answer

Situation read → An attacker with admin rights in the production account can delete the backups stored there. Backups need to sit somewhere they can't reach, and be impossible to delete.

What I'd do →

  1. Store backup copies in a separate backup account in AWS Organizations, with access limited to a small break-glass group.
  2. Use AWS Backup Vault Lock in compliance mode (or S3 Object Lock in compliance mode): no one, not even root, can delete before retention ends.
aws backup put-backup-vault-lock-configuration --backup-vault-name prod-locked \
  --min-retention-days 30 --max-retention-days 365 --changeable-for-days 3
  1. Copy cross-region as well as cross-account.
  2. Use separate KMS keys in the backup account, so compromising prod keys doesn't help decrypt or destroy backups.
  3. Add SCPs denying backup:DeleteRecoveryPoint and changes to vault policies from member accounts.
  4. Restore-test from the backup account regularly.

Why → Immutability plus account isolation means one compromised account can't erase your way back.

Interview tip → Mention that compliance-mode lock can't be removed once the grace period passes; set retention carefully.

All Real-World Interview questions Roadmap: Interview readiness

More on Data and databases