ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 121 - DVA-C02 discussion

Report
Export

A developer is testing an application that invokes an AWS Lambda function asynchronously. During the testing phase the Lambda function fails to process after two retries.

How can the developer troubleshoot the failure?

A.
Configure AWS CloudTrail logging to investigate the invocation failures.
Answers
A.
Configure AWS CloudTrail logging to investigate the invocation failures.
B.
Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
Answers
B.
Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
C.
Configure Amazon Simple Workflow Service to process any direct unprocessed events.
Answers
C.
Configure Amazon Simple Workflow Service to process any direct unprocessed events.
D.
Configure AWS Config to process any direct unprocessed events.
Answers
D.
Configure AWS Config to process any direct unprocessed events.
Suggested answer: B

Explanation:

This solution allows the developer to troubleshoot the failure by capturing unprocessed events in a queue for further analysis. Dead Letter Queues (DLQs) are queues that store messages that could not be processed by a service, such as Lambda, for various reasons, such as configuration errors, throttling limits, or permissions issues. The developer can configure DLQs for Lambda functions by sending events to either an Amazon Simple Queue Service (SQS) queue or an Amazon Simple Notification Service (SNS) topic. The developer can then inspect the messages in the queue or topic to identify and fix the root cause of the failure. Configuring AWS CloudTrail logging will not capture invocation failures for asynchronous Lambda invocations, but only record API calls made by or on behalf of Lambda. Configuring Amazon Simple Workflow Service (SWF) or AWS Config will not process any direct unprocessed events, but require additional integration and configuration.

Reference: [Using AWS Lambda with DLQs], [Asynchronous invocation]

asked 16/09/2024
Marcin Cieślak
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first