Interview Prep/AWS/DNS, CDN and Messaging

What improves CloudFront cache hit ratio?

AdvancedConceptDNS, CDN and Messaging
Answer

Normalize the cache key: forward only necessary query strings, headers and cookies (use cache policies, not legacy forwarding), lowercase and sort query strings via a Function, enable compression, set appropriate Cache-Control/TTLs at the origin, and enable Origin Shield to add a centralized cache layer in front of the origin and collapse requests.

Check the CacheHitRate metric and standard logs, and look at the x-cache response header (Hit from cloudfront or Miss from cloudfront).

aws All AWS questions Roadmap: AWS core services

More on DNS, CDN and Messaging