You want to configure Route 53 to route traffic to two ELBs in different regions for high availability. Which setup ensures traffic is sent only to healthy ELBs and balances load between them?
hard📝 Best Practice Q15 of 15
AWS - Route 53
You want to configure Route 53 to route traffic to two ELBs in different regions for high availability. Which setup ensures traffic is sent only to healthy ELBs and balances load between them?
ACreate two CNAME records with the same domain name pointing to each ELB's DNS name.
BCreate two alias A records with the same domain name, each pointing to one ELB, and enable health checks on both records.
CCreate a single alias A record pointing to the ELB in the primary region and manually switch to the other ELB if failure occurs.
DCreate two alias A records with different domain names and use a third DNS service to balance traffic.
Step-by-Step Solution
Solution:
Step 1: Use alias A records with health checks
Route 53 supports multiple alias records with health checks to route traffic only to healthy ELBs.
Step 2: Load balancing across regions
By creating two alias records with health checks, Route 53 can balance traffic and failover automatically.
Final Answer:
Create two alias A records with the same domain name, each pointing to one ELB, and enable health checks on both records. -> Option B
Quick Check:
Multiple alias records + health checks = HA and load balancing [OK]
Quick Trick:Use multiple alias records with health checks for HA [OK]
Common Mistakes:
Using CNAME for ELB alias
Manual failover instead of health checks
Using different domain names for ELBs
Master "Route 53" in AWS
9 interactive learning modes - each teaches the same concept differently