A developer is building an IoT application that processes telemetry from a fleet of connected vehicles. The data is sent to an Amazon Kinesis Data Stream and processed by an AWS Lambda function. The JSON payload of each event includes `vehicle_id` (a unique UUID), `manufacturer` (e.g., 'CompanyA'), `timestamp`, and `speed`. The Lambda function must also route critical warning events to an Amazon EventBridge custom event bus.
During testing, the developer observes `ProvisionedThroughputExceededException` errors during peak periods, indicating uneven distribution of traffic across shards. Additionally, some Lambda executions fail because the function times out before completing the processing of a large batch of records, and the function is unable to route events to EventBridge when deployed inside a private VPC subnet.
Which two actions should the developer take to resolve these issues? (Select TWO.)
- Use the vehicle_id as the partition key for records published to the Kinesis Data Stream.Cevap
- Decrease the BatchSize parameter in the Lambda event source mapping, and ensure the Lambda function timeout is configured to an appropriate value up to 15 minutes.Cevap
- CUse the manufacturer as the partition key for records published to the Kinesis Data Stream.
- DIncrease the Lambda function timeout to 25 minutes to allow sufficient time for large batches of records to complete processing.
- EDeploy the Lambda function in a private VPC subnet without configuring a NAT Gateway or VPC interface endpoints.