Skip to main content

Multi-Region Architecture

1. Executive Summary​

Multi-region architecture distributes workloads across geographically separated AWS regions to achieve disaster recovery (DR), regulatory data residency, reduced latency for global users, and containment of blast radius beyond single-region failures. Unlike multi-AZ design—which handles datacenter-scale faults within one region—multi-region design confronts higher latency, weaker consistency across replicas, operational complexity, and material cost.

This chapter covers DR patterns (backup/restore, pilot light, warm standby, active-passive, active-active), AWS routing and traffic management (Route 53, Global Accelerator, CloudFront), data replication strategies (Aurora Global Database, DynamoDB Global Tables, S3 Cross-Region Replication), and the principal-level tradeoffs among RTO, RPO, consistency, and organizational runbook maturity.

Principal candidates must articulate what fails independently, what data can be lost or stale, and how failover is tested—not merely draw two region boxes on a diagram.

2. Why This Topic Matters​

Global products and regulated enterprises routinely require multi-region thinking. Interviewers probe:

  • RTO/RPO definitions and how architecture delivers them.
  • Active-active vs active-passive—when each is justified.
  • Split-brain and conflict resolution in multi-writer designs.
  • DNS failover behavior and TTL implications.
  • Data sovereignty and replication lag measurement.
  • Cost of idle standby capacity vs revenue risk of regional outage.

Real-world regional outages (AWS and application-level) make multi-region literacy a production necessity, not an advanced elective.

3. Problems Being Solved​

ProblemMulti-region approach
Regional catastropheStandby or active stack in second region
Global user latencyRoute users to nearest healthy region
Data residency (GDPR, etc.)Pin data to specific regions; limit replication
Blast radius reductionIsolate control planes and data per region
Maintenance without global downtimeRolling region drain with traffic shift
Compliance / sovereigntyEU data in eu-west-1, US in us-east-1

Multi-region does not automatically solve strong consistency across geographies—that requires explicit protocol design and accepted latency.

4. Assumptions and System Model​

AssumptionImplication
Regions are independent failure domainsDesign for full region loss
Cross-region latency is tens–hundreds of msAvoid synchronous cross-region commits on critical path
Network partitions can occurChoose CP vs AP per CAP for cross-region data
DNS is eventually consistentFailover has propagation delay
Replication lag is non-zeroRPO > 0 unless synchronous (rare cross-region)
Operational maturity requiredUntested DR is fiction

Client model: Clients reach nearest edge (CloudFront) or region via Geo DNS / latency routing; during failover, clients may retry or be redirected.

5. Essential Terminology​

TermDefinition
RTORecovery Time Objective—max acceptable downtime
RPORecovery Point Objective—max acceptable data loss window
Active-passivePrimary region serves traffic; secondary on standby
Active-activeMultiple regions serve traffic concurrently
Pilot lightMinimal core running in DR region; scale up on failover
Warm standbyScaled-down but functional DR environment
Backup and restorePeriodic backups restored after incident
Global table / global databaseAWS-managed multi-region replication
Route 53 health checkAutomated DNS failover trigger
Global AcceleratorAnycast static IPs; health-based regional routing
Split brainTwo regions both believe they are primary
Conflict resolutionRules for concurrent writes in active-active
Cell-based architectureShard users/data by region or partition
Runbook / game dayDocumented and practiced failover procedure

6. Core Mechanism​

6.1 DR spectrum on AWS​

PatternRTORPOCostComplexity
Backup & restoreHours–daysHours (backup interval)LowLow
Pilot lightHoursMinutes–hoursLow–mediumMedium
Warm standbyMinutes–hoursMinutesMediumMedium
Active-passive (hot standby)MinutesSeconds–minutesMedium–highMedium–high
Active-activeNear zero (per region)Zero–seconds (app-dependent)HighHigh

Choice is a business decision encoded in architecture—not a technical default.

6.2 Traffic routing layer​

Amazon Route 53 routing policies:

  • Latency-based — lowest latency healthy region.
  • Geolocation / Geoproximity — regulatory or business routing.
  • Failover — primary/secondary with health checks.
  • Weighted — gradual traffic shift (deployments, canaries).

