Route 53 Flashcards
Describe Route 53
Route 53 is a high available, scalable, full managed and Authoritative DNS
Authoritative DNS means that you (the customer) can update the DNS records
It is also a Domain Registrar
Name 4 record types and what they do
A - maps a hostname to IPv4
AAAA - MAPS HOSTNAME TO ipV6
CNAME - maps hostname to another hostname
NS - name servers for the hosted zone
TTL stands for?
Time to Live
True or False
You can set an ALIAS record for an EC2 DNS name.
False! You CAN NOT set an ALIAS record for an EC2 DNS name.
Examples of ALIAS targets are:
- elastic load balancers
- amazon cloudfront
- s3 websites
- amazon API gateway
What’s the main difference between CNAME records and ALIAS records?
Alias records can be set for the root domain, eg. example.com
… whereas CNAME records can only be set for subdomains, eg. api.example.com
Describe Route 53 routing policies
Routing policies define how Route 53 responds to DNS queries
The routing policies are:
- simple
- weighted
- failover
- latency based
- geolocation
- multi-value answer
- geoproximity
Describe weighted routing policy
weighted policy lets you control the percentage of the request that go to each specific resource
eg.
ip 1.2.3.4 gets 70%
ip 4.5.6.7 gets 30%
assigning weight of 0 stops sending traffic to the resource
describe the latency based routing policy
redirect to the resource that has the least latency to us
great for applications where low latency is a priority
Describe a failover routing policy
Failover routing policy lets you declare a secondary record to use if the primary record’s health check fails
describe geolocation routing policy
routing is based on user location - this is different from latency!
specify by continent, country, state, etc
great use cases: website localization, restrict content distribution, load balancing
describe geoproximity routing policy
routes traffic to resources based on the geographic location of users and resources
shift more or less traffic to resources based on a defined bias
resources are specified by either AWS region, or latitude and longitude
use case: when you need to shift traffic from one resource to another
describe route 53 traffic flow
traffic flow is a visual editor that helps manage complex routing decision trees
these can be saved as traffic flow policies
- supports versioning
describe multi-value routing policy
let’s you route traffic to multiple resources (can be based on health checks)
up to 8 healthy records are returned for each multi-value query
think of this as a client-side load balancer
You have purchased mycoolcompany.com on Amazon Route 53 Registrar and would like the domain to point to your Elastic Load Balancer my-elb-1234567890.us-west-2.elb.amazonaws.com.
Which Route 53 Record type must you use here?
ALIAS.
CNAME does not support root level domains
You have deployed a new Elastic Beanstalk environment and would like to direct 5% of your production traffic to this new environment. This allows you to monitor for CloudWatch metrics and ensuring that there’re no bugs exist with your new environment.
Which Route 53 Record type allows you to do so?
Weighted
Weighted Routing Policy allows you to redirect part of the traffic based on weight (e.g., percentage). It’s a common use case to send part of traffic to a new version of your application.