exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 27 discussion

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 possible?

  • A. Deploy a Lambda@Edge function to sort parameters by name and force them to 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.
  • 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 case-insensitive query string processing.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Konnon
Highly Voted 3 years, 7 months ago
A. Before CloudFront serves content from the cache it will trigger any Lambda function associated with the Viewer Request, in which we can normalize parameters.
upvoted 22 times
LunchTime
3 years, 7 months ago
Agreed. A is correct
upvoted 4 times
...
...
Nemer
Highly Voted 3 years, 7 months ago
A is correct. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-normalize-query-string-parameters
upvoted 12 times
...
amministrazione
Most Recent 8 months, 2 weeks ago
A. Deploy a Lambda@Edge function to sort parameters by name and force them to be lowercase. Select the CloudFront viewer request trigger to invoke the function.
upvoted 1 times
...
Greanny
1 year ago
why not D
upvoted 2 times
...
JPA210
1 year, 2 months ago
Selected Answer: A
It has to be A , it is the most efficient option. B will disable cache, so how can this be a solution to the cache hit problem?!
upvoted 1 times
...
TravelKo
1 year, 9 months ago
Selected Answer: A
It should be A only
upvoted 1 times
...
kondratyevmn
1 year, 9 months ago
Selected Answer: B
B - will address all inconsistently ordered and mixed-case, lowercase URLs. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cache-hit-ratio.html#cache-hit-ratio-query-string-parameters D - doesn't address inconsistently ordered URLs A - doesn't address inconsistently ordered URLs + extra work, we need a quick solution. C - ? architecture change, not quick.
upvoted 1 times
...
SkyZeroZx
1 year, 10 months ago
Selected Answer: A
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-normalize-query-string-parameters
upvoted 1 times
...
PKG
1 year, 11 months ago
A correct answer
upvoted 1 times
...
Prasadvd
2 years, 1 month ago
Selected Answer: A
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-normalize-query-string-parameters Not Caching (Ans B) doesn't serve the main purpose/requirement
upvoted 1 times
...
sedado77
2 years, 6 months ago
Selected Answer: B
Option A adds costs. Option B is quicker.
upvoted 2 times
Cal88
2 years, 6 months ago
Option B will not cache content The main problem presented in the question is that the cache hit has decreased so to solve it option A is the only choice
upvoted 1 times
...
...
nazhar
2 years, 8 months ago
Selected Answer: A
A is correct answer
upvoted 1 times
...
cldy
3 years, 4 months ago
A. Deploy a Lambda@Edge function to sort parameters by name and force them to be lowercase. Select the CloudFront viewer request trigger to invoke the function.
upvoted 1 times
...
realsaid
3 years, 5 months ago
https://docs.amazonaws.cn/en_us/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-query-string-examples A is the answer
upvoted 1 times
...
acloudguru
3 years, 5 months ago
Selected Answer: A
even it is bad question, which does not say the string query impact the the cache, but still easy one hope I can have it in my exam
upvoted 1 times
...
jackyw
3 years, 5 months ago
Bad question, not mention clearly about the query string is affecting the cached object or not, B is quickest but with the risk of wrong data renders
upvoted 1 times
...
FERIN_01
3 years, 5 months ago
B. is the quickest solution as per AWS documentation
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago