Skill 3.2.1

Design content delivery architectures, origin selection strategies, caching strategies, and failover patterns (for example, by using Amazon CloudFront, Amazon CloudFront Origin Shield).

Key Concepts

Origin selection: S3 with origin access control for static content, ALB, API Gateway or a VPC origin for dynamic content, and cache behaviours that route paths to different origins. Caching strategy: cache policies that include only the headers, cookies and query strings that change the response raise the cache hit ratio; long TTLs with versioned file names avoid invalidations; origin request policies forward what the origin needs without fragmenting the cache. Origin Shield adds a central caching layer in one Regional edge cache, so requests from all edge locations collapse into one origin request, which cuts origin load and egress for globally popular content.

Failover: an origin group with a primary and secondary origin retries failed requests (for chosen HTTP status codes) against the secondary, for example an S3 bucket in another Region. CloudFront flat-rate pricing plans and price classes, which limit the edge locations used, are further cost levers for some workloads.