Route 53 Flashcards

(105 cards)

1
Q

What does DNS mean?

A

Domain Name Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does DNS do?

A

translates human friendly hostnames into machine IP addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DNS hierarchical naming structure

A

.com
example.com
www.example.com
api.example.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a domain registrar example and what do they do?

A

Amazon Route 53, GoDaddy

And you register your domain names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are DNS record types?

A

A
AAAA
CNAME
NS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Zone File?

A

contains DNS records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Name Server?

A

resolves DNS queries (Authoritative or Non-Authoritative)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are Top Level Domains (TLD)?

A

.com
.us
.in
.gov
.org

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are second level domains? (SLD)

A

amazon.com
google.com

2 words between the dots

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Break down http://api.www.example.com.

A

the dot after com is Root
.com = TLD (Top Level Domain)
.example = SLD (Second Level Domain)
.www = Sub Domain
api = FQDN (Fully Qualified Domain Name)
http = Protocol
http://api.www.example.com = URL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does DNS work?

A

You have an EC2 instance (example) that hosts web server example.com with its IP address.

Web browser asks Local DNS server for example.com
If its not cached, the Local DNS server will ask the Root DNS server.

If the root DNS server does not know, it will tell the Local DNS Server to contact the TLD DNS Server (.com). Root DNS Server is familiar with .com.

The TLD DNS Server tells the Local DNS Server to contact the SLD DNS Server (second level domain) which is amazon registrar, route 53, goDaddy).

The SLD DNS server sends the result back to the Local DNS Server. The Local DNS server caches the result and then sends it to your web browser.

The web browser can now access that web server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an Amazon Route 53?

A

Highly Available, scalable fully managed and Authoritative DNS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does Authoritative DNS mean?

A

customer (you) can update DNS records.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Example of Authoritative DNS

A

You have an EC2 instance that can only be accessed through its public IP.

You create a record on your Route 53 and when you search for the name you chose it connects you to the server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Is Route 53 a domain registrar as well?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Does Route 53 allow to check the health of your resources?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is Route 53 SLA availability?

A

100% - only one in AWS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What does each record contain in Route 53?

A

Domain/subdomain name - example.com

Record Type - A or AAAA

Value - 12.34.56.78

Routing Policy - how Route 53 responds to queries

TTL (Time To Live) - amount of time the record is cached at DNS Resolvers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What type of records does Route 53 support?

A

A
AAAA
CNAME
NS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is an A record?

A

Maps a hostname to IPv4

e.g. example.com -> IP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is AAAA record?

A

maps hostname to IPv6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is a CNMA record?

A

Maps a hostname to another hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Must haves for a CNAME to work?

A

Target must have A or AAAA record

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What can you not do with CNAME?

A

Create a CNAME record for the top node of a DNS namespace (Zone Apex)

