SAP-C02 · Question #341
A company has a complex web application that leverages Amazon CloudFront for global scalability and performance. Over time, users report that the web application is slowing down. The company's operati
The correct answer is A. Deploy a Lambda@Edge function to sort parameters by name and force them to be lowercase.. https://docs.amazonaws.cn/en_us/AmazonCloudFront/latest/DeveloperGuide/lambda- examples.html#lambda-examples-query-string-examples Before CloudFront serves content from the cache it will trigger any Lambda function associated with the Viewer Request, in which we can normalize par
Question
A company has a complex web application that leverages Amazon CloudFront for global scalability and performance. Over time, users report that the web application is slowing down. The company's operations team reports that the CloudFront cache hit ratio has been dropping steadily. The cache metrics report indicates that query strings on some URLs are inconsistently ordered and are specified sometimes in mixed-case letters and sometimes in lowercase letters. Which set of actions should the solutions architect take to increase the cache hit ratio as quickly as possible?
Options
- ADeploy a Lambda@Edge function to sort parameters by name and force them to be lowercase.
- BUpdate the CloudFront distribution to disable caching based on query string parameters.
- CDeploy a reverse proxy after the load balancer to post-process the emitted URLs in the
- DUpdate the CloudFront distribution to specify casing-insensitive query string processing.
How the community answered
(51 responses)- A67% (34)
- B18% (9)
- C10% (5)
- D6% (3)
Explanation
https://docs.amazonaws.cn/en_us/AmazonCloudFront/latest/DeveloperGuide/lambda- examples.html#lambda-examples-query-string-examples Before CloudFront serves content from the cache it will trigger any Lambda function associated with the Viewer Request, in which we can normalize parameters. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda- examples.html#lambda-examples-normalize-query-string-parameters
Community Discussion
No community discussion yet for this question.