AWS Global Accelerator provides static anycast IPs and TCP/UDP proxies with health-checked endpoint groups per region—useful for non-HTTP protocols and faster failover than DNS TTL alone for some clients.

CloudFront caches at edge; origin failover between regional origins improves resilience for static and cacheable dynamic content.

Figure 1: Multi-region traffic flow—Route 53 health checks drive failover; data replicates asynchronously with measurable lag.

6.3 Data replication patterns​

Data storeMulti-region optionConsistency notes
DynamoDBGlobal TablesMulti-master; last-writer-wins conflict handling
AuroraGlobal DatabaseOne primary region; read replicas in secondary; sub-second promoted failover
RDSCross-region read replica + manual promoteRPO = replication lag
S3Cross-Region Replication (CRR)Eventually consistent; replication time SLA in docs
ElastiCacheGlobal Datastore (Redis)Primary/replica across regions
MSK / KinesisMirrorMaker / streams consumersApplication-level ordering care

Principal rule: Measure replication lag as an SLI; alert before it exceeds RPO budget.

6.4 Active-active architecture concerns​

Active-active maximizes utilization but introduces:

  1. Write conflicts — use CRDTs, version vectors, or single-writer per entity shard.
  2. Global load balancing — sticky sessions or shared session store.
  3. Deployment coordination — independent region deploys vs synchronized releases.
  4. Observability — correlate traces across regions with shared trace IDs.
  5. Compliance — data may not legally replicate globally.

Cell-based design: Partition tenants or users by home region; cross-cell calls are rare and explicit—reduces conflict surface (used at hyperscale).

Figure 2: Cell-based multi-region—each cell owns data; cross-cell traffic minimized.

6.5 Failover mechanics​

  1. Detect — Route 53 health check, CloudWatch alarm, synthetic canary, human declaration.
  2. Decide — automated vs manual approval (avoid flapping).
  3. Redirect traffic — DNS failover, Global Accelerator shift, weight change.
  4. Promote data — Aurora Global Database failover, DynamoDB already multi-writer, RDS manual promote.
  5. Scale capacity — ASG desired count, pre-warmed Lambda, ECS service scaling.
  6. Validate — smoke tests, SLO dashboards, error budget check.
  7. Communicate — status page, internal incident channel.

Untested steps 4–5 cause longer outages than the regional fault itself.

7. Step-by-Step Walkthrough​

Walkthrough A: Active-passive with Aurora Global Database​

  1. Primary in us-east-1; secondary cluster in eu-west-1 with Aurora Global Database.
  2. Application in both regions; EU stack scaled to zero or minimal (warm standby).
  3. Route 53 failover: primary ALB health check; secondary ALB receives traffic on failure.
  4. On regional failure: invoke managed failover (< 1 minute typical for Aurora Global—verify in your tests).
  5. Scale EU application tier; verify replication lag was within RPO before failure.

Walkthrough B: DynamoDB Global Tables active-active​

  1. Create global table with replicas in us-east-1 and ap-southeast-1.
  2. Deploy identical Lambda/API stacks in both regions behind latency-based Route 53.
  3. Clients write to local region; DynamoDB replicates asynchronously.
  4. Handle conflicting updates to same item with version attributes or conditional writes.
  5. Monitor ReplicationLatency CloudWatch metric per replica.

Walkthrough C: S3 CRR for compliance archive​

  1. Primary bucket in us-east-1 with versioning enabled.
  2. CRR rule to eu-central-1 bucket for EU archive copy.
  3. Use S3 Replication Time Control (RTC) if bounded replication time required (additional cost).
  4. IAM roles for replication; KMS keys per region for encryption.

Walkthrough D: Game day — regional evacuation​

  1. Pre-announce internal game day.
  2. Shift Route 53 weights 100% to secondary over 30 minutes.
  3. Observe error rates, replication lag, autoscaling behavior.
  4. Run write/read integration tests from both regions.
  5. Document gaps: missing secrets in DR region, stale AMIs, broken Terraform backend.

