Plan a DR drill for a Kubernetes-based application with a PostgreSQL database.
IntermediateScenarioBackup & Disaster Recovery
Answer
Situation read → Validate both the stateless and stateful recovery paths, and measure RTO/RPO.
What I'd do →
- Define objectives: target RTO and RPO.
- Prepare: backups (Velero for cluster objects, pgBackRest or RDS snapshots for data), DR environment, runbooks.
- Execute: simulate primary failure, restore the cluster via GitOps and Velero, restore the database to a point in time.
- Validate: run smoke tests, check data consistency and the latest transaction timestamp to measure actual RPO.
- Measure actual RTO from start to serving traffic.
- Write a report and fix gaps.
Why → Drills reveal gaps in procedures and assumptions.
Interview tip → Measure actual RTO and RPO, not just "it worked".
More on Backup & Disaster Recovery
You discover nobody has tested a database restore in two years.BeginnerThe business asks for RPO 0 and RTO 5 minutes for every service.IntermediateRansomware encrypted your primary database and the backups in the same account.AdvancedYour restore takes 6 hours but the RTO is 1 hour.IntermediateA developer accidentally deleted a Kubernetes namespace in production.BeginnerHow do you prove to auditors that your DR plan works?Intermediate