Troubleshooting and Optimization

CloudFront serves product pages whose content varies by the language query parameter but not by the tracking query parameter. Both parameters must reach the origin on cache misses; how should the developer configure caching to prevent language mixing and maximize reuse?

Show the answer

Correct answerB. Include language in the cache policy and forward tracking through an origin request policy.

AWhy not this: Separating entries by tracking value unnecessarily reduces cache reuse.

BWhy this is right: Language separates cached representations, while tracking reaches the origin without fragmenting the cache.

CWhy not this: Tracking fragments the cache while language fails to distinguish cached representations.

DWhy not this: Forwarding parameters does not make them part of the cache key, so different languages could share an entry.

The cache key must distinguish languages without creating separate entries for tracking values. An origin request policy can forward tracking without adding it to the key; forwarding language alone would not prevent different languages from sharing cached content.