Walkthrough E: Preventing split-brain on RDS promote​

  1. Primary region impaired but not fully isolated—split brain risk.
  2. Manual promotion only after confirming primary is truly dead (fencing).
  3. Use Route 53 Application Recovery Controller (ARC) routing controls for orchestrated failover.
  4. Invalidate primary writes via network isolation or IAM deny before promoting secondary.

8. Invariants and Guarantees​

GuaranteeScopeCaveat
Regional isolationMost AWS servicesGlobal services (IAM, Route 53) have own models
Aurora Global failover RPOTypically sub-second lag before failure (AWS documentation)Network partition edge cases
DynamoDB Global TablesEventually consistent across regionsConflict resolution semantics
Route 53 health check failoverDNS TTL bound propagationClients cache DNS
S3 CRRAsynchronousNot for strong consistency requirements

No multi-region design provides both zero RPO and active-active writes without explicit conflict protocol—state assumptions clearly.

9. Failure Scenarios​

FailureBehaviorMitigation
Full region lossPrimary unavailableFailover to DR region; promote replicas
Partial regional degradationElevated errors, not health-check failComposite alarms; canary traffic; manual weight shift
Replication lag spikeRPO violatedThrottle writes, pause failover, fix network
DNS flappingClients oscillateHysteresis on health checks, higher failure thresholds
Split brainDuplicate writes, data corruptionFencing, ARC, single-primary promotion rules
DR region capacity insufficientFailover succeeds but overloadsPre-warmed capacity, load tests on DR
KMS key regional lockCannot decrypt in DRReplicate keys or multi-region keys (MRKs)
Config driftDR stack outdatedIaC pipeline deploys to all regions

10. Performance Characteristics​

AspectBehavior
Cross-region RTT~20–300+ ms depending on distance
Aurora Global replicationTypically < 1 s lag (AWS marketing/docs—measure yours)
DynamoDB Global TablesMillisecond local writes; replication async
CloudFront cache hitEdge latency dominates; origin region less critical
Global AcceleratorReduces internet path variance; not a data plane for DB

Design read-local, write-home or async cross-region for latency-sensitive paths.

11. Scalability Limits​

  • Route 53 API rate limits on rapid policy changes.
  • DynamoDB global table replica limits per table.
  • Cross-region data transfer cost and bandwidth caps.
  • Operational headcount — N regions × deployment pipelines × on-call complexity.
  • Stateful session explosion in active-active without shared store.

12. Operational Considerations​

  • IaC in every region — same modules, region-specific parameters.
  • Secrets replication — Secrets Manager multi-region secrets or regional copies.
  • Container images — ECR replication or pull-through cache per region.
  • Runbooks with RACI: who declares disaster, who promotes DB.
  • Quarterly game days minimum for tier-1 systems.
  • ARC (Application Recovery Controller) for readiness checks and routing controls.
  • Tagging dr-tier, region-role=primary|secondary.
  • Backup cross-region even with live replication—ransomware and operator error protection.

Figure 3: Failover sequence—health detection, DNS shift, database promotion, capacity scale.

13. Security Considerations​

  • Per-region KMS keys and key policies; MRKs where needed.
  • IAM policies scoped per region where possible (aws:RequestedRegion).
  • VPC peering / TGW cross-region—encrypt inter-region traffic (TLS on apps).
  • Data residency — SCPs preventing resource creation outside approved regions.
  • Audit — CloudTrail in each region; organization trail aggregation.
  • DDoS — Shield Advanced per region; CloudFront as first line.

14. Cost Considerations​

Cost driverNotes
Idle DR capacityWarm standby ECU/RDS hours
Cross-region replicationData transfer $/GB
Global AcceleratorHourly + data processing
Multi-region observabilityDuplicate metrics/logs ingest
Route 53Health checks per endpoint

Finance must understand insurance premium metaphor—DR spend vs outage revenue impact.

15. Production Implementations​

Company patternAWS building blocks
Global SaaS active-activeDynamoDB Global Tables, CloudFront, multi-region ECS
Financial hot standbyAurora Global, pilot light ECS, ARC
Media CDN-firstS3 + CloudFront; regional origins
Regulated EU+US cellsSeparate accounts per jurisdiction, no cross-border replication

