Sub topic 1
What you are protecting against: AZ failures, Region failures, and data loss
Prerequisites
Assume you know AWS Regions, Availability Zones (AZs), VPCs, EC2, S3, managed databases, DNS, and basic AWS CLI and JSON syntax.
Failure scope: AZ, Region, and data loss
An AZ is an isolated location within an AWS Region. A workload spread across multiple AZs can survive one AZ becoming unavailable. This is high availability within a Region.
A Region-wide failure affects several AZs and may make the whole Region unavailable. Disaster recovery (DR) uses another Region to restore or continue service. DR also covers accidental deletion, corrupted data, ransomware, and operator mistakes. Replication alone may copy corruption, so backups are still important.
Setting recovery targets: RTO and RPO
The recovery time objective (RTO) is the maximum acceptable time to restore service. The recovery point objective (RPO) is the maximum acceptable amount of lost data, measured in time.
For example, an RTO of 30 minutes and an RPO of 5 minutes require service to return within 30 minutes while losing no more than five minutes of writes. Shorter targets usually require more running infrastructure, faster replication, and more automation.
| Target | Question it answers | Design effect |
|---|---|---|
| RTO | How quickly must service return? | Determines recovery automation and capacity |
| RPO | How much recent data can be lost? | Determines backup frequency or replication lag |
Backup and restore: the lowest-cost strategy
Backup and restore keeps the primary workload running and stores recovery copies. During a disaster, you create infrastructure, restore data, validate the application, and redirect users. This strategy has low ongoing cost but usually has the longest RTO. It fits workloads that can tolerate hours of recovery and some data loss.
Automating backups and cross-Region copies with AWS Backup
AWS Backup centralizes backup policies for supported AWS resources. A plan can schedule backups, define retention, and copy recovery points to a vault in another Region.
{
"BackupPlanName": "dr-daily",
"Rules": [{
"RuleName": "daily-cross-region",
"TargetBackupVaultName": "Default",
"ScheduleExpression": "cron(0 5 * * ? *)",
"Lifecycle": {"DeleteAfterDays": 35},
"CopyActions": [{
"DestinationBackupVaultArn": "arn:aws:backup:us-west-2:111122223333:backup-vault:dr-vault",
"Lifecycle": {"DeleteAfterDays": 35}
}]
}]
}The destination vault needs the required permissions and should be protected from accidental deletion. Test that copies complete and that restores work.
Replicating data across Regions
Replication reduces RPO and can support faster recovery, but each service has different behavior. Aurora Global Database replicates database storage across Regions. S3 Cross-Region Replication copies objects asynchronously. DynamoDB global tables replicate table changes across Regions. EBS snapshots and RDS automated backups can be copied across Regions.
Choose replication based on consistency, lag, conflict handling, cost, and the recovery procedure. Document whether the recovery copy is read-only, how it becomes writable, and how applications reconnect.
> callout note > A cross-Region copy is not a complete DR plan. Recovery also needs infrastructure, permissions, secrets, application configuration, validation, and a traffic-switching procedure.
Exercise
A workload has an RTO of 2 hours and an RPO of 24 hours. Which strategy is a reasonable starting point?
Show answer
Backup and restore is a reasonable starting point, provided tested restores can meet the two-hour RTO and daily backups meet the 24-hour RPO.