New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DVA-C02 Exam - 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:

0/2000 characters
Brandon
3 months ago
D could work, but isn't it overkill for just caching?
upvoted 0 times
...
Svetlana
3 months ago
Surprised they want to cache POST at all, isn't that risky?
upvoted 0 times
...
Jade
3 months ago
C seems a bit inefficient, right?
upvoted 0 times
...
Sherill
4 months ago
I think B is the better choice for POST requests.
upvoted 0 times
...
Jina
4 months ago
Option A sounds solid for caching!
upvoted 0 times
...
Hollis
4 months ago
I recall something about using Parameter Store for storing configurations, but I'm not entirely sure if it’s the best choice for caching API responses.
upvoted 0 times
...
Ben
4 months ago
I’m a bit confused about using Lambda’s /tmp directory for caching. I thought it was only for temporary files during execution, not for persistent caching.
upvoted 0 times
...
Yolando
4 months ago
I think option B sounds familiar because we practiced a similar question about overriding cache methods in API Gateway.
upvoted 0 times
...
Ora
5 months ago
I remember we discussed caching strategies in our study group, but I'm not sure if POST requests can be cached effectively.
upvoted 0 times
...
Arlie
5 months ago
I'm leaning towards option C. Saving the latest request response in the Lambda /tmp directory and updating the Lambda function to check there seems like a straightforward way to handle this.
upvoted 0 times
...
Marci
5 months ago
Okay, I think I've got this. The key is to cache the POST requests to optimize the API resources. Option A looks good, where I can configure the CloudFront cache and have the application return the cached content.
upvoted 0 times
...
Shawnta
5 months ago
Hmm, I'm a bit confused here. Should I be caching the response in CloudFront or in the API Gateway? I'm not sure which option would be the most efficient.
upvoted 0 times
...
Billye
5 months ago
This seems like a straightforward caching question. I think I'll go with option B and override the cache method in the API Gateway stage for the POST method.
upvoted 0 times
...
Kyoko
5 months ago
Okay, let me see if I understand this correctly. We need to deploy Azure App Service instances to specific Azure regions, and the resources for those instances must be in the same region. The Regulatory compliance dashboard could help with that, but I'm not sure if it's the right solution.
upvoted 0 times
...
Amie
5 months ago
This seems straightforward - the question is asking about the types of transactions that can be created from an RMA using the Standard Return Authorization -- Cash form. I'll need to think through the options carefully.
upvoted 0 times
...
Billye
2 years 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
2 years ago
B) Override the cache method in the selected stage of API Gateway. Select the POST method.
upvoted 0 times
...
Ceola
2 years ago
Yeah, I agree. Let's go with the simpler solution.
upvoted 0 times
...
Filiberto
2 years ago
A) Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
upvoted 0 times
...
Garry
2 years ago
But wouldn't that be more complicated than just using CloudFront caching?
upvoted 0 times
...
Yun
2 years ago
B) Override the cache method in the selected stage of API Gateway. Select the POST method.
upvoted 0 times
...
Carin
2 years ago
I think that's the best option to optimize the API resources.
upvoted 0 times
...
Selma
2 years ago
A) Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
upvoted 0 times
...
...
Melodie
2 years 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
2 years 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
2 years 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