
Route 53 Can Finally Health-Check Your Private Endpoints. I Tested the Failover
Route 53 Private Endpoint Health Checks bring native DNS failover to workloads on private IPs. I tested an EC2 lab with a 10-second check interval and a three-failure threshold, and confirmed failover to a standby within 36.2 seconds
DevOps Engineer
Route 53 Can Finally Health-Check Your Private Endpoints. I Tested the Failover.
For years, Route 53 health checks could not directly monitor an endpoint on a private IP address. Route 53 health checkers were outside the VPC, so private targets needed a workaround: publish a custom CloudWatch metric, alarm on it, then use Lambda and the Route 53 API to update DNS.
That design works, but it adds code and turns DNS failover into a control loop you own.
Amazon Route 53 Private Endpoint Health Checks change that. A Route 53 Health Check Source creates ENIs in your VPC. Route 53 can then probe a reachable private IP address or domain name with HTTP, HTTPS, or TCP, and use the result with records in a private hosted zone.
I tested the feature with two EC2 web servers: a primary, a secondary, and a client. The client used
app.lab.internal ; Route 53 decided which private IP it received.
How it works
In the normal state, the private health check is healthy. Route 53 returns the primary IP, and the client reaches the primary service.

When the primary becomes unhealthy, Route 53 changes the DNS answer to the secondary IP. The client keeps using
app.lab.internal ; it does not need its own failover logic.
The configuration
The private hosted zone used two failover A records. The PRIMARY record had the health check attached, and the SECONDARY record pointed to the standby. Both used a 10-second TTL for this lab.

The health check was enabled and healthy. It targeted a private IP over HTTP on port 80 at
/health , using a Health Check Source in Singapore. The check interval was 10 seconds and the failure threshold was three consecutive failed checks.

The failover test
I stopped the primary web service at 15:35:41.519. The client had been resolving
app.lab.internal to the primary and receiving primary from HTTP. The first failed client request appears at 15:35:42.499.
Route 53 then marked the PRIMARY path unhealthy after its configured failures and returned the secondary IP. By 15:36:17.748, the client was resolving the same DNS name to the secondary and receiving
secondary from HTTP.
That confirms end-to-end failover within 36.2 seconds of stopping the service. Treat that as an observed upper bound for this lab, not a universal Route 53 SLO. The result is shaped by the 10-second request interval, a failure threshold of three, the timing of the first probe after the outage, and the 10-second DNS TTL.
I then restored the primary. The client first continued to use the secondary, then resolved the same name back to the primary and received
primary again.
The last screenshot proves failback happened. It does not measure the complete failback duration because the primary restart timestamp was not captured.
Why this matters for container workloads
This pattern applies cleanly to internal ECS and EKS services behind an internal Application Load Balancer or Network Load Balancer. Put the primary and standby services behind one private DNS name. When the primary endpoint becomes unhealthy, Route 53 answers the standby address without application-side failover code or a Lambda that rewrites DNS records.
The same approach works for private APIs, databases, self-hosted nodes, and reachable on-premises services over Direct Connect or Site-to-Site VPN.
What to check before production
- Give the Health Check Source network access to the endpoint. Security groups and network ACLs must allow probe traffic and replies.
- Choose the check interval, failure threshold, and DNS TTL together. Faster failover can increase health-check cost and may be too sensitive for a noisy dependency.
- Test client DNS caching. A healthy Route 53 response cannot override an application that ignores TTLs.
- Use an additional Health Check Source if targets span Availability Zones beyond the source's coverage.
- At launch, private-endpoint latency measurements, public checks through a source, and calculated checks that reference private checks are not included.
The important difference is operational: Route 53 can now make the private DNS decision from a native health signal. If your current design uses CloudWatch, Lambda, and the Route 53 API only to fail over private DNS, this is worth evaluating.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article