Study AWS Disaster Recovery whitepaper and Well-Architected Reliability pillar for reference architectures.

16. Alternatives and Tradeoffs​

AlternativeWhen
Multi-AZ onlyRTO/RPO tolerate minutes; regional risk accepted
Third-party DR (DRaaS)Hybrid workloads, non-AWS components
Backup to cold storageTier-3 systems, hours RTO acceptable
Single region + cross-cloudRare; extreme resilience requirements

More regions ≠ more reliable if operational maturity does not scale.

17. Common Misconceptions​

MisconceptionReality
"Multi-AZ = multi-region DR"AZ failure ≠ region failure
"Active-active is always better"Conflict resolution and cost complexity
"DNS failover is instant"TTL and client caching delay
"Replication = backup"Corruption replicates; need PITR and backups
"Same Terraform applies unchanged"AMIs, endpoints, KMS ARNs are regional

18. Principal Architect Perspective​

  • Quantify RTO/RPO with business—don't gold-plate tier-3 batch jobs.
  • Prefer cell-based over fully symmetric active-active when data sovereignty applies.
  • Invest in game days more than additional regions.
  • Treat replication lag as product risk—surface in executive dashboards.
  • Document failback—returning to primary is harder than failover.

19. Architecture Review Exercise​

Scenario: E-commerce platform requires RPO < 1 min, RTO < 15 min globally. Team proposes active-active RDS Multi-AZ in two regions with bidirectional application writes.

Issues: RDS is not multi-master across regions without conflict pain; bidirectional app writes need shard ownership.

Recommendation: Aurora Global Database with single write region + read scaling in second, or DynamoDB Global Tables with partition key sharding by customer_id home region. Active-active reads via CloudFront; writes routed to home region cell.

20. Whiteboard Explanation​

"Regions are independent failure domains. We define RPO—how much data we can lose—and RTO—how fast we recover. For warm standby, we keep a scaled-down stack in eu-west-1 replicating from us-east-1 via Aurora Global Database. Route 53 health checks watch the primary ALB; on failure, DNS shifts to the secondary ALB and we promote the Aurora replica—typically under a minute. Replication lag is our RPO window—we monitor it as an SLI. Active-active with DynamoDB Global Tables is possible but requires conflict-aware data modeling. We practice failover quarterly; untested DR doesn't exist."

21. Interview Questions​

  1. Define RTO and RPO. — Time vs data loss windows.
  2. Compare pilot light and warm standby. — DR capacity pre-provisioned level.
  3. How does Route 53 failover work? — Health checks + routing policy.
  4. Aurora Global vs cross-region RDS replica? — Purpose-built failover vs manual.
  5. Active-active pitfalls? — Conflicts, sessions, deployments.
  6. What is split brain? — Dual primaries; prevention strategies.
  7. How measure replication lag? — CloudWatch metrics, custom heartbeats.
  8. When is multi-region not worth it? — Cost, complexity, actual risk tolerance.
  9. Role of CloudFront in multi-region? — Edge caching, origin failover.
  10. Data sovereignty constraints? — Cells, no replication, geolocation routing.
  11. Global Accelerator vs Route 53 latency routing? — Anycast IPs, protocol support.
  12. How do you test DR? — Game days, chaos, traffic shifting.

22. Interview Follow-Ups​

  1. Design global user session store. — ElastiCache Global Datastore, DynamoDB, sticky JWT.
  2. Failover caused data loss—how investigate? — Replication lag at failure time, promote logs.
  3. Cost optimize warm standby. — Scheduled scaling, smaller instance classes, serverless burst.
  4. Kafka multi-region ordering? — MirrorMaker 2, consumer offset strategy.
  5. ARC vs manual runbook? — Automated readiness gates and routing controls.

22A. Production Low-Level Design (Interview + Game Day)​

Active-passive or active-active payment API with explicit RPO/RTO. Production LLD and Game Day Standard.

Control vs data plane​

PlanePattern
ControlGlobal DNS/Traffic Manager, feature flag active_region, health
DataDB replication (async/sync), regional caches, idempotency store policy

