Interview practice question
Reprocessing whole Kinesis batches
Data Engineering · AWS Lambda · Intermediate
When one record in a Kinesis batch fails, your Lambda reprocesses the entire batch, causing duplicates downstream. How do you improve it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Enable ReportBatchItemFailures for stream event sources.
- Return the sequence number of the first failed record.
- Lambda retries from that point instead of the whole batch.
- Powertools batch processing utility handles this.
- Keep processing idempotent anyway.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.