e.g. cant create for example.com but can create for www.example.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is an NS record?
Name Servers for the Hosted Zone DNS names or IP addresses of servers which can respond to your DNS queries of the hosted zone
26
What does NS record control?
How traffic is routed for a domain
27
What are Route 54 Hosted Zones?
Containers that hold records which define how to route traffic to domain and subdomains
28
How many Hosted Zones are there?
2
29
What are Public Hosted Zones?
contain records that specify how to route traffic on the internet (public domain names)
30
What are Private Hosted Zones?
contains records that specify how you route traffic within one or more VPCs (private domain names)
31
How much do you pay per hosted zone?
$0.50 per month
32
Difference between Public & Private Hosted Zones?
Public is for resources that are public (S3, CloudFront, EC2, ALB) Private is for resources inside your VPC - private resources with private domain names
33
What is a Record TTL?
Time To Live
34
How does TTL work?
The client asks Route 53 for a website. Route 53 sends the address of the website back to the client and includes TTL (e.g. 300s). What that means is that the client will cache the result for 300 seconds. Which means that if you request the same info in the next 300 seconds, the client will not ask Route 53 for that information.
35
What does High TTL (24hr) mean? And what is one downside?
That it will have less traffic on Route 53 Outdated records - have to wait 24hr for it to update
36
What does Low TTL (e.g. 60s) mean? What is one upside/downside
More traffic to Route 53 (more expensive since you pay per request) Records are outdated for less time Easy to change the records
37
Is TTL mandatory for every DNS record?
Yes except Alias record
38
Which record is TTL not mandatory for?
Alias record
39
Difference between CNAME and ALIAS?
ALIAS works for ROOT DOMAIN and NON ROOT DOMAIN where as CNAME only works for NON ROOT DOMAIN
40
Give an example of CNAME
I want to change my load balancer domain which is * lb1-1234.eu-east-2.elb.amazonaws.com to myapp.mydomain.com
41
Give an example of not being able to Point CNAME to a ROOT DOMAIN
for example I cannot have google.example.com point to example.com because example.com is ROOT DOMAIN
42
What can you do with an ALIAS?
You can point host name to an AWS resource e.g. app.mydomain.com -> blabla.amazonaws.com
43
What are 2 benefits of Alias?
free can perform health check
44
Architecture example of Alias Record
Route 53 with Alias record enabled. Allows example.com to be added to the aws load balancer name. When you search example.com it takes you to the ALB
45
What record type are Alias records always?
A/AAA (IPv4/IPv6)
46
What can you NOT set with Alias records?
TTL
47
Targets for Alias Records?
ELB CloudFront distributions API Gateway Elastic Beanstalk env S3 Websites VPC Interface Endpoints Global Accelerator accelerator Route 53 record in the same hosted zone
48
What can you NOT set an Alias record for?
EC2 DNS name
49
What does a Routing Policy do?
Defines how Route 53 responds to DNS queries
50
Routing Policies of Route 53?
Simple Weighted Failover Latency based Geolocation Multi-value Answer Geoproximity (Route 53 Traffic Flow feature)
51
Simple Routing Policy
Typically for a single resource Can specify multiple values in the same record
52
How do multiple values of Simple routing policy work?
Client asks Route 53 for foo.example.com. Route 53 sends back 3 A record IP addresses and the client chooses one randomly.
53
What happens when you enable Alias for Simple routing policy?
Can only specify one AWS resource
54
What can a simple routing policy not do?
Health Checks
55
What is a Weighted Routing Policy?
You can control the % of the requests that go to each specific resource
56
How do you assign each record a relative weight? (calculation)
traffic % = weight for specific record / sum of all weights for all records
57
What do DNS records must have for Weighted routing policy?
same name and type
58
Can you have health checks on Weighted Routing policies?
yes
59
Use cases for Weighted Routing Policies?
load balancing between regions testing new app versions
60
What happens if you assign 0 weight to a resource?
stop sending traffic
61
What happens if all records have 0 weight?
all records will be returned equally
62
How does Latency-Based Routing Policy work?
You connect to the ALB which is the closest to you. Meaning you have the least latency. Latency is based on traffic between users and AWS Regions. For example, a user in Germany could be directed to the US if the latency is lower than the ALB in Germany
63
Can Latency-based Routing Policies have health checks?
Yes
64
Can Latency-based Routing Policies have failover capabilities?
Yes
65
What are Health Checks in Route 53?
HTTP Health Checks are only for Public resources
66
Are health checks in route 53 available for public or private resources?
Public
67
Why do you perform a Health Check in Route 53?
It creates automatic DNS Failover
68
What are the 3 Health Checks you can have?
1. Monitor an endpoint (app, server) 2. Monitor other health checks (calculated health checks) 3. Health Checks for Cloud Watch alarms (full control) - throttles of DynamoDB, alarms on RDS, custom metrics (helpful for private resources)
69
How do you get health checks for private resources since HTTP Health Checks are only for Public resources?
By using HealthChecks that monitor CloudWatch alarms
70
How many global health checkers check for end point health?
15
71
What are the health check options you have?
healthy/unhealthy threshold interval of checks protocols : HTTP/S, TCP
72
What happens if >18% of health checkers report the endpoint is heathy?
Route 53 considers it healthy
73
Can you choose which locations you want Route53 to use?
Yes
74
When do health checks pass ? (response type)
2xx or 3xx
75
Can you set health checks to pass / fail based on the first 5120 bytes of the response?
Yes
76
What can you do with Route 53 and your router/firewall?
Can configure to allow allow incoming requests from Route 53 health checkers
77
How do Calculated Health Checks work?
They combine results multiple health checks into a single health check Can use OR, AND, or NOT when defining health checks
78
Calculated Health Check architecture
You have a Parent Health Check, and three child health checks in Route 53. Each of those child health checks monitors 1 EC2 instance each
79
How many Child health checks can you monitor with Parent Calculated Health Checks?
256 Child Health Checks
80
What can you specify with Parent health check in order to pass?
how many of the child health checks pass
81
Usage of Calculated Health Checks
Perform maintenance to your website without causing all health checks to fail
82
How do you monitor health of Private Hosted Resources (zones)?
By creating a CloudWatch Metric and associated a CloudWatch Alarm, then create a health check that checks the alarm itself
83
Why can you not use Route 53 health checks for private VPC or on-premise resources?
They live outside in the public web
84
Failover (Active-Passive) Routing Policy architecture
You have Client -> Amazon Route 53. You have 2 EC2 instances, primary and secondary - DR Route 53 does health checks for Primary, as soon as it is unhealthy, traffic is routed to the Secondary.
85
How does Geolocation Routing Policies work?
Routing is based on location. Specify location by continent, country or by US state
86
What should the Geolocation RP have in case there is no match on location?
A Default record
87
What are the use cases for a Geolocation RP?
website localisation restrict content distribution load balancing
88
Can Geolocation RP associate with health checks?
Yes
89
How would you use a geo location?
For e.g. In Germany go to this IP which uses the german version of my app. In France, do the same for the french version. Everywhere else, go to the English version of the app.
90
How does Geoproximity Routing Policy work?
Route traffic to your resources based on the geographic location of users and resources
91
What does ability to shift more traffic to resources baed on the defined bias mean?
Change the size of geographic region by specifying bias values 1 to 99 & -1 to -99 = expand is more, shrink is less traffic to resource
92
What can Geoproximity resources be?
AWS resources (specify AWS region) Non-AWS resources (specify latitude and longitude)
93
How can you use Geoproximity Routing Policy?
Need to use Route 53 Traffic Flow (advanced)
94
When is Geoproximity Routing really helpful?
When you want to shift traffic from one region to another by increasing the Bias
95
How does IP based Routing work?
Routing is based on IP address
96
How does IP based Routing work?
You provide a list of CIDRs for your clients and the corresponding endpoints/locations (user-IP-to-endpoint mappings)
97
Use cases of IP based routing
Optimise performance, reduce network costs
98
Example of IP based routing
Route end users from a particular ISP to a specific endpoint
99
IP based Routing architecture (example)
You have Route 53 connected to CIDR collection = location | 203.0.113.0/24 CIDR collection is connected with records. If a user with the IP address of 203.0.113.56 tries to connect, it will get sent to the Instance with the value associated to the location.
100
When do you use Multi-Value RP?
when routing traffic to multiple resources
101
Can Multi-value RP be associated with Health Checks?
Yes
102
How many health records can be returned for each Multi-value query?
up to 8
103
Can you replace ELB with Multi-Value?
No
104
If you buy domain on 3rd party registrar, how can you still use Route 53 as the DNS service provider?
By creating a Hosted Zone in R53 And then update NameServer records on 3rd party website to use Route53 Name Servers
105
What is a domain registrar?
You buy the domain name