Deal of The Day! 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

Posted by Quentin on Dec 12, 2023 at 02:28 PM

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?

Get Premium DVA-C02 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
BR
Brandon 11 months ago
D could work, but isn't it overkill for just caching?
SV
Svetlana 11 months ago
Surprised they want to cache POST at all, isn't that risky?
JA
Jade 11 months ago
C seems a bit inefficient, right?
SH
Sherill 12 months ago
I think B is the better choice for POST requests.
JI
Jina 12 months ago
Option A sounds solid for caching!
HO
Hollis 12 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.
BE
Ben 1 year 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.
YO
Yolando 1 year ago
I think option B sounds familiar because we practiced a similar question about overriding cache methods in API Gateway.
OR
Ora 1 year ago
I remember we discussed caching strategies in our study group, but I'm not sure if POST requests can be cached effectively.
AR
Arlie 1 year 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.
MA
Marci 1 year 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.
SH
Shawnta 1 year 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.
BI
Billye 1 year 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.
KY
Kyoko 1 year 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.
AM
Amie 1 year 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.
BI
Billye 3 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.
RE
Rebecka 2 years ago
↳ replying to Billye
B) Override the cache method in the selected stage of API Gateway. Select the POST method.
CE
Ceola 2 years ago
↳ replying to Billye
Yeah, I agree. Let's go with the simpler solution.
FI
Filiberto 3 years ago
↳ replying to Billye
A) Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
GA
Garry 3 years ago
↳ replying to Billye
But wouldn't that be more complicated than just using CloudFront caching?
YU
Yun 3 years ago
↳ replying to Billye
B) Override the cache method in the selected stage of API Gateway. Select the POST method.
CA
Carin 3 years ago
↳ replying to Billye
I think that's the best option to optimize the API resources.
SE
Selma 3 years ago
↳ replying to Billye
A) Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
ME
Melodie 3 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.
RE
Remona 3 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!
FA
Fanny 3 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!
0/2000 characters

Save Cancel