Create Route53 Record to Point Domain to CloudFront Distribution

Create Route53 Record to Point Domain to CloudFront Distribution

Prev Question Next Question

Question

Which record needs to be created in Route53 so that a company's domain name points to an existing Cloudfront distribution?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - A.

The AWS Documentation mentions the following.

While ordinary Amazon Route 53 records are standard DNS records, alias records provide a Route 53-specific extension to DNS functionality.

Instead of an IP address or a domain name, an alias record contains a pointer to a CloudFront distribution, an Elastic Beanstalk environment, an ELB Classic, Application, or Network Load Balancer, an Amazon S3 bucket that is configured as a static website, or another Route 53 record in the same hosted zone.

When Route 53 receives a DNS query that matches the name and type in an alias record, Route 53 follows the pointer and responds with the applicable value.

For more information on Route53 Alias records, please visit the following URL:

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html

To map a domain name to a CloudFront distribution using Amazon Route 53, you need to create a record in the Route 53 hosted zone for your domain.

There are four types of records that can be created in Route53:

A record: An A record is used to map a domain name to an IPv4 address. This type of record is not used for mapping a domain name to a CloudFront distribution.

CNAME record: A CNAME record maps a domain name to another domain name. This is the recommended record type to use when mapping a domain name to a CloudFront distribution.

Alias record: An Alias record is a Route53-specific type of record that maps a domain name to an AWS resource, such as a CloudFront distribution, an Amazon S3 bucket, or an Elastic Load Balancer. This is the recommended record type to use when mapping a domain name to a CloudFront distribution.

Non-alias record: A non-alias record is used to map a domain name to an IP address or a domain name that is not an AWS resource. This type of record is not used for mapping a domain name to a CloudFront distribution.

Therefore, the correct answer to the question is A. Create an Alias record that points to the CloudFront distribution. This is the recommended method for mapping a domain name to a CloudFront distribution in Route 53.

An Alias record provides a Route53-specific DNS name that you can use to route traffic to a CloudFront distribution. When you create an Alias record, you specify the name of the CloudFront distribution that you want to map to your domain name.

Route53 automatically creates the necessary DNS records that map your domain name to the CloudFront distribution's DNS name. This ensures that the DNS records for your domain name are always up-to-date with the DNS records for the CloudFront distribution.

In summary, to map a domain name to an existing CloudFront distribution using Route 53, you should create an Alias record that points to the CloudFront distribution.