Route 53 Flashcards
What is DNS?
Domain Name System. Translates human-friendly hostnames to IP addresses.
What is a Domain Registrar?
The place where you register your domain name.
Route 53,
GoDaddy,
etc.
What is Route 53? What else does it do?
A highly available (100%), scalable, fully managed DNS that you can update (i.e. authoritative). Directs traffic in or out.
- domain registrar
- performs health checks
What is a DNS record? What is included in the record?
Instructions on how to route traffic for a domain. Contains:
• domain/subdomain name (example.com)
• Record type (AAAA)
• Value (12.34.56.78)
• Routing Policy (how Route 53 responds to queries)
• TTL (time before cache expires)
What DNS record types are supported by Route 53?
A - maps a hostname to IPv4 AAAA - maps to IPv6 CNAME - maps to another hostname (but not top node aka Zone Apex of a DNS namespace) NS - Name Servers for the Hosted Zone others
What is a hosted zone? What kinds are there?
A Hosted Zone is a container of records (instructions on how to route traffic), all belonging to a single domain name. (Hosted Zone & domain have the same name).
Types: Public and Private
50 cents/month per hosted zone
What are the characteristics of a public Hosted Zone?
Has records that tell you how to route traffic to and from the internet.
What are the characteristics of a private Hosted Zone?
Has records that tell you how to route traffic WITHIN a VPC or between VPCs.
You can integrate with on-prem private zones using forwarding rules and endpoints.
I created an AWS resource and exposed a hostname: “lb1-1234.us-east-2.elb.amazonaws.com” but I want to use “myapp.mydomain.com”. What type of DNS record can I use?
CNAME record: maps hostname to hostname. Works on anything except the ROOT domain (mydomain.com)
ALIAS record: Rte 53 only. Maps hostname to AWS resource.
• Works for any domain, root or not.
• FREE.
• ✅ Has native health check.
• for A or AAAA (IPv4 or IPv6)
• automatically recognizes changes in target IP
• you can NOT set the TTL (Rte 53 does that)
What are the potential targets of an ALIAS record?
ELB CloudFront API Gateway Elastic Beanstalk S3 Websites VPC interface endpoints Global Accelerator Another Rte 53 record in the same Hosted Zone.
NEVER an EC2 DNS.
What are the different routing policies for Route 53?
“Sally & Flo Giggle Gleefully as Lightning McQueen Wobbles”
Simple Failover ✅ Geolocation ✅ Geoproximity ❗️ Latency ✅ Multivalue answer ✅ Weighted ✅
Describe a simple routing policy.
Routes traffic to a SINGLE resource that performs a given function for your domain.
Rte 53 can give one or many values in the response (unless Alias is enabled). If many, then the client chooses one.
No Health Checks
Describe a Weighted routing policy. When would you choose this?
You control the % of requests that go to each resource.
• % = weight/sum of all weights
DNS records must have the same name & type.
Health Checks OK.
Good for:
• load balancing between regions
• testing new app versions
• blue/green deployment
You can set weight to 0 for no traffic. If all are 0 then all equal weight.
Describe a Failover routing policy.
One primary, one secondary resource. Health checks on the primary.
When the primary is unhealthy, Rte 53 automatically fails over to the secondary.
Describe a Geolocation routing policy. When would you want one?
Routing is based on where your user is.
Health checks OK.
You must choose a default in case there is no match.
Good for:
website localization, restricting content distribution, load balancing