
Ultimate access to all questions.
A company has deployed its restaurant review website on an Amazon EC2 instance. This website offers support for multiple languages, with the user's preferred language specified as a query string parameter in the request URL. The structure of directories and filenames remains consistent across all language versions of the website. When a user accesses the site directly, it serves the webpage in the specified language. However, if the webpage is accessed through the associated CloudFront distribution, it always defaults to just one language.
What steps would you take to resolve this issue?
A
Create a new cache policy for the CloudFront distribution and set the cache behavior to Cache based on selected request headers. Use Whitelist Headers as the caching criteria
B
Create a new cache policy for the CloudFront distribution and set the cache behavior to Query string forwarding and caching. In the Query string whitelist field include the language string. Update the CloudFront distribution to use the new cache policy
C
Choose the Customize option for the Object Caching setting and reduce the Default TTL value so that CloudFront forwards requests to your origin more frequently
D
Create a new cache policy for the CloudFront distribution and set the cache behavior to None to improve caching performance. Update the CloudFront distribution to use the new cache policy