A developer is designing a telemetry ingestion pipeline for IoT smart meters. The metrics are published to an Amazon Kinesis Data Stream with 4 shards. The producer application currently uses the MeterID as the partition key. Because a subset of the smart meters generates a significantly higher volume of events, the developer observes frequent ProvisionedThroughputExceededException errors on specific shards during peak hours, while other shards remain underutilized. Additionally, a new requirement specifies that critical maintenance alarms embedded in the telemetry payload must be immediately routed to an Amazon EventBridge custom event bus for downstream processing. Which TWO actions should the developer take to resolve the partition throughput issues and route the critical alarms?
- Modify the producer application to use a composite key consisting of the MeterID and a high-cardinality attribute (such as a hash of the event timestamp) as the partition key.Cevap
- Create an Amazon EventBridge Pipe with the Kinesis Data Stream as the source, define a filter pattern matching the critical maintenance alarms, and set the custom event bus as the target.Cevap
- CUpdate the producer application to use a single static string as the partition key for all payloads to guarantee strict global ordering of messages across all shards.
- DDeploy the backend consumer Lambda function inside a private VPC subnet with no route to a NAT Gateway or VPC endpoint to secure the data transfer.
- EAdjust the consumer Lambda function configuration by increasing its execution timeout limit to 30 minutes to allow processing of delayed streams during peak volume hours.