QuestionQ5

Troubleshooting and Optimization

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.
  • 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.
  • D Configure AWS Config to process any direct unprocessed events.
Explanation

A Dead Letter Queue (DLQ) configured with SQS captures failed asynchronous Lambda invocations after retries, allowing developers to inspect error details and investigate failures. CloudTrail logs API calls but not Lambda invocation failures, Simple Workflow and Config are not designed for Lambda failure analysis, and this is the standard troubleshooting mechanism for async Lambda failures.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!