ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 295 - SAP-C02 discussion

Report
Export

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?

A.
Deploy a Lambda@Edge function to sort parameters by name and force them lo be lowercase Select the CloudFront viewer request trigger to invoke the function
Answers
A.
Deploy a Lambda@Edge function to sort parameters by name and force them lo be lowercase Select the CloudFront viewer request trigger to invoke the function
B.
Update the CloudFront distribution to disable caching based on query string parameters.
Answers
B.
Update the CloudFront distribution to disable caching based on query string parameters.
C.
Deploy a reverse proxy after the load balancer to post-process the emitted URLs in the application to force the URL strings to be lowercase.
Answers
C.
Deploy a reverse proxy after the load balancer to post-process the emitted URLs in the application to force the URL strings to be lowercase.
D.
Update the CloudFront distribution to specify casing-insensitive query string processing.
Answers
D.
Update the CloudFront distribution to specify casing-insensitive query string processing.
Suggested answer: A

Explanation:

because Amazon CloudFront considers the case of parameter names and values when caching based on query string parameters , thus inconsistent query strings may cause CloudFront to forward mixedcased/ misordered requests to the origin. Triggering a Lambda@Edge function based on a viewer request event to sort parameters by name and force them to be lowercase is the best choice.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html#query-string-parameters-optimizing-caching

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-cloudfronttrigger-events.html

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambdaexamples.html#lambda-examples-normalize-query-string-parameters

asked 16/09/2024
Simone Mento
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first