A developer is implementing a serverless data processing application where an Amazon Kinesis data stream triggers an AWS Lambda function via an event source mapping. During high-traffic periods, temporary downstream database connection failures cause the Lambda function to fail when processing certain batches. This results in the entire batch of records being repeatedly retried, causing head-of-line blocking and redundant processing of valid records. The developer wants to isolate the failing records, avoid processing duplicates where possible, and capture failed records for offline analysis without stalling stream ingestion.
Which two configurations should the developer apply to the Lambda event source mapping to meet these requirements? (Select two.)
- Set BisectBatchOnFunctionError to true in the event source mapping configuration.Cevap
- Configure an on-failure destination (DestinationConfig) in the event source mapping to route discarded record metadata to an Amazon SQS queue.Cevap
- CConfigure the DeadLetterConfig property of the Lambda function to send failed execution payloads directly to an Amazon SQS queue.
- DIncrease the Lambda function's timeout configuration to match the retention period of the Kinesis data stream.
- EModify the Kinesis stream partition key logic to route failed records to a single static key to isolate them in a dedicated shard.