Which actions should the developer take to increase the processing speed?
(Choose two.)
Increase the number of shards of the Kinesis data stream.
Decrease the timeout of the Lambda function.
Increase the memory that is allocated to the Lambda function.
Decrease the number of shards of the Kinesis data stream.
Increase the timeout of the Lambda function.
Explanations:
Increasing the number of shards in the Kinesis stream provides more throughput capacity, allowing Lambda to process records more quickly by increasing parallelism.
Decreasing the timeout does not help with increasing processing speed. A lower timeout could cause the function to terminate before it completes processing, leading to failed executions.
Increasing the allocated memory to the Lambda function can increase its CPU allocation, which may reduce processing time, especially for compute-intensive tasks.
Decreasing the number of shards would reduce the overall throughput of the Kinesis stream, which would likely worsen performance by limiting the available data for Lambda to process.
Increasing the timeout will not directly address slow processing. A longer timeout only allows the function to run longer, but it does not speed up processing or reduce iterator age.