Route 53 Flashcards

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
Q

What is an NS record?

A

Name Servers for the Hosted Zone

DNS names or IP addresses of servers which can respond to your DNS queries of the hosted zone

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

What does NS record control?

A

How traffic is routed for a domain

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

What are Route 54 Hosted Zones?

A

Containers that hold records which define how to route traffic to domain and subdomains

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

How many Hosted Zones are there?

A

2

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

What are Public Hosted Zones?

A

contain records that specify how to route traffic on the internet (public domain names)

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

What are Private Hosted Zones?

A

contains records that specify how you route traffic within one or more VPCs (private domain names)

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

How much do you pay per hosted zone?

A

$0.50 per month

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

Difference between Public & Private Hosted Zones?

A

Public is for resources that are public (S3, CloudFront, EC2, ALB)

Private is for resources inside your VPC - private resources with private domain names

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

What is a Record TTL?

A

Time To Live

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

How does TTL work?

A

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.

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

What does High TTL (24hr) mean? And what is one downside?

A

That it will have less traffic on Route 53

Outdated records - have to wait 24hr for it to update

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

What does Low TTL (e.g. 60s) mean? What is one upside/downside

A

More traffic to Route 53 (more expensive since you pay per request)

Records are outdated for less time

Easy to change the records

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

Is TTL mandatory for every DNS record?

A

Yes except Alias record

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

Which record is TTL not mandatory for?

A

Alias record

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

Difference between CNAME and ALIAS?

A

ALIAS works for ROOT DOMAIN and NON ROOT DOMAIN where as CNAME only works for NON ROOT DOMAIN

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

Give an example of CNAME

A

I want to change my load balancer domain which is
* lb1-1234.eu-east-2.elb.amazonaws.com to myapp.mydomain.com

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

Give an example of not being able to Point CNAME to a ROOT DOMAIN

A

for example I cannot have google.example.com point to example.com because example.com is ROOT DOMAIN

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

What can you do with an ALIAS?

A

You can point host name to an AWS resource

e.g.
app.mydomain.com -> blabla.amazonaws.com

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

What are 2 benefits of Alias?

A

free
can perform health check

44
Q

Architecture example of Alias Record

A

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
Q

What record type are Alias records always?

A

A/AAA (IPv4/IPv6)

46
Q

What can you NOT set with Alias records?

A

TTL

47
Q

Targets for Alias Records?

A

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
Q

What can you NOT set an Alias record for?

A

EC2 DNS name

49
Q

What does a Routing Policy do?

A

Defines how Route 53 responds to DNS queries

50
Q

Routing Policies of Route 53?

A

Simple
Weighted
Failover
Latency based
Geolocation
Multi-value Answer
Geoproximity (Route 53 Traffic Flow feature)

51
Q

Simple Routing Policy

A

Typically for a single resource

Can specify multiple values in the same record

52
Q

How do multiple values of Simple routing policy work?

A

Client asks Route 53 for foo.example.com. Route 53 sends back 3 A record IP addresses and the client chooses one randomly.

53
Q

What happens when you enable Alias for Simple routing policy?

A

Can only specify one AWS resource

54
Q

What can a simple routing policy not do?

A

Health Checks

55
Q

What is a Weighted Routing Policy?

A

You can control the % of the requests that go to each specific resource

56
Q

How do you assign each record a relative weight? (calculation)

A

traffic % = weight for specific record / sum of all weights for all records

57
Q

What do DNS records must have for Weighted routing policy?

A

same name and type

58
Q

Can you have health checks on Weighted Routing policies?

A

yes

59
Q

Use cases for Weighted Routing Policies?

A

load balancing between regions

testing new app versions

60
Q

What happens if you assign 0 weight to a resource?

A

stop sending traffic

61
Q

What happens if all records have 0 weight?

A

all records will be returned equally

62
Q

How does Latency-Based Routing Policy work?

A

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
Q

Can Latency-based Routing Policies have health checks?

A

Yes

64
Q

Can Latency-based Routing Policies have failover capabilities?

A

Yes

