AWS Certified Big Data – Specialty — Question 31
An administrator is processing events in near real-time using Kinesis streams and Lambda. Lambda intermittently fails to process batches from one of the shards due to a 5-munite time limit.
What is a possible solution for this problem?
Answer options
- A. Add more Lambda functions to improve concurrent batch processing.
- B. Reduce the batch size that Lambda is reading from the stream.
- C. Ignore and skip events that are older than 5 minutes and put them to Dead Letter Queue (DLQ).
- D. Configure Lambda to read from fewer shards in parallel.
Correct answer: D
Explanation
The correct answer is D because reducing the number of shards Lambda reads from allows more time to process each batch, helping to stay within the 5-minute limit. Options A and B may not address the time constraint effectively, while option C does not resolve the problem and could lead to data loss.