AWS Certified Developer – Associate — Question 49
A company is using an AWS Lambda function to process records from an Amazon Kinesis data stream. The company recently observed slow processing of the records. A developer notices that the iterator age metric for the function is increasing and that the Lambda run duration is constantly above normal.
Which actions should the developer take to increase the processing speed? (Choose two.)
Answer options
- A. Increase the number of shards of the Kinesis data stream.
- B. Decrease the timeout of the Lambda function.
- C. Increase the memory that is allocated to the Lambda function.
- D. Decrease the number of shards of the Kinesis data stream.
- E. Increase the timeout of the Lambda function.
Correct answer: A, C
Explanation
Increasing the number of shards will allow for greater parallelism in processing, which can enhance speed. Allocating more memory to the Lambda function can also improve performance, as it may allow for faster execution. Decreasing the timeout or number of shards would likely hinder performance rather than help it.