BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DVA-C02 Topic 7 Question 17 Discussion

Actual exam question for Amazon's DVA-C02 exam
Question #: 17
Topic #: 7
[All DVA-C02 Questions]

A company developed an API application on AWS by using Amazon CloudFront, Amazon API Gateway, and AWS Lambd

a. The API has a

minimum of four requests every second. A developer notices that many API users run the same query by using the POST method. The developer

wants to cache the POST request to optimize the API resources.

Which solution will meet these requirements?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Billye
7 months ago
Agreed, Melodie. And option D, using Systems Manager Parameter Store? That seems overkill for this use case. Let's stick with the CloudFront caching solution.
upvoted 0 times
Rebecka
6 months ago
B) Override the cache method in the selected stage of API Gateway. Select the POST method.
upvoted 0 times
...
Ceola
7 months ago
Yeah, I agree. Let's go with the simpler solution.
upvoted 0 times
...
Filiberto
7 months ago
A) Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
upvoted 0 times
...
Garry
7 months ago
But wouldn't that be more complicated than just using CloudFront caching?
upvoted 0 times
...
Yun
7 months ago
B) Override the cache method in the selected stage of API Gateway. Select the POST method.
upvoted 0 times
...
Carin
7 months ago
I think that's the best option to optimize the API resources.
upvoted 0 times
...
Selma
7 months ago
A) Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
upvoted 0 times
...
...
Melodie
7 months ago
Ah, good point, Remona. Option C is definitely not the way to go. Storing request responses in the Lambda /tmp directory? That's just asking for trouble.
upvoted 0 times
...
Remona
7 months ago
Haha, imagine if the developer tried to cache the requests in the Lambda /tmp directory. That would be a disaster waiting to happen!
upvoted 0 times
...
Fanny
7 months ago
Alright, I think we've got it. Option A is the way to go. Time to move on to the next question and hope the rest of the exam is just as straightforward!
upvoted 0 times
...

Save Cancel