Route 53 Flashcards
What is DNS?
Domain Name System translates hostnames into the machine IP addresses
4 types of DNS Records Route 53 supports:
A, AAAA, CNAME, NS,
What does the Zone File contain?
DNS records
What does the Name Server do?
resolves DNS queries (Authoritative or Non-Authoritative)
What are Top Level Domain (TLD)?
.com, .us, .in, .gov, .org,
What are Second Level Domain (SLD)?
amazon.com, google.com
What are the parts of a standard URL address?
Protocol, Full Qualified Domain Name, Sub Domain, Second Level Domain, Top Level Domain, Root
What is Amazon Route 53?
A highly available, scalable, fully managed and Authoritative DNS
What is Authoritative ?
The customer (you) can update the DNS records
The only AWS service which provides …… availability SLA(service level argement)
100%
What are Records?
How you want to route traffic for a domain.
What does each record contain?
- Domain/subdomain Name
- Record Type
- Routing Policy
- TTL
What is a Routing Policy?
How Route 53 responds to queries
RecordTypes - A:
Maps a hostname to IPv4
RecordTypes - AAAA:
Maps a hostname to IPv6
RecordTypes - CNAME:
Maps a hostname to another hostname
CNAME rules:
- The target is a domain name which must have an A or AAAA record
- Can’t create a CNAME record for the top node of a DNS namespace (Zone Apex)
RecordTypes - NS:
Name Servers for the Hosted Zone
What does NS do?
Control how traffic is routed for a domain
What is a Hosted Zones?
A container for records that define how to route traffic to a domain and its subdomains
Public Hosted Zones –
Contains records that specify how to route traffic on the Internet (public domain names)
Private Hosted Zones –
Contain records that specify how you route traffic within one or more VPCs (private domain names)
Features of High TTL – e.g., 24 hr
- Less traffic on Route 53
- Possibly outdated records
Features of Low TTL – e.g., 60 sec.
- More traffic on Route 53 ($$)
- Records are outdated for less time
- Easy to change records
Except for……. records, TTL is mandatory for each….. record
Alias, DNS
What is an Alias record?
Points a hostname to an AWS Resource (app.mydomain.com => blabla.amazonaws.com)
Alias rules:
- Works for ROOT DOMAIN and NON ROOT DOMAIN (aka mydomain.com)
- Free of charge
- Native health check
Record Types - Alias:
Maps a hostname to an AWS resource
Features:
- An extension to DNS functionality
- Automatically recognizes changes in the resource’s IP addresses
- You can’t set the TTL
Alias record type
…….. is always of type……… for AWS resources
Alias Record, A/AAAA(IPv4 / IPv6)
Alias Record Targets
- Elastic Load Balancers
- CloudFront Distributions
- API Gateway
- Elastic Beanstalk environments
- S3 Websites
- VPC Interface Endpoints
- Global Accelerator accelerator
- Route 53 record in the same hosted zone
What can you not set an Alias record for?
EC2 DNS name
How does a “routing policy” work?
- It’s not the same as Load balancer routing which routes the traffic
- DNS does not route any traffic, it only responds to the DNS queries
Route 53 Supports the following Routing Policies:
- Simple
- Weighted
- Failover
- Latency based
- Geolocation
- Multi-Value Answer
- Geoproximity (using Route 53 Traffic Flow feature)
Features of Routing Policies - Simple (5)
- Typically, route traffic to a single resource
- Can specify multiple values in the same record
- If multiple values are returned, a random one is chosen by the client
- When Alias enabled, specify only one AWS resource
- Can’t be associated with Health Checke
Features of Routing Policies - Weighted (5)
- Control the % of the requests that go to each specific resource
- Assign each record a relative weight:
traffic (%) = Weight for a specific record / Sum of all the weights for all the records - Weights don’t need to sum up to 100
- Assign each record a relative weight:
- DNS records must have the same name and type
- Can be associated with Health Checks
Use cases for Weighted policy:
- load balancing between regions
- testing new application versions…
Weighted policy - how do you stop sending traffic to a resource?
Assign a weight of 0 to a record to stop sending traffic to a resource
Weighted policy - what happens if all records how a weight of 0?
If all records have weight of 0, then all records will be returned equally
Features Routing Policy - Latency(3)
- Redirect to the resource that has the least latency close to us
- Super helpful when latency for users is a priority
- Can be associated with Health Checks (has a failover capability)
Latency policy - what is latency based on?
Latency is based on traffic between users and AWS Regions
HTTP Health Checks are only for……. …………
public resources
What do Health Checks provide?
Automated DNS Failover
What are the 3 possible Health Checks?
1.Health checks that monitor an endpoint
2. Health checks that monitor other health checks
3.Health checks that monitor CloudWatch Alarms
Health Checks are…… with …… metrics
integrated, Cloud Watch
Health Checks pass only when the endpoint responds with…
The 2xx and 3xx status codes
Health Checks can be setup to pass / fail based on the text in ….
The first 5120 bytes of the response
Configure you ……. to allow incoming requests from Route 53 Health Checkers
router/firewall
What is a Calculated Health Checks?
Combining the results of multiple Health Checks into a single Health Check
Can monitor up to ….. Child Health Checks
256
With Calculated Health Checks you can specify how many of the …
health checks need to pass to make the parent pass
Where are Private Hosted Zones done?
Route 53 health checkers are outside the VPC
Health Checks cannot access …
private endpoints (private VPC or on-premises resource)
Features of routing Policy: Failover
Routes traffic to a resource when the resource is healthy or to a different resource when the first resource is unhealthy.
Features of routing Policy: Geolocation
- Routing is based on user location
-Specify location by Continent, Country or by US State (if there’s overlapping, most precise location selected)
-Should create a “Default” record (in case there’s no match on location) - Can be associated with Health Checks
Use cases for Geolocation policy:
website localization, restrict content distribution, load balancing, …
Features of routing Policy: Geoproximity
- Route traffic to your resources based on the geographic location of users and resources
- Ability to shift more traffic to resources based on the defined bias
-You must use Route 53 Traffic Flow to use this feature
How is the bias defined in a Geoproximity policy?
- To change the size of the geographic region, specify bias values:
- To expand (1 to 99) – more traffic to the resource
- To shrink (-1 to -99) – less traffic to the resource
What are the Geoproximity resources?
- Resources can be:
- AWS resources (specify AWS region)
- Non-AWS resources (specify Latitude and Longitude)
Features of routing Policy: IP - based
- Routing is based on clients’ IP addresses
- You provide a list of CIDRs for your clients and the corresponding endpoints/locations (user-IP-to-endpoint mappings)
Use cases for IP based policies:
Optimize performance, reduce network costs…
Features of routing Policy: Multi Value
- Use when routing traffic to multiple resources
- Route 53 return multiple values/resources
- Can be associated with Health Checks (return only values for healthy resources)
- Up to 8 healthy records are returned for each Multi-Value query
- Multi-Value is not a substitute for having an ELB(The idea is that it’s the client-side load balancing)