Configuring Health Checks and DNS Failover
This lesson explains how Route 53 health checks stop DNS returning endpoints that are not working, and how to configure and troubleshoot them, as the exam guide names explicitly.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish endpoint, calculated and CloudWatch alarm health checks.
- Configure active-passive and active-active failover.
- Troubleshoot health checks that report healthy endpoints as unhealthy.
Types of health check
An endpoint health check sends HTTP, HTTPS or TCP requests to an IP address or domain name from health checkers in several AWS Regions, every 30 seconds (standard) or 10 seconds (fast, charged). It is healthy if more than 18% of checkers report success, after a failure threshold of consecutive results (default 3). HTTP and HTTPS checks require a 2xx or 3xx status within two seconds of connecting, and can additionally search the first 5,120 bytes of the response for a string. A calculated health check combines other health checks with a rule such as "healthy if at least 2 of 3 children are healthy". A CloudWatch alarm health check follows the state of an alarm, which is the way to monitor resources that health checkers cannot reach, such as instances in private subnets or a metric like queue depth.
30 / 10s
Standard and fast health check intervals
18%
Share of checkers that must report success
3
Default failure threshold
Which health check type?
Failover configurations
In active-passive failover, a primary failover record has a health check and a secondary record, often an S3 static website or a standby Region, is returned when the primary is unhealthy. In active-active configurations, weighted, latency or multivalue records all carry health checks, and Route 53 returns only healthy ones. Alias records to AWS resources can use Evaluate target health instead of a separate health check, for example inheriting an ALB's health from its target groups. Health check status changes can trigger CloudWatch alarms and SNS notifications; Route 53 health check metrics are published in us-east-1.
The following diagram shows active-passive failover to a maintenance page.

Troubleshooting health checks
When a health check reports an endpoint unhealthy although it works, check the following causes.
- Firewalls, security groups or NACLs block the Route 53 health checker IP ranges (published in ip-ranges.json under ROUTE53_HEALTHCHECKS).
- The endpoint is private; health checkers can only reach public addresses. Use a CloudWatch alarm health check.
- The path returns a 4xx or 5xx, or a redirect to a host that fails, or takes more than two seconds.
- String matching is enabled and the string is not in the first 5,120 bytes.
- HTTPS checks fail on TLS issues; SNI must be enabled for endpoints that need it.
- The record has no health check associated, or Evaluate target health is off.
The console's health checker status view shows the result from each checker location, which helps separate a regional network issue from an endpoint failure.
Health checks that fail
Failover to a maintenance page
A company wants users sent to a static "we will be back soon" page if its web application in eu-west-1 fails. It creates a primary failover alias record for www.example.com pointing to the ALB with Evaluate target health enabled, and a secondary failover alias record pointing to a CloudFront distribution in front of an S3 bucket with the maintenance page. When all targets of the ALB become unhealthy, Route 53 returns the CloudFront address. A CloudWatch alarm on the health check status notifies the on-call engineer.
How can Route 53 check the health of a private resource?
Show answer
With a health check based on a CloudWatch alarm, because health checkers only reach public endpoints.
Exam Tips
Remember for the exam
- Endpoint health checks come from the internet; allow the checker IP ranges.
- Private resources: use a CloudWatch alarm-based health check.
- Calculated health checks combine child checks.
- Alias records can use Evaluate target health instead of a separate check.
- Failover routing returns the secondary only when the primary is unhealthy.