Beginner LevelCloud Computing (AWS/GCP/Azure)
What is AWS Route 53 and what are its DNS Routing Policies?
❓ Interview Prompt: Explain Amazon Route 53 DNS resolution, hosted zones, and routing policies (Simple, Weighted, Latency, Failover, Geolocation).
Amazon Route 53 is a highly available and scalable cloud Domain Name System (DNS) web service operating on port 53.
Route 53 Routing Policies:
1
Simple Routing: Standard 1-to-1 DNS mapping (e.g. 'example.com' $\rightarrow$ IP).
2
Weighted Routing: Splits traffic across multiple resources based on relative assigned weights (e.g. 80% to v1, 20% to v2 for canary deployments).
3
Latency-Based Routing: Directs users to the AWS region that provides the lowest network latency.
4
Failover Routing: Routes traffic to a primary resource, failing over to a secondary standby resource if health checks fail.
5
Geolocation Routing: Routes traffic based on the geographic location of the user's DNS query.
Code Implementation Example
hcl
# Route 53 Failover Routing Record Configuration
resource "aws_route53_record" "primary" {
zone_id = aws_route53_zone.main.zone_id
name = "app.company.com"
type = "A"
failover_routing_policy {
type = "PRIMARY"
}
set_identifier = "primary-region"
health_check_id = aws_route53_health_check.primary.id
alias {
name = aws_lb.primary_alb.dns_name
zone_id = aws_lb.primary_alb.zone_id
evaluate_target_health = true
}
}💡Terraform Route 53 failover DNS record with health check.
🎯 Interview Key Takeaway
Route 53 provides scalable cloud DNS supporting Weighted, Latency-Based, Geolocation, and Failover routing policies.
#Route 53#DNS#Routing Policies#Failover#Beginner
Back to all Cloud Computing (AWS/GCP/Azure) Questions→