Step-by-step failover LLD:

StepActionClock
1Detect region impairment0–5m
2Freeze writes / decideIC
3Promote DR; DNS cutoverWithin RTO
4Canary + reconcile in-flightMeasure RPO

Contract​

State RPO (lag) and RTO (cutover) on the whiteboard; idempotency/dedup must match RPO.


22B. Game Day Playbooks​

#DrillInjectDetectMitigateVerify
GD-1Primary region lossBlock regionHealth + error burnFailover runbookRTO/RPO met; canary OK
GD-2Replication lag spikePause replicationLag > RPOThrottle / sync modeNo promote beyond policy
GD-3Split brain DNSDual activeDual-write alarmFence primarySingle writer

GD-1 — Region failover​

23. Strong Answer Example​

Question: "Design multi-region DR for a payment API with RPO 30 seconds and RTO 5 minutes."

Answer this as a 45-minute greenfield design using the PRACTICE framework. Below is how a strong student sounds aloud—clarify first, then design, then defend the 5-minute / 30-second clock.

PRACTICE interview answer map for multi-region payment API DR

Figure A: PRACTICE map — Problem → Requirements → Assumptions → Capacity → Topology → Invariants → Constraints → Evolution.


Student interview script (PRACTICE)​

P — Problem framing​

"We're designing multi-region disaster recovery for a payment API. Hard targets: RPO ≤ 30 seconds and RTO ≤ 5 minutes. If us-east-1 dies, we may lose at most half a minute of committed payment data, and merchants must authorize again inside five minutes.

Non-goals for v1: dual-writer active-active across regions, multi-cloud, and analytics/warehouse to the same RTO. Payments need a single writer to avoid split-brain ledgers."

R — Requirements​

TypeRequirement
FRAuthorize / capture / refund; merchant webhooks; idempotent writes
NFRRTO 5 min, RPO 30 s; p99 latency SLO in primary; PCI scope
ComplianceAudit trail survives failover; no dual ledger writers
OpsMeasured failover runbook; quarterly game day; lag as SLI

"I'll ask: AWS? Card payments only or full ledger? Multi-AZ already in primary? I'll assume AWS, card payments + webhooks, multi-AZ baseline, PCI in scope."

A — Assumptions (state aloud)​

AssumptionWhy it matters
Single primary writer regionAvoids split-brain payment state
Aurora Global (or equivalent) async CRRCan meet ~30s RPO if lag is alerted and enforced
DNS or Global Accelerator failover OKDominates part of the 5-minute RTO
Hot/warm standby ~40–50% capacity5 min is too tight for cold/pilot light
Idempotency keys durable in DBSafe retries after failover

"If they demand RPO ≈ 0 cross-region, that forces sync replication or region-pinned writes—different design and latency tax. I'll call that out."

C — Capacity (back-of-envelope on the clock)​

Peak authorize QPS → 5,000 (say)
RPO budget → 30s hard; alert lag p99 > 10–15s
RTO budget (5:00 total) → detect 45s + decide 30s + traffic 60s
→ promote ~60s + scale 60s + smoke 45s
DNS TTL → 30–60s (lower TTL = faster fail, more churn)
DR compute → keep ~50% warm (not 10–20%) for 5-min RTO
Health check → /health includes DB writable check in DR after promote

"RPO is lag at the failure instant, not backup frequency. RTO is detect + decide + shift traffic + promote + scale + prove—I'll budget it on a whiteboard clock."

T — Topology (draw this)​

Payment API hot/warm standby multi-region topology

Figure B: Active primary (us-east-1) + hot/warm standby (us-west-2). Aurora Global lag SLO < 15s alert / 30s RPO; Route 53 (± Global Accelerator); DR API pre-warmed ~50%.

Pattern choice: Active-passive hot/warm standby (not pilot light, not dual-writer active-active).

PatternTypical RTOFit for 5 min / 30 s?
Backup-restoreHours❌
Pilot light30–90+ min❌ misses RTO
Warm (~20%)~10–20 min⚠️ risky for 5 min
Hot/warm (~50%) + Aurora Global~3–5 min✅ with practice
Active-active dual writeSecondsOverkill + split-brain for v1 payments

