ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 144 - DVA-C02 discussion

Report
Export

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?

A.
Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
Answers
A.
Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
B.
Override the cache method in the selected stage of API Gateway. Select the POST method.
Answers
B.
Override the cache method in the selected stage of API Gateway. Select the POST method.
C.
Save the latest request response in Lambda /tmp directory. Update the Lambda function to check the /tmp directory.
Answers
C.
Save the latest request response in Lambda /tmp directory. Update the Lambda function to check the /tmp directory.
D.
Save the latest request in AWS Systems Manager Parameter Store. Modify the Lambda function to take the latest request response from Parameter Store.
Answers
D.
Save the latest request in AWS Systems Manager Parameter Store. Modify the Lambda function to take the latest request response from Parameter Store.
Suggested answer: B

Explanation:

Amazon API Gateway provides tools for creating and documenting web APIs that route HTTP requests to Lambda functions2. You can secure access to your API with authentication and authorization controls.Your APIs can serve traffic over the internet or can be accessible only within your VPC2.You can override the cache method in the selected stage of API Gateway2. Therefore, option B is correct.

asked 16/09/2024
Olaf Messerschmidt
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first