ANS-C01 Question 298
Single answerYour company is hosting an application in AWS that requires a domain name to point to an Application Load Balancer (ALB). You need to configure DNS for the domain using Amazon Route 53. Which DNS record type should you use to ensure proper resolution and integration with the ALB?
- A
A record
- B
CNAME record
- C
Alias record
- D
TXT record
Show answer and explanation
Correct answer: C
Explanation
Alias records are specifically designed for AWS integrations and allow you to point a domain name to an AWS resource, such as an Application Load Balancer (ALB), without needing to deal with IP addresses. Unlike CNAME records, Alias records can be used at the root domain level, making them the best option for this use case. A and CNAME records are either not suitable for dynamic AWS resources or have limitations, and TXT records serve an entirely different purpose.
- A. Incorrect.
An A record maps a domain name to a specific IPv4 address. While this could theoretically work for static IPs, it is not suitable for AWS resources like an ALB, which do not have fixed IP addresses.
- B. Incorrect.
A CNAME record maps a domain name to another domain name. However, it cannot be used for the root domain (e.g., example.com) and is not the recommended approach for AWS resources when using Route 53.
- C. Correct.
An Alias record is specifically designed for AWS resources like ALBs, S3 buckets, and CloudFront distributions. It allows you to point your domain to these resources directly and is the recommended choice in this scenario.
- D. Incorrect.
A TXT record is used to store text information, such as domain ownership verification or SPF records, and is not relevant for resolving domain names to AWS resources.