Sub topic 3
Storage, Failover, and Availability Boundaries
Assume you understand Regions, Availability Zones (AZs), VPC subnets, and basic AWS networking. The key question is where each resource can fail and what happens next.
Storage scope: regional and zonal
A zonal resource exists in one AZ. An Amazon EBS volume is zonal, so an EC2 instance in another AZ cannot attach to it directly. EBS snapshots can be copied or restored elsewhere, but that process is not instant failover.
A regional service spans multiple AZs behind the service boundary. Amazon S3 stores objects redundantly within a Region. Amazon EFS provides a regional file system that can be mounted from multiple AZs. RDS Multi-AZ maintains a synchronous standby in another AZ.
| Resource | Scope | Availability implication |
|---|---|---|
| EBS volume | One AZ | Replicate or restore before another AZ can use it |
| S3 bucket | Region | Designed for multi-AZ durability |
| EFS regional file system | Region | Mount from multiple AZs |
| RDS Multi-AZ | Primary plus standby AZ | Automatic database failover |
Health checks and automatic failover
An Application Load Balancer checks each target. An Auto Scaling group can use those results to replace unhealthy instances. These mechanisms remove failed compute from traffic, but they do not repair corrupted data or make a zonal storage resource regional.
Static stability and AZ-level observability
Static stability means pre-provisioning enough capacity to continue operating after losing an AZ. For example, run instances in two AZs with enough spare capacity that either AZ can carry the required load. Do not depend on a new Auto Scaling action during a control-plane or network disruption.
Monitor instance counts, target health, error rates, latency, NAT usage, and database connections by AZ. Aggregated regional metrics can hide a failing zone.
Testing, boundaries, and trade-offs
Test RDS failover with a controlled reboot, and use AWS Fault Injection Service or other approved experiments for application and network faults. Define success measures such as recovery time, error rate, and lost transactions. Test backups and restoration separately.
Multi-AZ protects mainly from an AZ failure. Use multi-Region architecture when a Region-wide outage, regional service failure, regulatory placement requirement, or very small recovery objective justifies replicated data and independent operations.
More AZs, standby databases, duplicate NAT gateways, monitoring, and testing increase cost and complexity. Choose them by required RTO, RPO, and business impact rather than by topology alone.
Exercise
Why does placing EC2 instances in two AZs not make an attached EBS volume highly available?
Show answer
An EBS volume is zonal. The replacement instance needs a replicated, restored, or regional storage design before it can use the data.