I — Invariants (safety)​

"Non-negotiable for payments:

  1. Single writer after failover—promote once; fence the old region.
  2. Idempotency-Key in the durable store so retries don't double-charge.
  3. RPO honesty — in-flight commits not yet replicated are lost; webhook outbox may need replay.
  4. No flapping — readiness gate (e.g. ARC) before automated DNS flip.
  5. Lag > 30s ⇒ RPO already breached — pause risky deploys; don't pretend DR is healthy."

C — Constraints (second C)​

ConstraintDesign response
Cost~50% standby burn beats 2× active-active; still material—justify with BIA
Split-brainManual/dual-control promote or automated promote with fencing
PCISame controls in DR; secrets/ECR replicated; no plaintext keys in AMIs
DNS TTL vs churn30–60s TTL inside 5-min budget; consider Global Accelerator for sticky anycast
Async lagPage at 10–15s; if sustained > 30s, treat as sev and block failover automation

E — Evolution (failover on a 5-minute clock)​

Failover timeline targeting RTO of 5 minutes

Figure C: RTO budget — detect → decide → traffic → promote → scale → smoke test, all inside 5:00; RPO = lag at fail time ≤ 30s.

Runbook (what I'd execute):

  1. Detect (~45s) — multi-signal: synthetic authorize, ALB 5xx, AWS Health / Route 53 health on /health.
  2. Decide (~30s) — IC declares regional failover; check ARC readiness (lag OK, capacity OK, runbook green).
  3. Traffic (~60s) — Route 53 failover and/or Global Accelerator endpoint weight; wait for TTL/propagation.
  4. Data (~60s) — promote Aurora Global secondary; confirm writable primary in DR.
  5. Compute (~60s) — scale DR ASG/ECS from ~50% → 100%; secrets/ECR already local.
  6. Verify (~45s) — synthetic authorize + capture + webhook; estimate RPO from lag-at-failover metric.
  7. Fence — remove old region from DNS; deny writes (SG / disable listeners).
  8. Failback later — planned reconciliation—not automatic same day.

Phased delivery:

PhaseDeliverable
M1Multi-AZ + PITR (baseline)
M2Aurora Global + lag SLOs (alert 15s / breach 30s)
M3Hot/warm API in secondary + Route 53 (+ optional GA)
M4Automated promote with readiness gate / ARC
M5Quarterly game day; publish measured RTO/RPO; error budget blocks launches if DR test fails

Observability: replication_lag_seconds, step timers on the failover clock, synthetic success in DR, error-budget burn during game day.


Closing line (interview)​

"So: active-passive hot/warm standby, Aurora Global with lag alert at ~15s for the 30-second RPO, Route 53 ± Global Accelerator + promote + scale inside a 5-minute RTO clock, single-writer + fencing + idempotency for safety, and quarterly game days so RTO is measured. If you need sub-minute RTO with dual writers, that's a different consistency and conflict design—and I'd challenge whether payments should take that risk in v1."

Scoring signals​

StrongWeak / red flag
Budgets RTO on a minute-by-minute clock"Two regions + Route 53" with no steps
Lag SLI tied to 30s RPODaily backups for 30s RPO
Hot/warm capacity for 5-min RTOPilot light / 10% capacity
Single writer + fencing + idempotencyActive-active writes with no conflict story
Readiness gate / game day / measured RTOUntested automatic DNS flip

Compact outline (if time-boxed to 2 minutes)​

"Primary us-east-1, hot/warm us-west-2 at ~50%. Aurora Global: alert lag 15s, hard RPO 30s. Route 53 failover TTL 30–60s ± Global Accelerator. Promote secondary <1 min, scale to 100%, synthetic payment in remaining budget → RTO ≤ 5 min. Fence old region. Idempotency keys. ARC readiness before auto-flip. Quarterly game day; fail DR test → pause launches."

24. Weak Answer Example​

Question: "Design multi-region DR for a payment API with RPO 30 seconds and RTO 5 minutes."

"Deploy in two regions with Route 53 and replicate the database."

Why weak / red flags: No RTO/RPO mechanism, no replication technology or lag SLI, no failover step budget, no split-brain or fencing discussion—and 5 minutes / 30 seconds are ignored.

25. Hands-On Exercise​

Lab: labs/lab-012-multi-region-aws/ — DR failover simulator on :8102

cd labs/lab-012-multi-region-aws
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
pytest tests/ -v
docker compose -p lab012 -f docker/docker-compose.yml up --build -d
chmod +x scripts/demo_multiregion.sh && ./scripts/demo_multiregion.sh
StepEndpointWhat happens
1POST /v1/config/validateValidate Terraform-style multi-region config
2POST /v1/failover/simulateDry-run active-passive failover timeline
3RTO/RPO outputReplication lag → data loss window
4Health check failureRoute 53 failover trigger simulation
5GET /healthStack status

Swagger: http://localhost:8102/docs

Engineer guide: how the local stack works​

  1. Plan-only by default — validates architecture without requiring AWS apply (cost-safe).
  2. Active-passive model — primary us-east-1, DR us-west-2 with cross-region replication lag.
  3. Failover simulator — computes RTO from health-check interval + DNS TTL + promotion steps.
  4. RPO from lag — replication delay at failure time bounds acceptable data loss.
  5. Runbook output — ordered steps for incident commander (aligns with game-day exercises).

Pairs with AWS S3 Multi-Region DR and Disaster Recovery.

Build-from-scratch exercise (optional)​

  1. Deploy two-region VPC stacks with Terraform/CDK (secondary minimal).
  2. Configure Aurora Global Database or DynamoDB Global Table.
  3. Set Route 53 failover records with health checks.
  4. Inject failure: security group deny on primary ALB; observe failover time.
  5. Measure replication lag under write load; write runbook with actual timings.

26. Knowledge Check​

  1. What is the difference between RTO and RPO?
  2. Name four DR patterns on the AWS spectrum.
  3. How does Aurora Global Database failover differ from RDS cross-region replica promotion?
  4. What routing policy sends users to lowest-latency healthy region?
  5. Why can active-active DynamoDB require application changes?
  6. What causes DNS failover delay?
  7. What is a cell-based architecture?
  8. How do you prevent split brain during DB promotion?
  9. What metric indicates DynamoDB cross-region replication health?
  10. When use Global Accelerator over Route 53 alone?
  11. What is S3 CRR?
  12. Why practice failback?

27. Flashcards​

FrontBack
RTOMax acceptable downtime to restore service
RPOMax acceptable data loss measured in time
Pilot lightMinimal DR resources; scale on disaster
Warm standbyReduced but running DR environment
Active-passiveOne primary traffic region at a time
Active-activeMultiple regions serve traffic concurrently
Aurora Global DatabaseManaged cross-region Aurora with fast failover
DynamoDB Global TablesMulti-region multi-master replication
Route 53 failoverPrimary/secondary DNS with health checks
Split brainTwo primaries accepting conflicting writes
Replication lagDelay between write in A and visibility in B
Game dayScheduled DR exercise in production-like conditions

28. Cheat Sheet​

DR SPECTRUM (cost ↑, RTO ↓)
backup/restore → pilot light → warm standby → hot standby → active-active

AWS ROUTING
Route 53: latency, failover, weighted, geolocation
Global Accelerator: anycast, TCP/UDP
CloudFront: edge cache + origin failover

DATA REPLICATION
Aurora Global: single writer, fast regional failover
DynamoDB Global Tables: multi-writer, conflict awareness
S3 CRR: async object replication
RDS cross-region replica: manual promote

OPERATIONS
IaC all regions
measure replication lag (SLI)
quarterly game days
document failback
ARC for routing controls

30. References​

Primary sources​

Books​

  • Beyer, B., et al. (2016). Site Reliability Engineering. O'Reilly. [DR and error budgets]
  • Kleppmann, M. (2017). Designing Data-Intensive Applications. O'Reilly. [Multi-datacenter patterns]

Distinction​

  • AWS-documented failover times — Implementation targets; measure in your environment.
  • Business RTO/RPO — Contractual or leadership decisions, not service defaults.