65
Q

What are Health Checks in Route 53?

A

HTTP Health Checks are only for Public resources

66
Q

Are health checks in route 53 available for public or private resources?

A

Public

67
Q

Why do you perform a Health Check in Route 53?

A

It creates automatic DNS Failover

68
Q

What are the 3 Health Checks you can have?

A
  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
Q

How do you get health checks for private resources since HTTP Health Checks are only for Public resources?

A

By using HealthChecks that monitor CloudWatch alarms

70
Q

How many global health checkers check for end point health?

A

15

71
Q

What are the health check options you have?

A

healthy/unhealthy threshold
interval of checks
protocols : HTTP/S, TCP

72
Q

What happens if >18% of health checkers report the endpoint is heathy?

A

Route 53 considers it healthy

73
Q

Can you choose which locations you want Route53 to use?

A

Yes

74
Q

When do health checks pass ? (response type)

A

2xx or 3xx

75
Q

Can you set health checks to pass / fail based on the first 5120 bytes of the response?

A

Yes

76
Q

What can you do with Route 53 and your router/firewall?

A

Can configure to allow allow incoming requests from Route 53 health checkers

77
Q

How do Calculated Health Checks work?

A

They combine results multiple health checks into a single health check

Can use OR, AND, or NOT when defining health checks

78
Q

Calculated Health Check architecture

A

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
Q

How many Child health checks can you monitor with Parent Calculated Health Checks?

A

256 Child Health Checks

80
Q

What can you specify with Parent health check in order to pass?

A

how many of the child health checks pass

81
Q

Usage of Calculated Health Checks

A

Perform maintenance to your website without causing all health checks to fail

82
Q

How do you monitor health of Private Hosted Resources (zones)?

A

By creating a CloudWatch Metric and associated a CloudWatch Alarm, then create a health check that checks the alarm itself

83
Q

Why can you not use Route 53 health checks for private VPC or on-premise resources?

A

They live outside in the public web

84
Q

Failover (Active-Passive) Routing Policy architecture

A

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
Q

How does Geolocation Routing Policies work?

A

Routing is based on location.

Specify location by continent, country or by US state

86
Q

What should the Geolocation RP have in case there is no match on location?

A

A Default record

87
Q

What are the use cases for a Geolocation RP?

A

website localisation
restrict content distribution
load balancing

88
Q

Can Geolocation RP associate with health checks?

A

Yes

89
Q

How would you use a geo location?

A

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
Q

How does Geoproximity Routing Policy work?

A

Route traffic to your resources based on the geographic location of users and resources

91
Q

What does ability to shift more traffic to resources baed on the defined bias mean?

A

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
Q

What can Geoproximity resources be?

A

AWS resources (specify AWS region)

Non-AWS resources (specify latitude and longitude)

93
Q

How can you use Geoproximity Routing Policy?

A

Need to use Route 53 Traffic Flow (advanced)

94
Q

When is Geoproximity Routing really helpful?

A

When you want to shift traffic from one region to another by increasing the Bias

95
Q

How does IP based Routing work?

A

Routing is based on IP address

96
Q

How does IP based Routing work?

A

You provide a list of CIDRs for your clients and the corresponding endpoints/locations (user-IP-to-endpoint mappings)

97
Q

Use cases of IP based routing

A

Optimise performance, reduce network costs

98
Q

Example of IP based routing

A

Route end users from a particular ISP to a specific endpoint

99
Q

IP based Routing architecture (example)

A

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
Q

When do you use Multi-Value RP?

A

when routing traffic to multiple resources

101
Q

Can Multi-value RP be associated with Health Checks?

A

Yes

102
Q

How many health records can be returned for each Multi-value query?

A

up to 8

103
Q

Can you replace ELB with Multi-Value?

A

No

104
Q

If you buy domain on 3rd party registrar, how can you still use Route 53 as the DNS service provider?

A

By creating a Hosted Zone in R53

And then update NameServer records on 3rd party website to use Route53 Name Servers

105
Q

What is a domain registrar?

A

You buy the domain name