DVA-C02 · Question #665
A developer is using an AWS Lambda function to process records that are delivered by an Amazon Kinesis data stream. The developer configured the maximum retry attempts for each record to be 0. If a…
The correct answer is A. Configure an event source mapping for the Lambda function to send failed records to an Amazon D. Configure an event source mapping for the Lambda function to send failed records to an Amazon. You can configure your Kinesis event source mapping to route failed records to a dead-letter destination (either an SQS queue or an SNS topic) without touching your Lambda code. Setting up an OnFailure destination in the event source mapping (pointing at SQS or SNS) immediately…
Question
A developer is using an AWS Lambda function to process records that are delivered by an Amazon Kinesis data stream. The developer configured the maximum retry attempts for each record to be 0. If a Lambda function invocation fails, the developer wants to retain the failed record. Which solutions will meet these requirements with the LEAST code changes to the Lambda function? (Choose two.)
Options
- AConfigure an event source mapping for the Lambda function to send failed records to an Amazon
- BCreate a second Lambda function to store failed records in an Amazon DynamoDB table.
- CConfigure the Lambda function to retry failed invocations for a defined count. Integrate the
- DConfigure an event source mapping for the Lambda function to send failed records to an Amazon
- EIncrease the data retention period for the Kinesis data stream.
How the community answered
(31 responses)- A84% (26)
- B10% (3)
- C3% (1)
- E3% (1)
Explanation
You can configure your Kinesis event source mapping to route failed records to a dead-letter destination (either an SQS queue or an SNS topic) without touching your Lambda code. Setting up an OnFailure destination in the event source mapping (pointing at SQS or SNS) immediately captures any record that exhausts its retry attempts. This preserves the failed payloads for later inspection or replay, and it requires no changes inside your function itself.
Community Discussion
No community discussion yet for this question.