AWS Certified Sysops Administrator Associate · Free Practice Question Easy
Question 28
Your company's main website is deployed on Amazon S3, and distributed by CloudFront. You have set up bucket policies on S3 to ensure only CloudFront can access your bucket. You would like your website URL to be https://johntrucks.com/ .
In Route 53, which type of record should you use?
-
A
A
-
B
AAAA
-
C
Alias
-
D
CNAME
Reveal correct answer
Correct answer: C
Explanation
Correct option:
Alias
Amazon Route 53 alias records provide a Route 53–specific extension to DNS functionality. Alias records let you route traffic to selected AWS resources, such as CloudFront distributions and Amazon S3 buckets. They also let you route traffic from one record in a hosted zone to another record.
Unlike a CNAME record, you can create an alias record at the top node of a DNS namespace, also known as the zone apex. For example, if you register the DNS name example.com, the zone apex is example.com. You can't create a CNAME record for example.com, but you can create an alias record for example.com that routes traffic to www.example.com.
Incorrect options:
CNAME - A CNAME record maps DNS queries for the name of the current record, such as acme.example.com, to another domain (example.com or example.net) or subdomain (acme.example.com or zenith.example.org). You cannot use a CNAME record for root domains, so this option is ruled out.
A - You use an A record to route traffic to a resource, such as a web server, using an IPv4 address in dotted-decimal notation.
AAAA - You use an AAAA record to route traffic to a resource, such as a web server, using an IPv6 address in colon-separated hexadecimal format.
References:
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
