
Answer-first summary for fast verification
Answer: Configure the setting to split the batch when an error occurs.
The correct answer is B: 'Configure the setting to split the batch when an error occurs.' This option addresses the issue where some records in the batch are processed successfully, but some contain errors. By splitting the batch when an error occurs, it helps to isolate problematic records and prevents successfully processed records from being sent to the dead-letter queue. Increasing retry attempts (Option A) does not address the issue of successfully processed records being sent to the dead-letter queue. Increasing concurrent batches per shard (Option C) and decreasing the maximum age of records (Option D) are also not relevant to solving the specific problem of correctly processed records ending up in the dead-letter queue.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A DevOps engineer is tasked with designing an application that integrates with a legacy REST API. The application utilizes an AWS Lambda function to read records from an Amazon Kinesis data stream and subsequently sends these records to the legacy REST API. It is observed that approximately 10% of these records contain data errors and require manual processing. To handle failures, the Lambda function's event source configuration includes an Amazon Simple Queue Service (Amazon SQS) dead-letter queue as an on-failure destination. The engineer has set up the Lambda function to process records in batches and has implemented a retry mechanism for failed attempts. During testing, it is discovered that the dead-letter queue is receiving numerous records that do not have data errors and have already been successfully processed by the legacy REST API. To address this issue, the engineer needs to adjust the Lambda function's event source options to minimize the number of errorless, already processed records being sent to the dead-letter queue. Which configuration change will effectively meet this requirement?
A
Increase the retry attempts.
B
Configure the setting to split the batch when an error occurs.
C
Increase the concurrent batches per shard.
D
Decrease the maximum age of record.
No comments yet.