This lesson combines 4 topics: Multi-AZ vs Multi-Region, DR Strategies (4 Patterns), Backup and Restore Patterns, Route 53 Failover Patterns.
Learning Objectives
- Distinguish Multi-AZ and Multi-Region architectures
- Understand the trade-offs: cost, complexity, RTO/RPO
- Apply the right pattern for each workload
- Understand the 4 DR patterns: Backup/Restore, Pilot Light, Warm Standby, Multi-Site
- Distinguish RTO/RPO trade-offs
- Apply the right pattern for each business requirement
- Apply AWS Backup for a centralized backup strategy
- Understand service-specific backup options
- Master restore procedures and testing
- Understand Route 53 Failover routing
- Apply Health Checks for automatic failover
- Distinguish Active-Passive vs Active-Active
- Understand DNS TTL impact on failover speed
Part 1: Multi-AZ vs Multi-Region
1. High Availability Concepts
Definition
- High Availability (HA): minimize downtime (~99.9-99.99%)
- Fault Tolerance: zero downtime, system continues during failure
- Disaster Recovery (DR): recover from major disaster (region-wide)
Key metrics
- RTO (Recovery Time Objective): max acceptable downtime
- RPO (Recovery Point Objective): max acceptable data loss
- SLA (Service Level Agreement): uptime guarantee
Common SLA examples
- 99% = ~3.65 days downtime/year
- 99.9% = ~8.77 hours/year
- 99.99% = ~52.6 minutes/year
- 99.999% (5 nines) = ~5.26 minutes/year
2. AWS Failure Domains
Hierarchy
Failure scenarios
| Failure | Affected | Mitigation |
|---|---|---|
| Instance failure | 1 EC2 | Auto Scaling Group (auto-replace) |
| Hardware failure | 1 host | Place instances in spread placement group |
| AZ failure (rare) | All resources in AZ | Multi-AZ deployment |
| Region failure (very rare) | All resources in region | Multi-Region deployment |
3. Multi-AZ Architecture
Pattern
Components
- ALB: span multiple AZs (built-in HA)
- ASG: spread across AZs
- RDS Multi-AZ: primary + standby in different AZ
- DynamoDB: auto multi-AZ replicate
- EFS: multi-AZ
- S3: multi-AZ (Standard storage class)
Benefits
- Tolerate AZ failure
- Low latency between AZs (< 10ms)
- No cross-region data transfer cost
- Simpler than multi-region
Trade-offs
- Does NOT protect against region failure
- Limited to 1 region's services
Typical SLA: 99.99%
4. Multi-Region Architecture
Pattern
Benefits
- Tolerate region failure (major disaster)
- Lower latency for global users
- Compliance (data residency per region)
Trade-offs
- Higher cost (resources in multiple regions)
- Higher complexity (replication, failover)
- Eventually consistent between regions (lag)
- Cross-region data transfer cost
Typical SLA: 99.999%+
5. DR Strategies (Recap, details in Part 2)
| Strategy | RTO | RPO | Cost |
|---|---|---|---|
| Backup & Restore | Hours | Hours | $ |
| Pilot Light | 10 min - hour | Min | $$ |
| Warm Standby | Minutes | Min | $$$ |
| Multi-Site (Active-Active) | Seconds | None | $$$$ |
6. Multi-AZ Decision Matrix
Always Multi-AZ for production
- RDS, Aurora (Multi-AZ deployment)
- ElastiCache (cluster mode)
- EFS (Standard)
- Application servers (ALB + ASG across AZs)
Single-AZ OK for
- Dev/test environments
- Stateless workloads (can rebuild)
- Cache (data can be regenerated)
- Compute-only workload with data elsewhere
7. Multi-Region Use Cases
When multi-region needed
- Global users with latency requirements
- Mission-critical (banks, healthcare)
- Regulatory compliance (data residency)
- Tolerate region failure (rare but possible)
When NOT needed
- Single-region users
- Cost-sensitive (overhead 2x+)
- App not designed for distributed state
- Acceptable to have hours of downtime
8. Service Availability Patterns
Stateless services
- Easy to multi-AZ/multi-region (deploy in each)
- Examples: EC2 web tier, Lambda
Stateful services
- Harder — need data replication
- Examples: databases, file systems
Strategies for stateful
- Multi-AZ replication: RDS Multi-AZ, ElastiCache Redis Multi-AZ
- Cross-region replication: S3 CRR, DynamoDB Global Tables, Aurora Global DB
- Manual replication: backup + restore in DR region
9. Data Replication Options
Synchronous replication
- Write to primary + replica before ACK
- Zero RPO (no data loss)
- Higher latency (limited to ~10ms = same region)
- Examples: RDS Multi-AZ, Aurora replicas (same region)
Asynchronous replication
- Write to primary, replica eventually
- Some RPO (data loss possible, seconds-minutes)
- Lower latency (cross-region possible)
- Examples: RDS Read Replicas, S3 CRR, DynamoDB Global Tables
Combined
- Within region: sync (HA)
- Cross-region: async (DR)
10. Common Architecture Patterns
Pattern 1: Multi-AZ web app
Pattern 2: Multi-Region active-passive
Pattern 3: Multi-Region active-active
11. Cost Considerations
Multi-AZ
- ~2x cost for stateful (RDS Multi-AZ = 2x)
- ~1x cost for stateless (already in multiple AZs)
Multi-Region
- ~2x+ cost (duplicate everything)
- Cross-region data transfer ($)
- Plus replication setup/maintenance
Optimize
- Multi-AZ for HA, not multi-region if not needed
- Use Aurora Global Database instead of full duplication (cheaper)
- DynamoDB Global Tables (pay per region)
- Active-passive cheaper than active-active (DR region scaled down)
Part 2: DR Strategies (4 Patterns)
1. RTO and RPO
Definition
- RTO (Recovery Time Objective): max acceptable downtime (how long can we be down?)
- RPO (Recovery Point Objective): max acceptable data loss (how much data can we lose?)
Example
- Online banking: RTO = 1 hour, RPO = 0 (no data loss)
- Internal blog: RTO = 24 hours, RPO = 1 day
Trade-off
- Lower RTO/RPO → higher cost
- Balance: spend $$ proportionally to business impact
2. The 4 DR Strategies
RTO RPO Cost
Backup & Restore Hours Hours $
Pilot Light 10 min-1h Min $$
Warm Standby Minutes Min $$$
Multi-Site Active/Active Seconds Zero $$$$
3. Strategy 1: Backup & Restore
Architecture
RTO: Hours to days
RPO: Hours (depending on backup frequency)
Setup
- Daily backups to S3 with CRR
- AMI snapshots cross-region
- Database snapshots cross-region
- CloudFormation templates ready in DR region
Cost
- Lowest: only pay for backup storage in DR region
- No compute running in DR
Use case
- Non-critical apps
- Long RTO/RPO acceptable
- Cost-sensitive
4. Strategy 2: Pilot Light
Architecture
RTO: 10 minutes - 1 hour
RPO: Minutes (continuous replication)
Setup
- Continuous DB replication (e.g., Aurora cross-region replica)
- AMIs current in DR region
- Network setup pre-configured
- Auto Scaling templates ready
Cost
- Medium: minimal compute running, DB replica costs
- Still pay for DB replica + minimal EC2
Use case
- Important apps but not mission-critical
- Acceptable < 1 hour downtime
5. Strategy 3: Warm Standby
Architecture
RTO: Minutes (< 30 min)
RPO: Minutes
Setup
- Smaller version of production in DR
- Continuous replication
- Optionally serve % traffic for warmup
Cost
- Higher: full architecture running (smaller scale)
Use case
- Critical apps
- Need fast recovery
- Budget for redundancy
6. Strategy 4: Multi-Site Active-Active
Architecture
RTO: Seconds (auto-failover)
RPO: Near-zero
Setup
- Both regions full production
- Bi-directional data replication
- Route 53 latency-based + health checks
- Aurora Global Database / DynamoDB Global Tables
Cost
- Highest: 2x+ infrastructure
- 2x compute, 2x storage, cross-region transfer
Use case
- Mission-critical (financial, healthcare)
- Global users (low latency benefit too)
- Compliance requires multi-region
7. Comparison Table
| Strategy | RTO | RPO | Cost | Complexity |
|---|---|---|---|---|
| Backup & Restore | Hours-days | Hours | $ | Low |
| Pilot Light | 10 min-1h | Minutes | $$ | Medium |
| Warm Standby | < 30 min | Minutes | $$$ | Medium-High |
| Multi-Site A/A | Seconds | Near-zero | $$$$ | High |
8. Choosing Strategy
Decision matrix
Cost vs benefit
- Calculate cost of downtime per hour
- If $1000/hr downtime cost, paying $500/month for HA is worth it
9. DR Testing
Regular drills required
- Test DR procedure quarterly
- Validate RTO/RPO actually meet objectives
- Update runbooks after tests
Game days
- Simulated outages
- Practice for ops team
- Find gaps before real incident
AWS Resilience Hub
- Automated DR testing tool
- Continuous validation
- Recommendations based on Well-Architected Framework
10. Common AWS Services for DR
Compute
- EC2 + AMI cross-region copy
- ASG with multi-region patterns
- Lambda (regional, easy redeploy)
Storage
- S3 Cross-Region Replication (CRR)
- EBS snapshot cross-region copy
- AWS Backup cross-region
Databases
- RDS cross-region read replica → promote
- Aurora Global Database (sub-second cross-region)
- DynamoDB Global Tables (multi-master)
- ElastiCache global datastore (Redis)
Network
- Route 53 Failover routing
- Route 53 health checks
- Global Accelerator (anycast)
- Transit Gateway peering
Orchestration
- CloudFormation templates (rebuild)
- AWS Backup (centralized backup management)
- AWS Resilience Hub (DR validation)
11. Specific Service DR Capabilities
S3
- Same-region replication (SRR)
- Cross-region replication (CRR)
- S3 RTC: 99.99% replicated within 15 min
RDS
- Multi-AZ: synchronous, intra-region
- Read replicas: async, cross-region
- Automated backups: PITR
- Snapshots: manual, cross-region copy
Aurora
- Aurora Global Database: < 1 min RTO, < 1 sec RPO
DynamoDB
- Global Tables: multi-region active-active
Lambda
- Stateless, regional
- DR: deploy in DR region (CloudFormation/IaC)
12. Common Patterns
Pattern 1: SaaS web app
- Multi-AZ in primary region
- Warm Standby in DR region (smaller)
- Aurora cross-region replica
- S3 CRR for assets
- Route 53 failover with health check
Pattern 2: E-commerce global
- Multi-Site Active-Active
- DynamoDB Global Tables
- Aurora Global Database
- Route 53 latency routing
- CloudFront for static content
Pattern 3: Compliance archive
- Backup & Restore
- S3 Glacier with cross-region replication
- Quarterly restore drills
Pattern 4: Critical internal tool
- Pilot Light
- Daily DB backups + CRR
- AMI ready in DR
- Documented manual failover procedure
Part 3: Backup and Restore Patterns
1. Backup Strategy Tiers
Tier 1: Service-native backup
- Each service has its own native backup (RDS snapshots, EBS snapshots)
- Configure per service
- Manual or automatic
Tier 2: AWS Backup (centralized)
- A single service manages backup for every supported service
- Backup plans, policies, vault management
- (Details in Week 1 Day 5, Part 3)
Tier 3: Third-party tools
- Veeam, Commvault, Cohesity
- Integration with AWS
2. Backup Components Review
Backup Plan
- Schedule (cron)
- Lifecycle (warm + cold transitions)
- Cross-region copy
Backup Vault
- Storage container
- KMS encryption
- Access policy
- Vault Lock (immutable WORM)
Backup Job
- Instance of backup execution
Restore Job
- Restore from recovery point to new resource
3. Service-Specific Backup Options
EBS Snapshots
- Incremental backup to S3
- Cross-region copy
- Cross-account share (with KMS key share)
- DLM (Data Lifecycle Manager) automation
RDS Snapshots
- Automated (daily, retention 0-35 days, PITR)
- Manual (indefinite retention)
- Cross-region/cross-account copy
DynamoDB Backups
- PITR (35 days continuous backup)
- On-demand backup (indefinite)
- AWS Backup integration
S3
- Versioning (track changes, recover from accidental delete)
- Replication (SRR, CRR)
- Object Lock (WORM)
Aurora
- Continuous backup to S3 (1-35 days PITR)
- Snapshots
- Cross-region snapshots
EFS
- Backup automatic via AWS Backup
- Per-file restore
4. Backup Strategy Best Practices
3-2-1 Rule
- 3 copies of data
- 2 on different storage media
- 1 offsite (cross-region)
AWS implementation
- Production: live in S3 + EBS + RDS
- Backup vault: AWS Backup vault same region
- DR copy: AWS Backup vault cross-region
Test restore regularly
- "Untested backup = no backup"
- Quarterly restore test
- Document time taken (validate RTO)
Vault Lock
- Compliance Mode (immutable, even root)
- Use for compliance archives
- Ransomware protection
5. Cross-Region Backup
Setup AWS Backup CRR
- Backup Plan with copy action
- Destination vault in DR region
- Lifecycle for cross-region copy
- Separate KMS keys per region
Cost
- Cross-region data transfer charge
- Storage cost in both regions
Use case
- DR (region-wide failure)
- Compliance (data in multiple geos)
6. Cross-Account Backup
Use case
- Ransomware protection (attacker in prod can't delete backups in security account)
- Compliance (separation of duties)
Setup (with Organizations)
- Enable AWS Backup at organization level
- Backup plan in management/delegated account
- Backup copies to central vault account
Vault in central account
- Vault Lock Compliance Mode
- Only backup admin role can manage
- Prod account compromise doesn't lose backups
7. Database Specific
RDS PITR (Point-in-Time Recovery)
- Restore to any second within retention (default 7 days)
- Restore creates NEW DB instance (cannot restore in-place)
- New endpoint → update app config
Aurora Backtrack (MySQL)
- "Rewind" cluster to previous timestamp (up to 72 hours)
- In-place (no new cluster)
- Faster than PITR
DynamoDB PITR
- Last 35 days
- Restore to new table
Choice
- PITR: standard, granular (any second)
- Backtrack: Aurora only, faster but only 72 hours
- Manual snapshot: long-term retention, after major changes
8. EBS Snapshot Patterns
DLM (Data Lifecycle Manager)
DLM Policy:
Target: tag Environment=production
Schedule:
- Frequency: daily at 03:00 UTC
Retention: 7 snapshots
- Frequency: weekly Monday 04:00 UTC
Retention: 4 weeks
- Frequency: monthly 1st 05:00 UTC
Retention: 12 months
Copy across regions: us-west-2
Encryption: customer-managed KMS key
Tags-based selection
- Tag instances/volumes with
Backup=trueorTier=production - DLM picks up automatically
- No manual maintenance
9. S3 as Backup Destination
Use case
- On-prem backup to S3 (replacing tape)
- App-level backup logs/files
- Database export
Tools
- AWS Storage Gateway (Tape Gateway): emulate tape library
- AWS Backup (with native sources)
- AWS DataSync (file sync)
- Custom scripts (aws s3 sync)
Storage class tiering
- Recent: S3 Standard or Standard-IA
- Older: Glacier Instant Retrieval
- Archive: Glacier Deep Archive
Cost optimization
- Lifecycle rules transition automatically
- Use S3 Object Lock Compliance Mode for immutability
10. Restore Best Practices
Document procedures
- Step-by-step runbook for each restore scenario
- Include who has authority, dependencies
Test regularly
- Quarterly: simulate failure, restore from backup
- Measure: actual RTO/RPO vs target
Restore environment
- Often restore to isolated environment first (verify)
- Then move to production once validated
Communication
- Document stakeholder notification process
- Status updates during recovery
11. Backup Cost Optimization
Strategies
- Lifecycle to cold storage for old backups
- Right-size retention (don't keep forever unnecessarily)
- Skip dev/test backups (or shorter retention)
- Compress before backup if possible
- Deduplication (Storage Gateway, some tools)
- Avoid multiple backup tools (consolidate to AWS Backup)
Cost components
- Storage in S3/Glacier ($)
- Cross-region transfer ($)
- API calls (small)
- KMS API calls (encryption)
12. Common Patterns
Pattern 1: SaaS app
- AWS Backup daily for EC2, RDS, EFS
- Lifecycle to cold storage after 30 days
- Cross-region copy for DR
- Vault Lock Governance for production
Pattern 2: Compliance archive
- AWS Backup with Compliance Mode Vault Lock
- 7-year retention
- Cross-region for redundancy
- Backup Audit Manager reports
Pattern 3: Ransomware protection
- Cross-account backup to security account
- Vault Lock Compliance Mode
- Production can backup TO but not delete FROM
Pattern 4: Critical DB
- RDS Multi-AZ (HA)
- Automated backups + PITR (35 days)
- Cross-region snapshot copy (DR)
- Aurora Global Database for fast recovery
Part 4: Route 53 Failover Patterns
1. Failover Routing Recap
Active-Passive
- Primary + Secondary record
- Health check on primary
- If primary unhealthy → traffic to secondary
Architecture
2. Health Checks
3 types
1. Endpoint Health Check
- HTTP/HTTPS/TCP probe
- ~15 AWS health checkers globally
- Interval: 10s (fast) or 30s (standard)
- Failure threshold: 1-10 (default 3)
- Path, port, host configurable
2. Calculated Health Check
- Combine 2-256 child health checks
- AND, OR, NOT logic
- Use case: "Healthy if 3+ regions healthy"
3. CloudWatch Alarm-based Health Check
- Trigger when CloudWatch alarm state
- Use case: alarm on DynamoDB throttling → DNS failover
Cost
- Endpoint within AWS: first 50 checks free (same account), then $0.50/check/month
- Endpoint outside AWS: $0.75/check/month
- Optional features (HTTPS, string matching, fast interval...): $1-2/feature/month
- Calculated: $1/check/month
- CloudWatch alarm-based: $1/check/month
3. Health Check Best Practices
Endpoint design
- Dedicated
/healthendpoint - Returns 200 if healthy, 503 if not
- Check dependencies (DB connection, cache, external API)
Frequency
- 10-second interval for critical apps (fast failover)
- 30-second for less critical (lower cost)
Failure threshold
- Higher (e.g., 5): less false positives, slower failover
- Lower (e.g., 2): faster failover, more false positives
- Recommended: 3-5
Multi-region health check
- Place health checkers in DIFFERENT regions than target
- Detect region-specific issues
4. DNS TTL and Failover Speed
Why TTL matters
- TTL = how long resolvers cache DNS response
- After failover, resolvers may serve OLD record until TTL expires
- → Effective failover time = health check detection + TTL expiry
Trade-off
- Low TTL (60 sec): fast failover, more DNS queries (cost)
- High TTL (24 hour): cheap, slow failover
Recommendation
- Stable apps: 300-3600s
- HA apps: 60s
- Before maintenance: pre-lower TTL 24h ahead
ALIAS record
- AWS-managed TTL (usually 60 sec)
- Optimal for AWS resources
- Recommended over CNAME
5. Active-Passive Failover Setup
Steps
- Create a health check on the primary ALB
- Create the primary record:
- Routing policy: Failover
- Failover type: Primary
- Health check ID: from step 1
- Value: ALB-us-east-1 alias
- Create the secondary record:
- Routing policy: Failover
- Failover type: Secondary
- Health check optional
- Value: ALB-eu-west-1 alias
Behavior
- DNS query → R53 returns Primary IF healthy
- If unhealthy → returns Secondary
- When primary recovers → R53 returns Primary again
Combine with a DR strategy
- Pilot Light / Warm Standby: passive resources in DR region
- Health check fail → DNS failover + (optionally) auto-scale DR
6. Active-Active Failover
Pattern: Multivalue Answer or Weighted/Latency
- Both regions actively serving
- Each region has own health check
- If 1 region is unhealthy → DNS does not return its record
Weighted Routing with health checks
Latency-based with health checks
- Lowest-latency region returned
- Skip unhealthy regions
- Best for global apps
7. Multi-Region Failover Patterns
Pattern 1: Active-Passive with Aurora Global DB
Pattern 2: Active-Active with DynamoDB Global Tables
Pattern 3: Active-Active with Global Accelerator
8. Route 53 vs Global Accelerator
| Route 53 Failover | Global Accelerator | |
|---|---|---|
| Mechanism | DNS (TTL-dependent) | Anycast IP (TCP/UDP) |
| Failover time | Health check + TTL | < 1 minute (no DNS dependency) |
| Protocol | Any (DNS-resolved) | TCP, UDP |
| Static IP | No | Yes (2 anycast IPs) |
| Caching | DNS resolver | No |
| Cost | $0.50/zone + queries | $0.025/hour endpoint + data transfer |
When to use GA over Route 53
- Need a static IP for whitelisting
- Non-HTTP traffic (gaming, IoT)
- Faster failover (< 1 min vs TTL-dependent)
- Reduce DNS-related latency
9. Failover Testing
Test procedure
- Manually disable primary (stop ALB target group health)
- Observe DNS failover (use
digor online DNS tool) - Measure time: health check detection + TTL expiry
- Verify app works on secondary
- Re-enable primary, observe failback
Tools
dig +short example.com(check current DNS)- AWS Console Route 53 health check status
- CloudWatch metrics on health check
Game day exercise
- Simulate region failure
- Document actual RTO/RPO
- Find gaps (e.g., manual steps that should be automated)
10. DNS Failover Limitations
Limitations
- DNS resolvers may cache (TTL)
- Browser DNS cache (separate from resolver, persistent across requests)
- CDN edge caches DNS too
- Some clients ignore TTL (rare)
Workarounds
- Use Global Accelerator (no DNS)
- Use CloudFront (origin failover at edge level)
- Use client-side retry logic with multiple endpoints
11. CloudFront Origin Failover
Definition
CloudFront Origin Failover = primary + secondary origin in CloudFront distribution.
Setup
Behavior
- Edge tries primary, if fails → secondary
- Sub-second failover (no DNS)
- Use case: HTTP/HTTPS apps with multi-region origins
vs Route 53 Failover
- CloudFront: faster failover, only HTTP/HTTPS, requires CloudFront
- Route 53: any protocol, slower (TTL-dependent)
12. Common Patterns
Pattern 1: Web app multi-region failover
Pattern 2: API endpoint with static IP
Pattern 3: Database failover
Review Questions
-
What is the difference between Multi-AZ and Multi-Region?
Show answer
Multi-AZ: redundancy within the same Region, protecting against AZ failure (hardware, power, network). Failover is automatic and fast (seconds to minutes). Multi-Region: redundancy across two or more Regions, protecting against Region failure (rare) or serving users globally with low latency. Multi-Region is more complex and more expensive, but needed for the highest availability requirements and global applications.
-
Are Region failures frequent?
Show answer
Very rare: AWS Region-wide failures are extremely rare. AZ failures happen occasionally. Multi-Region is usually used for: (1) Latency: serving users globally, (2) Compliance: data residency requirements, (3) Business continuity for extreme availability requirements, not because Region failures are frequent. Most applications only need Multi-AZ; Multi-Region is overkill and costly for most use cases.
-
When should you use Multi-Region?
Show answer
(1) A global user base needing low latency from many continents, (2) Near-zero RTO/RPO: downtime is unacceptable even with failover, (3) Regulatory compliance: data must be replicated to a second Region, (4) Critical business applications with high revenue loss per minute of downtime, (5) Sovereignty/Data residency requirements. Cost and complexity rise significantly; justify it only when business requirements are clear.
-
Is RDS Multi-AZ sync or async replication?
Show answer
Synchronous replication: the primary does not acknowledge a write to the application until the standby confirms it has replicated. This guarantees zero data loss (RPO = 0) on failover. However, write latency is slightly higher than single-AZ. This differs from Read Replicas, which use asynchronous replication: there may be a few seconds of lag, but little impact on write performance.
-
What is the maximum downtime per year for a 99.99% SLA?
Show answer
~52 minutes/year (52.6 minutes). Comparison: 99.9% = ~8.7 hours/year, 99.95% = ~4.4 hours/year, 99.999% (five nines) = ~5 minutes/year. Formula: downtime = (1 - SLA%) × 365 × 24 × 60 minutes. Many AWS services such as S3, DynamoDB, ALB have an SLA of 99.99% or higher. A composite architecture's SLA is lower than the minimum component SLA; you need redundancy to reach a high overall SLA.
-
What are the 4 DR strategies from cheapest → most expensive?
Show answer
(1) Backup & Restore: cheapest; back up data to the DR Region, restore on disaster. RTO hours to days. (2) Pilot Light: core components (DB replication) running, compute off; scale up when needed. RTO minutes to hours. (3) Warm Standby: scaled-down production running; scale up on failover. RTO minutes. (4) Multi-Site Active-Active: most expensive; both regions at full capacity, traffic routed by ratio. RTO ~0.
-
Does Pilot Light have resources running in the DR region?
Show answer
Yes, but only core components: database replication running (RDS cross-region replica, DynamoDB Global Tables). Compute (EC2, ECS) is off or scaled to minimum. On disaster: (1) Promote the DB replica, (2) Scale up/launch compute, (3) Update DNS. The name "Pilot Light" comes from a gas heater: a small flame always burning, ready to ignite to full. Cheaper than Warm Standby because compute is not running.
-
What is the approximate RTO of Multi-Site Active-Active?
Show answer
Near 0 (zero downtime): both Regions are serving traffic. When one Region fails, Route 53 or Global Accelerator automatically routes 100% of traffic to the remaining Region, with no manual intervention. The actual RTO depends on DNS TTL and health check intervals (usually < 1 minute). RPO is also near 0 if data is replicated sync (Aurora Global Database) or minutes if async.
-
What is AWS Resilience Hub used for?
Show answer
AWS Resilience Hub assesses and improves the resiliency of an application. Import the application from CloudFormation/Terraform/AppRegistry → define RTO/RPO targets → the Hub analyzes the architecture → recommends fixes for gaps → generates a resiliency score. It can also run resiliency drills (automated chaos engineering). It helps teams know whether the application meets DR objectives, instead of only finding out when a real disaster happens.
-
When should you use the Backup & Restore strategy?
Show answer
When: (1) RTO/RPO requirements are low (hours acceptable), (2) The budget is limited and cannot justify running infrastructure in a DR region continuously, (3) Non-critical workloads: dev/test, batch processing, archives, (4) Data is fully backed up and restores are tested regularly, (5) Compliance requires offsite backup but not fast failover. Not suitable for production systems requiring RTO < 1 hour.
- What is the 3-2-1 backup rule?
Show answer
3 copies of data, on 2 different media types, with 1 copy offsite. In an AWS context: 3 copies (S3 replicates 3+ by itself, EBS snapshot), 2 media types (EBS + S3, or S3 Standard + Glacier), 1 offsite (cross-Region backup). This principle ensures that a single hardware failure, site disaster, or ransomware cannot wipe out all copies at once.
- Does RDS PITR allow an in-place restore?
Show answer
No: RDS Point-in-Time Recovery always creates a new DB instance. You cannot overwrite the existing instance. After the restore, you need to update the connection string in the application or rename instances. PITR granularity: 1 second (for MySQL/Aurora); it requires automated backups enabled, retention 1-35 days. This is a safety feature that prevents overwriting the production DB during a restore.
- What is the maximum Aurora Backtrack window?
Show answer
72 hours (3 days) maximum backtrack window for Aurora MySQL. Backtrack "rewinds" the cluster to any point in the window without restoring a snapshot (seconds to minutes, no new instance needed). The difference from PITR: Backtrack actually rewinds in-place, very fast. PITR creates a new instance. Backtrack is only for Aurora MySQL, not available for PostgreSQL.
- How does Vault Lock Compliance Mode differ from Governance Mode?
Show answer
Compliance Mode: immutable; no one (root, AWS Support) can delete or modify the vault lock once confirmed, until the retention period ends. It serves SEC Rule 17a-4(f), CFTC, FINRA requirements. Governance Mode: privileged administrators can override the lock. Governance fits when you need operational flexibility; Compliance is for regulatory mandates that allow no exceptions.
- What does cross-account backup protect against?
Show answer
It mainly protects against: (1) Ransomware: malware that encrypts/deletes production and backups in the same account, (2) Insider threat: a malicious admin deleting the backups too, (3) Account compromise: an attacker with full access to one account cannot delete backups in another account, (4) Accidental deletion: deleting backups by mistake. Cross-account + Vault Lock = the strongest protection for backup integrity.
- What does Route 53 Failover require for the primary record?
Show answer
The primary record must have an associated Health Check. Route 53 monitors the endpoint (HTTP/HTTPS/TCP) periodically (default 30s, or a 10s "Fast" health check). When the primary health check fails (3 consecutive failures by default), Route 53 returns the secondary record instead. The secondary record does not require a health check, but it is best practice to have one. A Health Check can also monitor a CloudWatch Alarm state.
- How does DNS TTL impact failover time?
Show answer
High TTL = slow failover. When DNS returns a new IP (after failover), clients still caching the old TTL keep using the old IP until the TTL expires. Example: TTL 300s → failover becomes visible to users after at most 5 minutes. Low TTL (60s or less) = faster failover but more DNS queries = higher cost. Before planned maintenance: lower the TTL → maintenance → fast failover → raise the TTL again.
- How does Global Accelerator failover differ from Route 53 failover?
Show answer
Global Accelerator: failover at the network layer; static anycast IPs, routing changes within seconds (< 1 minute, independent of DNS TTL). The client does not need to change IPs. Route 53: failover through DNS; speed depends on TTL and DNS propagation (minutes). Global Accelerator fits RTO requirements of seconds; Route 53 failover fits minutes. GA is more expensive (~$18/accelerator/month + data fees).
- At which layer does CloudFront Origin Failover operate?
Show answer
Layer 7 (HTTP): CloudFront automatically retries the origin request against the secondary origin when the primary origin returns HTTP 500, 502, 503, 504 (configurable). It is transparent to clients; the client does not see the failover. Setup: an Origin Group with primary + secondary origins. CloudFront tries the primary, and if it fails → tries the secondary. Suited to active-passive origins with automatic content failover.
- How fast is failover for Active-Active compared with Active-Passive?
Show answer
Active-Active: failover is nearly instant; both endpoints are serving traffic, and the load balancer only needs to stop routing to the failed endpoint. RTO seconds. Active-Passive: you need to promote the passive region (launch instances, scale up, DNS update); RTO minutes to hours depending on the strategy. Active-Active is better for RTO but needs real-time data sync between regions (more complex and more expensive).
Hands-on Exercises
Part 1: Multi-AZ vs Multi-Region
- Draw the architecture: Multi-AZ web app with ALB, ASG, RDS Multi-AZ
- Set up S3 CRR to another region
- Create Route 53 Failover routing primary/secondary
- Compare cost: the same workload single-AZ vs Multi-AZ vs Multi-Region
Part 2: DR Strategies (4 Patterns)
- Calculate RTO/RPO for each strategy for 1 web app
- Set up Backup & Restore: back up EC2 + RDS cross-region
- Set up Pilot Light: Aurora read replica cross-region
- Test the Warm Standby failover procedure
- (Optional) AWS Resilience Hub assessment
Part 3: Backup and Restore Patterns
- Set up an AWS Backup plan: daily backup, 30 days retention, cross-region
- Tag resources with
Backup=true, observe backup jobs - Test PITR: restore RDS to 1 hour ago
- Set up Vault Lock Governance Mode (test mode first)
- Document the restore procedure for 1 critical service
Part 4: Route 53 Failover Patterns
- Set up Failover routing: primary + secondary with health check
- Test: disable the primary, measure failover time
- Set up Latency-based with health checks (active-active)
- Set up Global Accelerator with 2 regions
- Set up CloudFront Origin Failover
References
- AWS Well-Architected Reliability Pillar
- Plan for Disaster Recovery
- Multi-AZ vs Multi-Region
- DR Whitepaper
- 4 DR Strategies Blog
- Resilience Hub
- AWS Backup
- Vault Lock
- DLM
- Route 53 Failover
- Health Checks
- Global Accelerator
- CloudFront Origin Failover