exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

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

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 297 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 as 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 casing-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
dkx
Highly Voted 1 year, 9 months ago
A. Yes, 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 mixed-cased/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-cloudfront-trigger-events.html B. No, because this will exacerbate the caching issue by sending all query string parameters requests to the origin C. No, because this won't help increase the cache hit ratio D. No, because a CloudFront distribution specifies information about the origin/source of your content and how to track and manage content delivery.
upvoted 12 times
...
albert_kuo
Most Recent 1 month, 3 weeks ago
Selected Answer: A
CloudFront does NOT support to specify casing-insensitive query string
upvoted 1 times
...
ChanduWodeyar
10 months, 1 week ago
Answer:D is best and cheap.
upvoted 1 times
helloworldabc
8 months, 1 week ago
just A
upvoted 1 times
...
...
LazyAutonomy
1 year, 3 months ago
Selected Answer: C
OMG so now I have to invoke and pay for a Lambda for every single GET request that traverses my CDN? No, F*** that. If D isn't supported then ciao bella s/Cloudfront/Cloudflare/g and say hello to Apache running mod_substitute thank you very much.
upvoted 1 times
...
duriselvan
1 year, 4 months ago
Caching based on query string parameters If you configure CloudFront to cache based on query string parameters, you can improve caching if you do the following: Configure CloudFront to forward only the query string parameters for which your origin will return unique objects.
upvoted 1 times
...
duriselvan
1 year, 4 months ago
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cache-hit-ratio.html
upvoted 1 times
...
duriselvan
1 year, 4 months ago
D is ans D. Casing-insensitive query string processing: This is the simplest and fastest solution to implement. It will treat requests with the same query string but different character casing as identical, boosting the cache hit ratio. It utilizes built-in functionality of CloudFront without requiring additional services or configurations. Remember, while other options might offer additional functionalities, the primary goal is to quickly improve the cache hit ratio. Specifying casing-insensitive query string processing achieves this with minimal impact and complexity.
upvoted 1 times
...
ggrodskiy
1 year, 9 months ago
Correct A.
upvoted 2 times
...
NikkyDicky
1 year, 9 months ago
Selected Answer: A
its an A D would be nice if was supported
upvoted 2 times
...
SmileyCloud
1 year, 10 months ago
Selected Answer: A
A - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-normalize-query-string-parameters
upvoted 3 times
...
SmileyCloud
1 year, 10 months ago
A - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-normalize-query-string-parameters
upvoted 1 times
...
nexus2020
1 year, 10 months ago
Selected Answer: A
D is out: CloudFront distributions do not have built-in support for specifying a case-insensitive query string. By default, CloudFront treats query strings as case-sensitive, meaning that a URL with a different case in the query string parameter would be treated as a separate object and potentially result in a cache miss.
upvoted 1 times
...
SkyZeroZx
1 year, 10 months ago
Selected Answer: A
A , same questions this version 1 https://www.examtopics.com/discussions/amazon/view/27789-exam-aws-certified-solutions-architect-professional-topic-1/
upvoted 2 times
...
gd1
1 year, 10 months ago
Selected Answer: A
A is the answer -to sort parameters by name and force them to be lowercase
upvoted 2 times
...
bhanus
1 year, 10 months ago
A check for the example in the below documentation https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html
upvoted 1 times
...
PhuocT
1 year, 10 months ago
A is answer
upvoted 1 times
...
psyx21
1 year, 10 months ago
Selected Answer: A
Correct Answer is A
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