Your website domain must serve both `example.com` and `www.example.com` over HTTPS via CloudFront. What do you configure?
IntermediateScenarioRoute 53, CloudFront and Messaging
Answer
Situation read → Both names as alternate domain names with a matching cert.
What I'd do →
- Request ACM cert in us-east-1 for both names, validate by DNS
- Add CNAMEs in the distribution
- Route 53 alias A and AAAA records for both
- Redirect www to apex with a CloudFront Function
- Use TLS 1.2 minimum policy
Why → CloudFront can only use ACM certificates from us-east-1.
Interview tip → Don't forget AAAA records for IPv6.
More on Route 53, CloudFront and Messaging
You want users routed to the nearest healthy region. Which Route 53 policy do you use?BeginnerPrimary region fails; how do you fail over DNS in a controlled way?IntermediateWhat is the difference between a CNAME and an alias record in Route 53?BeginnerRoll out a new version to 5 percent of users using DNS. How?IntermediateCloudFront serves stale content after you deployed a new JS bundle. How do you handle cache correctly?IntermediateCloudFront returns 403 from an S3 origin. List the checks.Intermediate