Q81 — AWS SOA-C02 Ch.1
Question 81 of 100 | ← Chapter 1
A company runs a web application that users access using the name www.example.com. The company manages the domain name example.com using Amazon Route 53. The company created an Amazon CloudFront distribution in front of the application and would like www.example.com to access the application through CloudFront. What is the MOST cost-effective way to achieve this?
- A. Create a CNAME record in Amazon Route 53 that points to the CloudFront distribution URL.
- B. Create an ALIAS record in Amazon Route 53 that points to the CloudFront distribution URL. ✓
- C. Create an A record in Amazon Route 53 that points to the public IP address of the web application.
- D. Create a PTR record in Amazon Route 53 that points to the public IP address of the web application.
Correct Answer: B. Create an ALIAS record in Amazon Route 53 that points to the CloudFront distribution URL.
Explanation
Amazon Route 53的ALIAS记录专门用于将域名指向AWS资源(如CloudFront),无需额外费用且支持根域名。官方文档指出,ALIAS记录直接映射到AWS资源的目标端点,提供更优的路由策略和成本效益。选项A的CNAME无法用于根域名,且可能产生额外查询费用;选项C和D涉及指向IP地址的A或PTR记录,无法实现动态流量路由至CloudFront。选项B符合Route 53最佳实践。