Networking and Content Delivery
An application returns different product prices based on the currency query parameter. CloudFront forwards this parameter to the origin through an origin request policy, but cached responses show the wrong currency. Which change fixes the caching issue?
Show the answer
Correct answerC. Add currency to the cache policy's query strings.
AWhy not this: A response header does not add the viewer's query parameter to the cache key.
BWhy not this: Access logs help investigate requests but do not change how responses are cached.
CWhy this is right: Including currency in the cache key separates cached responses by currency value.
DWhy not this: A longer default TTL retains incorrectly shared responses longer.
Including currency in the cache key creates separate cached responses for each currency. An origin request policy forwards values to the origin but does not, by itself, include them in the cache key.