A company uses AWS Lambda to process records from an Amazon Kinesis Data Stream. Each record is about 50 KB. The Lambda function transforms the data and writes to Amazon DynamoDB. Recently, the Lambda function has been experiencing throttling and high error rates. The Kinesis stream has 10 shards. What is the most cost-effective solution to improve processing throughput?
Trap 1: Increase the number of shards in the Kinesis stream.
Increases cost and may not be necessary.
Trap 2: Increase the Parallelization Factor for the Lambda event source…
May increase concurrency but not cost-effective.
Trap 3: Increase the memory allocated to the Lambda function.
Does not reduce invocation rate.
- A
Increase the number of shards in the Kinesis stream.
Why it fails: Increases cost and may not be necessary.
- B
Increase the Parallelization Factor for the Lambda event source mapping.
Why it fails: May increase concurrency but not cost-effective.
- C
Increase the memory allocated to the Lambda function.
Why it fails: Does not reduce invocation rate.
- D
Increase the Batch Window (MaximumBatchingWindowInSeconds) for the event source mapping.
Reduces invocation frequency.