Route 53 Flashcards

1
Q

Describe Route 53

A

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

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

Name 4 record types and what they do

A

A - maps a hostname to IPv4

AAAA - MAPS HOSTNAME TO ipV6

CNAME - maps hostname to another hostname

NS - name servers for the hosted zone

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

TTL stands for?

A

Time to Live

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

True or False

You can set an ALIAS record for an EC2 DNS name.

A

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What’s the main difference between CNAME records and ALIAS records?

A

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

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

Describe Route 53 routing policies

A

Routing policies define how Route 53 responds to DNS queries

The routing policies are:

  • simple
  • weighted
  • failover
  • latency based
  • geolocation
  • multi-value answer
  • geoproximity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe weighted routing policy

A

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

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

describe the latency based routing policy

A

redirect to the resource that has the least latency to us

great for applications where low latency is a priority

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

Describe a failover routing policy

A

Failover routing policy lets you declare a secondary record to use if the primary record’s health check fails

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

describe geolocation routing policy

A

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

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

describe geoproximity routing policy

A

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

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

describe route 53 traffic flow

A

traffic flow is a visual editor that helps manage complex routing decision trees

these can be saved as traffic flow policies
- supports versioning

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

describe multi-value routing policy

A

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

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

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?

A

ALIAS.

CNAME does not support root level domains

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

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?

A

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.

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

You have updated a Route 53 Record’s myapp.mydomain.com value to point to a new Elastic Load Balancer, but it looks like users are still redirected to the old ELB.

What is a possible cause for this behavior?

A

Because of the TTL.

Each DNS record has a TTL (Time To Live) which orders clients for how long to cache these values and not overload the DNS Resolver with DNS requests. The TTL value should be set to strike a balance between how long the value should be cached vs. how many requests should go to the DNS Resolver.

17
Q

You have an application that’s hosted in two different AWS Regions us-west-1 and eu-west-2. You want your users to get the best possible user experience by minimizing the response time from application servers to your users.

Which Route 53 Routing Policy should you choose?

A

Latency.

Latency Routing Policy will evaluate the latency between your users and AWS Regions, and help them get a DNS response that will minimize their latency (e.g. response time)

18
Q

You have a legal requirement that people in any country but France should NOT be able to access your website.

Which Route 53 Routing Policy helps you in achieving this?

A

Geolocation

19
Q

You have purchased a domain on GoDaddy and would like to use Route 53 as the DNS Service Provider.

What should you do to make this work?

A

Create a public hosted zone and update the 3rd party registrar NS records

Public Hosted Zones are meant to be used for people requesting your website through the Internet. Finally, NS records must be updated on the 3rd party Registrar.

20
Q

Which of the following are NOT valid Route 53 Health Checks?

a. health check that monitors SQS queue
b. health check that monitors an endpoint
c. health check that monitors other health checks
d. health check that monitors cloudwatch alarms

A

a. health check that monitors SQS queue