How do you prove your database backups actually work?
IntermediateScenarioData and databases
Answer
Situation read → A backup you've never restored is a hope, not a backup. Proof means regular, automated restores with checks.
What I'd do →
- Schedule a weekly job that restores the latest snapshot (or a point-in-time restore) into an isolated account or VPC.
aws rds restore-db-instance-to-point-in-time --source-db-instance-identifier prod-db \
--target-db-instance-identifier restore-test-$(date +%Y%m%d) --use-latest-restorable-time \
--db-subnet-group-name restore-test --no-publicly-accessible
- Run checks: the instance comes up, row counts on key tables are close to prod, the latest record timestamp is within your RPO, and the app's smoke tests pass against it.
- Record how long it took; that's your real RTO.
- Alert on failure, then delete the test instance.
- Do a full DR drill with people involved at least twice a year.
Why → Measured restore time and data freshness are the actual RTO and RPO; the targets on paper are not.
Interview tip → Say "the restore time we measured"; numbers make the answer credible.
More on Data and databases
A release needs to rename a column that the running app reads and writes. How do you do it with zero downtime?IntermediateDesign backups for an RDS PostgreSQL database with RPO of 5 minutes and RTO of 1 hour, including a region failure.AdvancedYour migrations run in an init container and two pods ran them at the same time during a deploy, leaving the schema half-applied. How do you fix the approach?IntermediateUpgrade RDS PostgreSQL from 13 to 17 with minimal downtime. How?AdvancedYou need to add an index and a column to a 500-million-row table that's written to constantly. How do you avoid locking it?AdvancedUsers see stale data right after saving because reads go to a replica with lag. How do you handle it?Intermediate