Design backups for an RDS PostgreSQL database with RPO of 5 minutes and RTO of 1 hour, including a region failure.

AdvancedScenarioData and databases
Answer

Situation read → Within the region, automated backups and Multi-AZ cover it. The region-failure case needs data already sitting in a second region.

What I'd do →

  1. AZ failure: Multi-AZ (RPO about zero, failover in 1–2 minutes).
  2. Bad data or deletion: automated backups with PITR (RPO ~5 minutes from transaction log uploads), retention 14–35 days.
  3. Region failure: a cross-region read replica in the DR region (RPO seconds; promote it in minutes), or cross-region automated backup replication if a replica is too expensive (RPO minutes, RTO longer, because a restore takes time).
  4. Ransomware or account compromise: copy snapshots to a separate backup account with AWS Backup Vault Lock.
  5. Make RTO real: keep the DR region's infra in Terraform, ready to apply; DNS failover via Route 53; run a timed drill.
flowchart LR
    P["Primary RDS ap-south-1"] -->|"sync"| S["Multi-AZ standby"]
    P -->|"async replica"| R["Read replica ap-southeast-1"]
    P -->|"PITR logs"| B["Automated backups"]
    B -->|"copy"| V["Backup account vault, locked"]

Why → Each layer covers a different failure: hardware, human error, region, and attacker.

Interview tip → Separate "high availability" (Multi-AZ) from "backup" (PITR); Multi-AZ replicates a DROP TABLE instantly.

All Real-World Interview questions Roadmap: Interview readiness

More on Data and databases