A Lambda function processes records from a Kinesis data stream, but record processing has slowed. The Lambda iterator age is increasing and function duration is consistently high. Which actions should the developer take to speed up processing? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Increase the number of shards in the Kinesis data stream., Allocate more memory to the Lambda function..
Why this is the answer
An increasing Lambda iterator age and high function duration indicate that the Lambda function cannot process records as quickly as they arrive. To speed up processing, you need to either increase the processing capacity of the Lambda function or allow more parallel processing. Increasing the number of shards in the Kinesis data stream allows Kinesis to deliver records to more concurrent Lambda invocations. Each shard is processed by a single Lambda invocation at a time, so more shards mean more parallel processing. Allocating more memory to the Lambda function also allocates proportional CPU power, which can significantly reduce the function's execution duration, allowing it to process records faster. Reducing the Lambda function's timeout setting would prematurely terminate invocations, worsening the backlog. Decreasing the number of shards would reduce parallelism, further slowing down processing. Increasing the Lambda function's timeout setting would only allow slow functions to run longer, not speed them up.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed