interviewpath
  • 0day streak
  • 10total XP
  • Level 1
0/6

Unit 5 · Distributed & cloud · Lesson 8 of 14

Multi-region design, durability and disaster recovery

Running across zones or regions protects against larger failures but costs latency, money and consistency. Availability arithmetic, durability, recovery objectives (RPO and RTO) and the difference between replicas and backups let you size these tradeoffs honestly, which senior candidates in particular are expected to do.
About 3 hFocus mode

Step 1: Learn the ideas

  • Availability arithmetic for serial and redundant components
  • Correlated failures and blast radius
  • Zones versus regions
  • Durability versus availability
  • RPO and RTO
  • DR strategies: backup and restore, pilot light, warm standby, active-active
  • Synchronous versus asynchronous cross-region replication
  • Backups versus replicas; point-in-time recovery
  • Static stability and pre-provisioned capacity
  • Testing failover and restores

Why it matters

Senior design discussions often end with "and what if the whole region goes away?" Good answers are quantitative: what availability the design reaches, how much data could be lost, how long recovery takes and what all of it costs. Weak answers say "multi-region active-active" without noticing the latency, consistency and operational price.

Core ideas

Availability arithmetic. Serial dependencies multiply: three components at 99.9% give about 99.7%. Independent redundant copies combine as one minus the product of their unavailabilities: two 99% replicas give 99.99%, if failures are independent. They rarely are; shared deployments, configuration, power, networks and dependencies correlate failures, so treat the redundancy formula as an upper bound. Convert targets to downtime (99.9% is about 43 minutes per 30 days) to make them concrete.

Durability is not availability. Durability is the probability that stored data is not lost; availability is whether you can reach it now. Data can be durable yet unreachable during a regional outage, or reachable yet silently corrupted.

RPO and RTO. The recovery point objective is how much recent data you can afford to lose, set by replication lag or backup frequency. The recovery time objective is how long restoration may take. Strategies trade cost for both: backup and restore (cheapest, slowest), pilot light (data replicated, compute started on demand), warm standby (a scaled-down live copy) and active-active (fastest recovery, highest cost and complexity).

Cross-region replication. Synchronous replication across regions gives an RPO near zero but adds a wide-area round trip to every write; asynchronous replication keeps writes fast but loses whatever had not replicated at failover. Active-active writes need conflict resolution, a home region per record, or a globally consistent database that pays the latency.

Replicas are not backups. Replication copies deletes, bad migrations and corrupted writes immediately. Backups provide point-in-time recovery, must be isolated from the systems and credentials that could destroy them, and only count if restores are tested regularly.

Static stability. A good zone or region plan needs no new actions during the failure: capacity is already provisioned, and the data plane does not depend on a control plane that may itself be impaired.

Common misconceptions

  • "Two regions double our nines." Only for independent failures; a global configuration push or a shared dependency takes down both.
  • "We replicate, so we have backups." Replication propagates mistakes; you still need versioned, isolated, restore-tested backups.
  • "Active-active is always best." It costs latency or conflict handling and makes every change a multi-region change; many services are better served by a warm standby.
  • "Our failover works." Untested failovers and restores tend to fail when needed; schedule drills and measure the achieved RTO.

How to approach it

Practice the arithmetic until it is automatic, then read SRE book Ch. 26 and the AWS DR whitepaper. For a service you know, set RPO and RTO targets, pick a strategy and write what happens, minute by minute, during a regional failure. Senior candidates are expected to discuss cost, correlated failures, data-consistency consequences and the drills that prove the plan.

Suggested order

  1. 1Work availability exercises: three serial 99.9% services; two redundant 99% replicas; then both behind a shared 99.95% load balancer.
  2. 2Read SRE book Ch. 26 (Data Integrity: What You Read Is What You Wrote) on why recovery, not backup, is the goal and on layered defenses against data loss.
  3. 3Read the AWS DR whitepaper section on disaster recovery options and tabulate each strategy's RPO, RTO and cost.
  4. 4Read the Builders' Library article on static stability and list the actions a recovery plan must not depend on.
  5. 5Re-read DDIA Ch. 5 on multi-leader replication for multi-datacenter operation, and skim the Spanner paper's introduction for the latency cost of global consistency.
  6. 6Write a one-page DR plan for a service you know, including a restore test and a regional evacuation runbook.

Step 2: Check off what you can do

Tap each one you can genuinely do or explain. Each earns 10 XP.

Step 3: Go deeper

  • Site Reliability Engineering (Google SRE book)Start here

    Google (free online edition)

    Section: Ch. 26: Data Integrity: What You Read Is What You Wrote

    Why replicas and backups differ, layered defenses against data loss and the importance of tested recovery.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Disaster Recovery of Workloads on AWS: Recovery in the CloudStart here

    Amazon Web Services (whitepaper)

    RPO, RTO and the spectrum of DR strategies with their tradeoffs.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Static stability using Availability Zones

    Amazon Builders' Library

    Zone and region failure handling that needs no new actions.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Designing Data-Intensive Applications

    O'Reilly Media (author's book site)

    Section: Ch. 5: Replication (multi-leader replication)

    Multi-datacenter replication options and conflict handling.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Spanner: Google's Globally-Distributed Database

    Google Research

    An example of paying wide-area latency for globally consistent transactions.

    Open(opens in a new tab)Link responded, 5 Oct 2026

Step 4: Practice

Do availability arithmetic by hand until you can answer in seconds, including a version with a shared dependency that correlates failures. Then write a DR plan for one service: RPO and RTO with justification, chosen strategy, what replicates synchronously versus asynchronously, backup schedule and retention, and a restore drill with a pass criterion. Review it for any step that depends on a control plane or a person in the failed region.

No external problems are linked; follow the guidance above.

Record attempts on each problem’s page (+15 XP, +10 more when solved on your own).

Step 5: Test yourself

Answer each one out loud or on paper before you finish the lesson.

  1. Question 1What is the availability of a request that needs four services at 99.95% each?
  2. Question 2Which mechanism sets your RPO, and which sets your RTO?
  3. Question 3Why does synchronous cross-region replication raise write latency, and roughly by how much?
  4. Question 4What does static stability rule out during a zone failure?
  5. Question 5How would you prove that your backups can be restored?

You’re done when you can

  • Compute serial and redundant availability and the matching monthly downtime for unseen numbers without errors.
  • Explain why replicas are not backups with two concrete failure examples.
  • Choose and defend a DR strategy for an unseen service from stated RPO, RTO and budget.

Finish the lesson

How confident do you feel?

Lesson complete!

+50 XP

Reviews will come up on the Practice tab so it sticks.

Your notes and study time

Log study time