Skip to content
Ameen Abozaid
SRC-013

Disaster recovery

  • 8 Lessons
  • 4.5 h practice (estimate)
On this page 9 topics

Overview

Topics

  • RPO
  • RTO
  • backups
  • failover
  • recovery exercises

Learn first

4.5 h of practice (estimate)

Learning outcomes

  1. Set RPO and RTO per data set and service from business impact.
  2. Choose backup, replication, and failover strategies that meet them, including for Kafka and caches.
  3. Design and run recovery exercises with measured results.
  4. Plan for region or account loss at the subsystem level.

Lessons

  1. 01Disasters that actually happen
  2. 02RPO and RTO from business impact
  3. 03Backup and replication strategies
  4. 04Failover design
  5. 05Recovering event streams and derived data
  6. 06Recovery exercises
  7. 07Demo: recovering the order database within a 15-minute RTO
  8. 08Demo: rebuilding derived data after a Kafka cluster loss

Lab and exercises

Lab

SRC-013-LAB1 · DR drill

Outcomes: 1–4 · Time: ~4.5 h Write a DR plan for the order subsystem: RPO and RTO per data set, backup and replication choices, failover steps including secrets, DNS, and config, and the rebuild path for Kafka-derived data. Run a timed recovery drill from simulated database loss and cluster loss, and report the results. Acceptance: RTO and RPO met, or gaps documented with a remediation plan.

Exercises (assessment: drill report review)

IDOutcomeTask
SRC-013-EX011Set RPO and RTO for orders, payments, search index, session cache, and audit log; justify each from business impact.
SRC-013-EX022The orders RPO is 1 minute. Pick backup and replication mechanisms and explain what each covers and misses.
SRC-013-EX032Design Kafka recovery for the order events: replication, consumer offsets, and consumer requirements.
SRC-013-EX043Review a drill report that says "RTO 12 min" where the timer stopped when the database started. Identify the flaws.
SRC-013-EX054Case: the primary cloud region is unavailable for a day. Write the region-loss plan for the order subsystem, including prerequisites to prepare in advance.
SRC-013-EX061Case: a bad migration dropped a column at 10:00 and was noticed at 10:20. Explain why the replica does not help and what does.
Show solutions
  • EX01 Orders and payments: RPO near zero to minutes, RTO 15 min; search index: rebuild, RPO hours; session cache: none, rebuild; audit log: RPO near zero, RTO hours. Rationale cites lost revenue, regulatory duty, rebuild cost.
  • EX02 Synchronous or near-synchronous replica handles node and zone loss; continuous log archiving with point-in-time recovery handles mistakes; backups in another account protect against account compromise. Replica misses logical corruption.
  • EX03 Replicated topics across zones, cross-cluster mirroring for region loss, offset translation or reset policy, idempotent consumers, topic configuration as code.
  • EX04 Timer should stop at verified service, not database start; missing app reconnect, secrets, DNS time to live, smoke tests; single run, no RPO measurement.
  • EX05 Pre-provision warm standby or pilot light, replicated data and secrets, infrastructure as code, DNS or traffic switch with low time to live, access paths, runbook, comms, failback plan, exercised.
  • EX06 The drop replicated within seconds. Use point-in-time recovery to just before 10:00 into a side instance, extract the lost data, and repair; this loses nothing if logs are intact.
  • Outcome 3 is also covered by the lab drill and Q07-Q08.

Workplace evidence: a recovery exercise you planned or ran.

Quiz

Outcomes: O1 RPO and RTO · O2 backup, replication, failover · O3 recovery exercises · O4 region or account loss.

A self-check for you: nothing is graded, saved or sent anywhere. Choose an answer, then check it. You can try again as often as you like.

  1. 1RPO measures:O1
  2. 2RTO measures:O1
  3. 3RPO and RTO should be derived from:O1
  4. 4Why does replication not replace backups?O2
  5. 5Split brain means:O2
  6. 6Which topology has the lowest cost and the longest RTO?O2
  7. 7A drill's RTO is measured from failure until:O3
  8. 8The most important output of a drill is:O3
  9. 9After Kafka loss, derived stores should be rebuilt from:O2
  10. 10Which must be prepared in advance for region loss?O4

Practical part

Drill report review (SRC-013 assessment): critique a drill report and present SRC-013-LAB1 results. Pass: at least 8/10 on the quiz, RPO and RTO measured with timestamps, and gaps with a remediation plan.

Common mistakes

RTO set without measurement; forgetting secrets, DNS, and config in recovery; derived stores never rebuilt.

Assessment

Drill report review.

Workplace evidence

A recovery exercise you planned or ran.

Career relevance

Multi-region systems (SRB-004) and HA/DR architecture (ARC-019).

Type to search levels, phases, modules and lessons.