Route 53 Flashcards

1
Q

Route 53 is highly available, fully managed and Authoritative DNS - what does Authoritative mean here?

A

The customer can update the DNS records

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

What is Route 53 in the scope of DNS?

A

A Domain Registrar - allows the creation of domain names that are translated to IP addresses.

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

What type of information does each Route 53 record contain?

A

The information that allows you to route traffic for a domain

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

What specific information does each Route 53 record contain?

A
  • Domain/subdomain Name (e.g., example.com)
  • Record Type (e.g., A or AAAA)
  • Value (e.g., 12.34.56.78)
  • Routing Policy (how Route 53 responds to queries)
  • TTL (the 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
5
Q

What record types does Route 53 support?

A

Must know - A, AAAA, CNAME, NS
Advanced - CAA, DS, MX, NAPTR, PTR, SOA, TXT, SPF, SRV

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

What is the purpose of record type A?

A

Maps a hostname to IPv4

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

What is the purpose of record type AAAA?

A

Maps a hostname to IPv6

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

What is the purpose of record type CNAME?

A

Maps a hostname to another hostname, where the target is a domain name that has an A or AAAA record

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

Give an example of where you would not be able to create a CNAME record

A

Can’t create a CNAME record for the top node of a DNS namespace (Zone Apex) - e.g., can’t create for example.com, but you can for www.example.com

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

What is the purpose of record type NS?

A

Name Servers for the Hosted Zone - these control how traffic is routed for a domain

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

What is a hosted zone?

A

A container for records that define how to route traffic to a domain and its subdomains

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

What is a public hosted zone?

A

Contains 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
13
Q

What is a private hosted zone?

A

Contain 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
14
Q

How much does a hosted zone cost per month with AWS?

A

$0.50

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

TTL is mandatory for all DNS records except…

A

Alias records

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

Describe the basic DNS flow

A
  1. Web browser wants to access example.com
  2. Local DNS server queries the Root DNS server for the .com NS
  3. Local DNS server then queries the Top Level Domain (TLD) DNS server for the example.com NS
  4. Local DNS server then queries the Sub Level Domain (SLD) DNS server for the example.com IP address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are the trade-offs of different record TTLs? Give a strategy for handling a record change.

A

High TTL (e.g., 24hr)
- Less traffic on Route 53
- Possibly outdated records
Low TTL (e.g. 60sec)
- More traffic on Route 53 so more expensive
- Records are outdated for less time
- Easy to change records

When wanting to change records, can decrease TTL then change the records so that Clients quickly pick up the change. After a certain amount of time, increase the TTL again (if you know the record will not be changing again soon)

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

What does the Record TTL do?

A

Tells the client how long to cache the DNS record (i.e., the resolved IP address)

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

State the difference between CNAME and Alias

A

CNAME:
- Points a hostname to any other hostname
- Only for non-root domain (e.g., application.example.com but not example.com)

Alias:
- Points a hostname to an AWS resource
- Works for root domain and non root domain
- Free
- Native health check

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

What type of record is an Alias?

A

A or AAAA for AWS records

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

Give a limitation of Alias records

A

You can’t set the TTL

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

What routing policies does Route 53 support?

A

Simple, Weighted, Failover, Latency based, Geolocation, Multi-Value Answer, Geoproxitimity (using Route 53 Traffic Flow Feature)

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

What is the difference between Route 53 routing and Load balancer routing?

A

Route 53 routing involves routing DNS queries (translating hostnames into endpoints).
Load balancer involves routing a request to an application on an instance.

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

Describe the Simple Routing Policy

A

Route traffic to a single resource - Route 53 will return one/many values (IP addresses) within a record, and if there are many values, the client will randomly choose one.

25
Q

Give a limitation of the Simple Routing Policy

A

Can’t be associated with Health Checks.

26
Q

Describe the Weighted Routing Policy

A

Control the % of requests that go to a specific resource.

27
Q

What is a requirement when using a Weighted Routing Policy?

A

DNS records must have the same name and type

28
Q

Can Weighted Routing Policy be associated with Health Checks?

A

Yes. Yes it can.

29
Q

Give a use case of Weighted Routing Policy.

A

Load balancing between regions, testing new application versions.

30
Q

How would you stop sending traffic to a resource using a Weighted Routing Policy?

A

Assign a weight of 0 to the record for that resource.

31
Q

How would you send equal traffic to all resources using a Weighted Routing Policy?

A

Assign all records a weight of 0.

32
Q

Describe Latency-based Routing Policy

A

Redirect to the resource that has the least latency close to us.

33
Q

What is Latency based on in the Latency-based Routing Policy?

A

Based on traffic between users and the AWS regions

34
Q

Can Latency Routing Policy be associated with Health Checks?

A

Yes - also has failover capacity

35
Q

What type of HTTP resource can Route 53 Health Checks be assigned to?

A

Public resources

36
Q

What can a Health Check monitor?

A

Can monitor an endpoint, other health checks or cloudwatch alarms.

37
Q

How does a Health Checker monitor an endpoint?

A
  • About 15 global health checkers will send a HTTP request to /health, looking for a 2xx or 3xx status code
38
Q

What Endpoint Health Checker parameters can be specified?

A
  • Set a threshold determining healthy vs unhealthy (default is 3)
  • Set an interval for the health check (30 sec, 10 sec can be set at a higher cost).
39
Q

What protocols does the Endpoint Health Checker support?

A

HTTP/S and TCP

40
Q

Other than an HTTP response code, how else can you specify whether an Endpoint is deemed healthy?

A

Health Check can be setup to pass/fail based on the text in the first 5120 bytes of the response.

41
Q

What is the %age threshold for a health checker to deem an endpoint ‘healthy’?

A

> 18% is healthy.

42
Q

What is a requirement for using Route 53 Health Checkers?

A

Configure your router/firewall to allow incoming requests from Route 53 Health Checkers

43
Q

Describe what a Calculated Health Check is

A

Combine the results of multiple Health Checks into a single Health Check.

44
Q

What Calculated Health Checker parameters can be specified?

A

Number of Child Health Checks to be monitored - up to 256.
Specify how many of the health checks need to pass to make the parent pass.

45
Q

Give a use case of a Calculated Health Check?

A

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

46
Q

How to you perform Health Checks on Private resources?

A

Create a CloudWatch Metric and associate a CloudWatch Alarm, then create a Health Check that checks the alarm itself.

47
Q

Why can you not perform Health Checks on private endpoints?

A

Route 53 Health Checkers are outside the VPC - cannot access private endpoints.

48
Q

Describe the Failover Routing Policy

A
  • Designate a Primary and Secondary EC2 instance (secondary if for disaster recovery)
  • Mandatory Health check on primary, if this fails then traffic is routed to secondary backup instance.
49
Q

Describe the Geolocation Routing Policy

A
  • Routing is based on user location
  • Specify by Continent, Country or US state (if any overlap, most precise location is chosen)
  • Should create a ‘Default’ record (in case there is no match on location)
  • Can be associated with Health checks
50
Q

Give a use case for the Geolocation Routing Policy

A
  • Website localization
  • Restrict content distribution
  • Load balancing
51
Q

Describe the Geoproximity Routing Policy

A
  • Route traffic to your resources based on the location of users and resources
  • Can shift more traffic to resources based on a defined bias (more bias to a region means more traffic and vice versa)
52
Q

With Geolocation Routing Policy, how can you specify the location?

A
  • AWS resources are specified by region
  • Non-AWS resources are specified by latitude and longitude
53
Q

What does Geolocation Routing Policy require?

A

Route 53 Traffic Flow

54
Q

What does a Traffic Flow Policy do?

A
  • Acts as a configuration file for complex Routing decision trees
  • Can be applied to different Route 53 Hosted Zones (different domain names)
55
Q

What is Route 53 Traffic Flow?

A

A visual editor to manage complex routing decision trees.

56
Q

Describe the Multi-Value Routing Policy

A
  • Route traffic to multiple resources
  • Route 53 will return multiple values/records (up to 8 healthy resources)
57
Q

What is another way of describing the Multi-Value Routing Policy?

A

Client side load balancing

58
Q

What is the difference between Multi-Value Routing Policy returning many values and Simple Routing Policy returning many values

A

Simple Routing Policy does not allow health checks - may return unhealthy records

59
Q

How would you use a 3rd party Domain Registrar with Route 53 as the DNS Service?

A
  • Register domain on 3rd party
  • Create public Hosted Zone on Route 53
  • Copy Name Servers (NS) across from Route 53 to 3rd party registrar