ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 68 - DVA-C02 discussion

Report
Export

An ecommerce company is using an AWS Lambda function behind Amazon API Gateway as its application tier. To process orders during checkout, the application calls a POST API from the frontend. The POST API invokes the Lambda function asynchronously. In rare situations, the application has not processed orders. The Lambda application logs show no errors or failures.

What should a developer do to solve this problem?

A.
Inspect the frontend logs for API failures. Call the POST API manually by using the requests from the log file.
Answers
A.
Inspect the frontend logs for API failures. Call the POST API manually by using the requests from the log file.
B.
Create and inspect the Lambda dead-letter queue. Troubleshoot the failed functions. Reprocess the events.
Answers
B.
Create and inspect the Lambda dead-letter queue. Troubleshoot the failed functions. Reprocess the events.
C.
Inspect the Lambda logs in Amazon CloudWatch for possible errors. Fix the errors.
Answers
C.
Inspect the Lambda logs in Amazon CloudWatch for possible errors. Fix the errors.
D.
Make sure that caching is disabled for the POST API in API Gateway.
Answers
D.
Make sure that caching is disabled for the POST API in API Gateway.
Suggested answer: B

Explanation:

The solution that will solve this problem is to create and inspect the Lambda dead-letter queue.

Troubleshoot the failed functions. Reprocess the events. This way, the developer can identify and fix any issues that caused the Lambda function to fail when invoked asynchronously by API Gateway.

The developer can also reprocess any orders that were not processed due to failures. The other options either do not address the root cause of the problem, or do not help recover from failures.

Reference: Asynchronous invocation

asked 16/09/2024
Okan YILDIZ
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first