SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Reliability and Business Continuity

High Availability: ELB and Route 53 Health Checks, Multi-AZ Design

26 min readSOA-C03 · Reliability and Business ContinuityUpdated

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

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. Route 53 health checksEndpoint, calculated and CloudWatch alarm checks gate DNS answers, and failover alias records can use Evaluate Target Health instead.2 min
  7. 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
  8. Deliberate failoverARC zonal shift, autoshift and Region switch move traffic on purpose; Global Accelerator dials traffic and Resilience Hub only assesses.2 min
  9. 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
  10. 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
  11. 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

ALB: layer 7 path, host and headerrulesNLB: TCP/UDP, static IP per AZGWLB inserts third-party appliancesPrivateLink needs an NLB in front ofan ALB1✓Choosing a load balancerLowest priority number matches firstHost rules route domains to targetgroupsSNI picks a certificate per domainRouting: round robin, leastoutstanding2✓One ALB, many sitesALB cross-zone on; NLB off by defaultUneven AZ targets overload the smallerAZDeregistration delay default 300 sTune delay to the longest real request3✓Target groups anddrainingUse traffic-port, not a stale explicitportChecks do not follow redirectsDetection time is interval x thresholdAll unhealthy: the ALB fails open4✓ELB health checksCheck path, port, protocol, then SGsAllow inbound from the ALB securitygroup503: no targets; 504: idle timeout502 under light load: keep-alive tooshort5✓All targets unhealthyHealthy if over 18% of checkers agreeString matching on first 5,120 bytesCloudWatch alarm checks for privatehostsAlias plus Evaluate Target Health atapex6✓Route 53 health checksIn Region: ELB plus ASG, no DNS changeAcross Regions: Route 53 failoverDNS TTL delays the switch for someusersShallow on targets, deep on Route 537✓Two layers of checkingZonal shift for gray failuresEnable zonal shift on the ALB/NLBfirstRegion switch runs ordered failoverstepsResilience Hub assesses, never failsover8✓Deliberate failover withARCMulti-AZ instance standby is notreadableDB cluster: two readable standbys, <35sRead replica promotion is manualKeep client DNS cache under 30 seconds9✓Multi-AZ databasesWrites to the primary endpointReads to the reader endpointNode endpoints cause READONLY errorsNode-based Memcached has no failover10✓Cache-tier failoverRun peak / (N-1) per zoneKnow which recoveries need an operatorOne zonal NAT gateway is a single-AZtrapInterface endpoints in every AZ used11✓Static stabilityHigh availabilityand health checks
Mind map

High Availability: ELB and Route 53 Health Checks, Multi-AZ Design

ALB: layer 7 path, host and headerrulesNLB: TCP/UDP, static IP per AZGWLB inserts third-party appliancesPrivateLink needs an NLB in front ofan ALB1✓Choosing a load balancerLowest priority number matches firstHost rules route domains to targetgroupsSNI picks a certificate per domainRouting: round robin, leastoutstanding2✓One ALB, many sitesALB cross-zone on; NLB off by defaultUneven AZ targets overload the smallerAZDeregistration delay default 300 sTune delay to the longest real request3✓Target groups anddrainingUse traffic-port, not a stale explicitportChecks do not follow redirectsDetection time is interval x thresholdAll unhealthy: the ALB fails open4✓ELB health checksCheck path, port, protocol, then SGsAllow inbound from the ALB securitygroup503: no targets; 504: idle timeout502 under light load: keep-alive tooshort5✓All targets unhealthyHealthy if over 18% of checkers agreeString matching on first 5,120 bytesCloudWatch alarm checks for privatehostsAlias plus Evaluate Target Health atapex6✓Route 53 health checksIn Region: ELB plus ASG, no DNS changeAcross Regions: Route 53 failoverDNS TTL delays the switch for someusersShallow on targets, deep on Route 537✓Two layers of checkingZonal shift for gray failuresEnable zonal shift on the ALB/NLBfirstRegion switch runs ordered failoverstepsResilience Hub assesses, never failsover8✓Deliberate failover withARCMulti-AZ instance standby is notreadableDB cluster: two readable standbys, <35sRead replica promotion is manualKeep client DNS cache under 30 seconds9✓Multi-AZ databasesWrites to the primary endpointReads to the reader endpointNode endpoints cause READONLY errorsNode-based Memcached has no failover10✓Cache-tier failoverRun peak / (N-1) per zoneKnow which recoveries need an operatorOne zonal NAT gateway is a single-AZtrapInterface endpoints in every AZ used11✓Static stabilityHigh availabilityand health checks

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. Connect to databases and caches by endpoint name and keep DNS caching short; write to the ElastiCache primary endpoint, read from the reader endpoint.
  10. Static stability: peak ÷ (N − 1) instances per AZ, and no single zonal NAT gateway — use one per AZ or a regional NAT gateway.
0/11
Ready to start

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.

2 min read · 11 parts, about 20 min in allStart lesson

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.

Spotted a mistake in this lesson?