Route 53 - TTL/CNAME vs Alias Flashcards

1
Q

What does TTL stand for in DNS?

A

TTL stands for Time To Live, which defines how long a DNS record is cached by clients or resolvers.

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

How does TTL work in DNS caching?

A

TTL instructs clients to cache a DNS response for a specified duration, reducing the need for repeated DNS queries within that period.

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

What happens if a DNS record has a high TTL?

A

A high TTL (e.g., 24 hours) reduces DNS traffic but can lead to outdated records being cached for longer periods if changes are made.

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

What are the implications of setting a low TTL?

A

A low TTL (e.g., 60 seconds) ensures records update faster but increases DNS traffic and costs.

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

What strategy can be used when planning to change a DNS record?

A

Decrease the TTL in advance to ensure clients receive updates quickly, then make the change and later increase the TTL back to its original value.

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

Is TTL mandatory for all DNS record types in Route 53?

A

Yes, TTL is mandatory for all records except Alias records.

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

What happens if a client tries to access a cached DNS record after the TTL expires?

A

The client queries the DNS system again to retrieve the updated record.

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

What command can you use to query a DNS record and observe its TTL?

A

The dig command can be used to query a DNS record and display its TTL.

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

What is a practical use of nslookup in testing DNS records?

A

The nslookup command can verify that a DNS record resolves to the correct IP address.

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

How does a change in a DNS record propagate with respect to TTL?

A

Changes take effect after the TTL of the cached records expires, prompting clients to fetch the updated record.

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

What does a “120 seconds” TTL mean for a DNS record?

A

It means the record will be cached for 120 seconds before clients must query the DNS again for updates.

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

What is the purpose of setting a TTL for DNS records?

A

TTL helps balance between reducing DNS traffic and ensuring records are up-to-date for clients.

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

What is a CNAME record in DNS?

A

A CNAME record maps one domain name to another domain name. For example, app.mydomain.com can point to blabla.anything.com.

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

Can CNAME records be used at the apex of a DNS zone?

A

No, CNAME records cannot be used at the zone apex (e.g., mydomain.com).

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

What is an Alias record in AWS Route 53?

A

An Alias record maps a domain name to an AWS resource, such as an ELB, CloudFront distribution, or S3 website.

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

Can Alias records be used at the apex of a DNS zone?

A

Yes, Alias records can be used at the zone apex (e.g., mydomain.com).

17
Q

What are the key benefits of using Alias records over CNAMEs in Route 53?

A

Alias records are free of charge, support root domains, and automatically update with changes to AWS resource IPs.

18
Q

Can Alias records be used to point to an EC2 DNS name?

A

No, Alias records cannot point to an EC2 DNS name.

19
Q

What types of AWS resources can Alias records point to?

A

Alias records can point to:

Elastic Load Balancers (ALB/CLB)
CloudFront distributions
API Gateway endpoints
Elastic Beanstalk environments
S3 websites
VPC interface endpoints
Global Accelerator
Route 53 records in the same hosted zone

20
Q

What is the difference between TTL management in CNAME and Alias records?

A

CNAME: TTL can be set manually.
Alias: TTL is managed automatically by Route 53.

21
Q

What happens if the IP of an AWS resource changes for an Alias record?

A

The Alias record automatically updates to reflect the new IP without requiring manual intervention.

22
Q

Why might you use an Alias record instead of a CNAME?

A

You might use an Alias record for root domain support, integration with AWS resources, cost savings, and automatic IP updates.

23
Q

How can you redirect a root domain (e.g., example.com) to an AWS resource?

A

Use an Alias record pointing to the AWS resource, such as an ALB or CloudFront distribution.