A solar installer's marketing site uses Amazon CloudFront in front of an Application Load Balancer. Since a new ad campaign started, the cache hit ratio has fallen from 90 percent to 15 percent and origin load has risen. Every campaign link adds unique utm_source and click-ID query strings. The site's pages vary only by the lang query string. The distribution's cache policy currently includes all query strings in the cache key. What should a CloudOps engineer do?
Choose one answer.
Show the answer and explanation
Answer: D
Explanation
CloudFront caches one object per unique cache key. Query strings, headers and cookies in the cache key multiply the objects, and unique tracking parameters make every request different. Including only the values that change the response, here lang, restores the hit ratio. If the origin still needs other parameters, an origin request policy can forward them without adding them to the cache key.