An organization hosts a multi-language website on AWS, which is served using CloudFront.
Language is specified in the HTTP request as shown below: http://d11111f8.cloudfront.net/main.html?language=de http://d11111f8.cloudfront.net/main.html?language=en http://d11111f8.cloudfront.net/main.html?language=es How should AWS CloudFront be configured to deliver cached data in the correct language?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer - B.
Since language is specified in the query string parameters, CloudFront should be configured for the same.
For more information on configuring CloudFront via query string parameters, please visit the following URL:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.htmlTo deliver cached data in the correct language, AWS CloudFront should be configured based on query string parameters. This can be done by creating separate cache behaviors for each language in the CloudFront distribution settings.
Here's how this can be done:
By creating separate cache behaviors for each language, CloudFront will cache and serve the correct version of each page based on the "language" query string parameter in the HTTP request.
Forwarding cookies to the origin (option A) may not be necessary or desirable in this case, as the language is already specified in the query string parameter. Caching objects at the origin (option C) would not be effective in delivering cached data in the correct language. Serving dynamic content (option D) would be a more resource-intensive option, and may not be necessary if the language-specific pages can be served from cache.