Interview Prep/AWS/Route 53, CloudFront and Messaging

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 →

  1. Request ACM cert in us-east-1 for both names, validate by DNS
  2. Add CNAMEs in the distribution
  3. Route 53 alias A and AAAA records for both
  4. Redirect www to apex with a CloudFront Function
  5. 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.

aws All AWS questions Roadmap: AWS core services

More on Route 53, CloudFront and Messaging