Route 53 Flashcards
What is Route 53?
A highly available, scalable, fully managed DNS
What does a Route 53 record do and what are the 5 things it contains?
It defines how traffic should be routed for a domain and contains
1. Domain/subdomain name
2. Record type (A, AAAA, CNAME, NS)
3. Value (IP address)
4. Routing policy
5. TTL
What does an A record map?
Hostname to IPv4
What does an AAAA record map?
Hostname to IPv6
What does a CNAME record map?
Hostname to another hostname
What does a NS record map?
Name servers for a hosted zone
What are the two types of hosted zones?
- Public - Can be resolved on the internet
- Private - Can only be resolved within one or more VPCs
What does a record TTL do?
Defines a period of time for a client to cache a DNS record before it expires
When would you use an Alias over a CNAME?
Alias’s work for root domains and non root domains whereas CNAME records only work for non root domains. They are also free of charge and have a native health check
Can you set a TTL for A and AAAA records?
No, Alias record TTL’s are set automatically by Route 53
Is it possible to set an Alias record for an EC2 DNS name?
No
List the 8 different routing policy types Route 53 supports.
- Simple
- Weighted
- Failover
- Latency
- Geolocation
- Multi-value answer
- Geoproximity
- IP-based
When should you use a simple route policy?
Typically used to route traffic to a single resource (although multiple values can be return and one will be chosen at random by the client). Cannot be associated with a health check
When should you use a weighted route policy?
When you need to control the % of requests that go to each specific resource. Note, the % does not need to add to 100%. Traffic (%) = [weight of record]/[sum of all record weights]. Note, if all records have a weight of 0, traffic will be distributed evenly.
When should you use a latency route policy?
Directs based on latency between users and AWS regions. Records are associated with a region and the one with the lowest latency for the user will be used.