How does CloudFront work: distributions, origins and behaviors?
IntermediateConceptDNS, CDN and Messaging
Answer
A distribution has one or more origins (S3, ALB, API Gateway, custom HTTP) and behaviors, path-pattern rules that choose the origin, allowed methods, cache policy, origin request policy, viewer protocol policy and function associations. The cache key (URL plus whichever headers, cookies and query strings you include) decides cache hits, so include only what the origin actually varies on.
TLS certificates for custom domains must be issued in us-east-1 in ACM.
More on DNS, CDN and Messaging
What are the Route 53 record types and why use Alias instead of CNAME?BeginnerDescribe Route 53 routing policies.IntermediateHow do Route 53 health checks and DNS failover work?AdvancedWhat is a Route 53 private hosted zone?IntermediateHow does DNS TTL relate to failover and migrations?BeginnerWhat are Route 53 Resolver endpoints and rules?Advanced