Sub topic 1
What you are protecting against: AZ failures, Region failures, and data loss
Disaster recovery (DR) starts with a question: what exactly can go wrong, and how big is the blast radius? The answer decides which strategy you need. This chapter sorts failures into three scopes: Availability Zone (AZ) failures, Region failures, and data loss. It then shows which AWS features cover each one.
Prerequisites
This chapter assumes you already know the following:
- What AWS Regions and Availability Zones are, and that a Region contains multiple AZs.
- The basics of VPCs, EC2, and S3.
- How managed databases such as RDS, Aurora, or DynamoDB are used.
- How DNS and load balancing work at a basic level.
- How to read JSON and AWS CLI commands.
No hands-on setup is required here. The chapter builds the vocabulary that the later chapters use.
Why failure scope matters
A disaster is any event that stops your workload from doing its job. Events differ a great deal in size. A single failed disk and a lost Region are both "failures", but you handle them in very different ways.
Matching the protection to the failure scope avoids two mistakes:
- Under-protecting. Your workload runs in one AZ, and a power problem takes it offline.
- Over-protecting. You build a second Region with full capacity for a risk that a multi-AZ design already covers. That doubles your bill for no gain.
Think of the scopes as nested circles. Each wider circle is rarer but costs more to defend against.
Scope 1: Availability Zone failures
An AZ is one or more discrete data centers in a Region. Each AZ has its own power, cooling, and networking. AZs in a Region are connected by low-latency links but are physically separate.
An AZ failure means one of those zones becomes unavailable or badly degraded. Typical causes are a power or cooling fault, a network problem, or a localized event such as a fire or flood.
What you lose and what you keep
- Resources in the failed AZ, such as EC2 instances, EBS volumes, and subnets, may be unreachable.
- Other AZs in the same Region keep running.
- Regional services such as S3, DynamoDB, and SQS store data across multiple AZs. They keep working through an AZ failure without action from you.
How you protect against it
AZ failure is a high availability (HA) problem. You solve it inside one Region:
- Spread EC2 instances across at least two AZs with an Auto Scaling group and an Application Load Balancer.
- Use Multi-AZ RDS, or Aurora with replicas in other AZs.
- Avoid zonal dependencies, such as a single NAT gateway or a single EBS-backed instance that holds state.
Because a Multi-AZ design fails over automatically and keeps data synchronously copied, it usually has a recovery time of seconds to a few minutes and loses little or no data.
Scope 2: Region failures
A Region is a separate geographic area with its own set of AZs. Regions are isolated from each other by design. A fault in us-east-1 does not normally spread to us-west-2.
A Region-level event is rare. It can still happen, and it takes several forms:
- A large natural disaster or regional power or network event that affects several AZs at once.
- A failure in a regional service that your workload depends on, so your application cannot work even if its servers are healthy.
- A bad deployment or configuration change that you roll out to a Region and that takes down all AZs together.
Why Multi-AZ is not enough
A Multi-AZ design assumes the Region itself works. If the whole Region, or a service you rely on in it, is impaired, every AZ is affected together. Your standby sits in the same Region as your primary, so it fails together with it.
Protecting against this scope is DR in the strict sense. You need resources, data, and a way to send traffic in a second Region.
Include the control plane in your thinking
AWS services have a control plane, which handles actions such as creating or changing resources, and a data plane, which handles the running resources. Data planes are generally more resilient than control planes. When a Region is impaired, calls such as launching new instances or editing resources may fail or slow down.
This has a design consequence. A recovery plan that depends on creating many resources in the affected Region at the moment of failure is fragile. Prefer plans that depend on resources already running or prepared in the recovery Region. Later chapters return to this point when comparing strategies.
Scope 3: Data loss and corruption
The third scope has nothing to do with the location of a failure. Data can be lost in a perfectly healthy Region and AZ.
Common causes:
- An engineer or script deletes a table, bucket, or volume by mistake.
- An application bug writes bad data or overwrites good records.
- A malicious actor or ransomware encrypts or deletes your data, using stolen credentials.
- A failed schema migration damages a database.
Replication does not protect you here
This is the most common misunderstanding in DR planning. Replication copies changes quickly. If you delete a table, the delete is replicated too. If a bug corrupts records, the corrupted records are replicated too. A replica is not a backup.
Protection against data loss needs a separate, point-in-time copy that you can roll back to:
- Backups with a retention period, for example from AWS Backup.
- S3 versioning, so an overwritten or deleted object can be restored.
- Point-in-time recovery (PITR) for services such as DynamoDB and RDS.
- Immutable or isolated copies, such as AWS Backup Vault Lock, or copies in a separate account, so an attacker with production credentials cannot delete them.
Comparing the three scopes
| Scope | Typical cause | Does Multi-AZ help? | Does replication help? | What you need |
|---|---|---|---|---|
| AZ failure | Power, cooling, or network fault in one AZ | Yes | Yes, if replicas sit in other AZs | Multi-AZ design |
| Region failure | Regional event or regional service impairment | No | Yes, if replicas sit in another Region | Second Region and traffic redirection |
| Data loss or corruption | Deletion, bugs, ransomware | No | No, it copies the damage | Point-in-time backups and versioning |
Mapping scopes to the strategies in this tutorial
The four DR strategies in this tutorial address mainly the Region scope. They differ in how much of the second Region is already running:
- Backup and restore keeps only backups in the second Region. It is the cheapest and slowest.
- Pilot light keeps data replicated and a minimal core running.
- Warm standby keeps a scaled-down but working copy running.
- Multi-site active/active serves traffic from several Regions at once.
Backups also address the data loss scope, which is why backup and restore appears at the start of the sequence. A workload with a strong multi-site design can still lose data to a bad deployment, so it still needs backups.
Common mistakes
- Treating Multi-AZ as DR. Multi-AZ covers AZ failures only. It does not survive a Region failure.
- Treating replication as backup. Replicas copy deletions and corruption. Keep point-in-time backups too.
- Keeping backups next to the data. A backup in the same account and Region as production is exposed to the same mistakes and the same attacker. Copy backups to another Region, and ideally another account.
- Assuming you can build at failure time. During a Region impairment, creating resources may be unreliable. Pre-provision what the recovery depends on.
- Ignoring dependencies. Your workload may rely on DNS, identity, third-party APIs, or a shared service in one Region. The recovery Region needs a working answer for each of them.
A quick scoping exercise
For each workload you run, write down three answers before choosing any strategy:
- Which failure scopes must it survive: AZ, Region, data loss, or all three?
- How long can it be down, and how much recent data can it lose? The next chapter turns these two questions into the recovery time objective (RTO) and the recovery point objective (RPO).
- What does the workload depend on outside its own resources?
Most production workloads need all three scopes covered at different levels. A internal reporting tool might accept a long outage in a Region failure but still need backups. A payment system might need to survive a Region failure within minutes.
Exercise
A team runs a production database as Multi-AZ RDS with a read replica in a second Region. An engineer runs a DELETE statement without a WHERE clause on a key table. Which failure scope does this fall under, and why does the replica not help? What would let the team recover?
Show answer
This is data loss (a logical error), not an AZ or Region failure. The Multi-AZ standby and the cross-Region replica both copy the DELETE, so every copy loses the rows. The team needs a point-in-time copy from before the mistake, such as RDS automated backups with point-in-time restore or a snapshot, which they restore to a new database and use to recover the rows.
Exercise
A workload runs in three AZs of one Region behind an Application Load Balancer, and its data is in Aurora with replicas in each AZ. The business asks whether this design is a complete DR plan. What do you answer?
Show answer
No. The design handles AZ failures, which is high availability. It does not survive a Region failure, because all components share one Region. It also does not protect against deletion or corruption, because replicas copy those changes. The team needs a second Region with replicated or backed-up data, and point-in-time backups.