High Availability: ELB and Route 53 Health Checks, Multi-AZ Design
A highly available environment keeps serving users when instances, Availability Zones or entire Regions fail, by detecting failure with health checks and moving traffic to healthy capacity automatically. Task 2.2 of the SOA-C03 exam covers that plumbing: choosing among the Elastic Load Balancing types and configuring their listeners, target groups and health checks; diagnosing unhealthy targets and load-balancer-generated 502, 503 and 504 errors; using Route 53 endpoint, calculated and alarm-based health checks to gate DNS answers; and building Multi-AZ fault tolerance with Auto Scaling groups, RDS Multi-AZ deployments and ElastiCache replication groups. Scenarios usually start from a symptom — a standby that serves no reads, a failover record that never fails over, one zone misbehaving while health checks pass. This lesson works through each layer in turn: the load balancer inside a Region, DNS across Regions, deliberate failover with Application Recovery Controller, the database and cache tiers, and the single-AZ dependencies that quietly undermine all of it.
What you’ll learn
- Choose among ALB, NLB and Gateway Load Balancer, and combine them for PrivateLink, static IPs and appliance insertion
- Configure ALB listener rules, SNI certificates and routing algorithms for several sites and services
- Configure target-group health checks — port, path, success codes, thresholds — and predict fail-open behaviour
- Diagnose all-targets-unhealthy conditions and load-balancer-generated 502, 503, 504 and 403 responses
- Configure Route 53 endpoint, calculated and alarm-based health checks and active-passive failover with alias records
- Use ARC zonal shift, zonal autoshift and Region switch for deliberate failover, and tell them apart from Global Accelerator and Resilience Hub
- Build Multi-AZ fault tolerance for the web, database and cache tiers, including the client-side settings failover depends on
- Identify single-AZ dependencies and size capacity for static stability
The 11 parts · about 20 min of reading
- ALB vs NLBStart hereALB routes HTTP by content, NLB forwards connections with static IPs, GWLB inserts appliances, and an NLB can front an ALB for PrivateLink.2 min
- One ALB, many sitesListener rules match lowest priority first, host rules and SNI certificates serve many domains, and target groups pick a routing algorithm.1 min
- Target groups, cross-zone load balancing, and deregistration delayCross-zone defaults differ between ALB and NLB, uneven AZ targets overload some, and the deregistration delay drains in-flight requests.2 min
- ELB health checksHealth check port, path, matcher and thresholds decide routing; unhealthy targets keep being probed, and an all-unhealthy ALB fails open.2 min
- Debugging: all targets unhealthy after a deployA fleet-wide failure points to path, port, security group or app faults, and load balancer 502, 503, 504 and 403 codes locate the problem.2 min
- Route 53 health checksEndpoint, calculated and CloudWatch alarm checks gate DNS answers, and failover alias records can use Evaluate Target Health instead.2 min
- Two layers of health checkingELB and Auto Scaling recover instances and zones in a Region, Route 53 fails over between Regions, and shallow vs deep checks fit each.2 min
- Deliberate failoverARC zonal shift, autoshift and Region switch move traffic on purpose; Global Accelerator dials traffic and Resilience Hub only assesses.2 min
- Multi-AZ databasesA Multi-AZ instance has one unreadable synchronous standby, a Multi-AZ cluster has readable ones, and clients must not cache DNS long.2 min
- Cache-tier failoverValkey or Redis OSS replication groups fail over through the primary endpoint, while node-based Memcached loses a failed node's data.1 min
- Static stabilityPre-provision capacity to survive an AZ loss, know which recoveries need an operator, and remove single-AZ parts like one NAT gateway.2 min
Mind map
How the exam tests this
Task 2.2 questions describe a failure symptom or a resilience requirement and ask for the cause or the design that meets it. Read the symptom carefully: every target unhealthy at once points at health-check configuration, security groups or an application-wide fault, while one zone misbehaving behind passing health checks is a zonal problem; the status code and whether requests reach the targets locate the fault. Expect to distinguish what recovers automatically (ELB routing, Auto Scaling replacement, RDS Multi-AZ, ElastiCache Multi-AZ, zonal autoshift) from what needs an operator (promoting a read replica, starting a Region switch plan). Expect near-twin comparisons — Multi-AZ DB instance vs DB cluster vs read replica, alias vs CNAME, grace period vs instance warmup, primary vs reader vs node endpoints — and at least one architecture hiding a single-AZ dependency or a capacity shortfall.
Key takeaways
- UDP, a static IP per AZ or PrivateLink → NLB; path, host or header routing → ALB; transparent appliance insertion → Gateway Load Balancer. An NLB can front an ALB through an ALB-type target group.
- ALB listener rules run from the lowest priority number, first match wins; one HTTPS listener serves many domains with SNI certificates and host-header rules.
- Use traffic-port for the health-check port; an explicit port keeps probing the old port after the application moves. Health checks don't follow redirects — widen the matcher (e.g. 200-399) if needed.
- When every target is unhealthy, the ALB fails open to all of them; once targets recover, only the healthy ones get traffic, as set by the unhealthy state routing threshold.
- 502 = bad response or closed connection (check keep-alive vs idle timeout); 503 = no registered targets; 504 = target exceeded the idle timeout (60 s default); 403 = AWS WAF block.
- Route 53 health checkers live outside your VPC — use CloudWatch alarm health checks for private resources; Evaluate Target Health works only on alias records, which also serve the zone apex.
- Shallow health checks for the load balancer, deep dependency-aware checks for Route 53 Regional failover; ARC zonal shift handles gray failures in one AZ.
- RDS Multi-AZ standby: synchronous, never readable, automatic failover; Multi-AZ DB cluster: two readable standbys and a reader endpoint; read replicas: asynchronous, promoted manually.
- Connect to databases and caches by endpoint name and keep DNS caching short; write to the ElastiCache primary endpoint, read from the reader endpoint.
- Static stability: peak ÷ (N − 1) instances per AZ, and no single zonal NAT gateway — use one per AZ or a regional NAT gateway.
Part 1: ALB vs NLB
ALB routes HTTP by content, NLB forwards connections with static IPs, GWLB inserts appliances, and an NLB can front an ALB for PrivateLink.
Frequently asked questions
Why are all my ALB targets showing unhealthy?
When every target fails at once, the cause is systemic, not instance-level. Check the health-check path (does it still exist and return a success code on the new version?), the health-check port (is it an explicit port the application no longer uses instead of traffic-port?) and protocol (is the application redirecting?), the instance security group (does it allow inbound traffic from the load balancer's security group on the check port?), and the application itself (is it returning 500 everywhere after a bad deploy?). While every target is unhealthy, the ALB fails open and still sends them traffic.
What is the difference between an ALB and an NLB?
An Application Load Balancer works at layer 7: it understands HTTP and routes by path, host, headers or query string to different target groups, and it serves several domains on one listener using SNI. A Network Load Balancer works at layer 4: it forwards TCP, UDP and TLS flows with very high performance, offers a static IP per AZ with Elastic IP support, preserves the client source IP, and can back a PrivateLink endpoint service. An NLB can also forward to an ALB to combine static IPs with layer-7 routing.
Can I read from the standby in an RDS Multi-AZ deployment?
Not in a Multi-AZ DB instance deployment: its standby is synchronously replicated but serves no traffic. A Multi-AZ DB cluster deployment has two readable standbys behind a reader endpoint and typically fails over in under 35 seconds. To offload reads from a Multi-AZ DB instance without changing its deployment type, create a read replica, which is asynchronous and must be promoted manually.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.