A manufacturing company collects IoT device data via Amazon Kinesis Data Streams. The payload contains device ID, capture date, measurement type, measurement value, and facility ID. The producer uses facility ID as the partition key. The operations team observed many WriteThroughputExceeded exceptions: some shards are overloaded while others are idle. How should the company resolve this hot-shard issue?
Choose an answer
Tap an option to check your answer.
Correct answer: Change the partition key from facility ID to a randomly generated key..
Why this is the answer
Changing the partition key to a randomly generated key (e.g., UUID) distributes records more evenly across all shards, preventing a single shard from becoming overloaded. This resolves the hot-shard issue by maximizing shard utilization and reducing WriteThroughputExceeded exceptions. Increasing the number of shards might temporarily alleviate the issue but doesn't solve the underlying problem of uneven data distribution caused by a skewed partition key. Archiving data on the producer side is irrelevant to Kinesis throughput issues. Changing the partition key to capture date would likely exacerbate the hot-shard problem, as all devices would write to the same shard for a given date, leading to even more severe bottlenecks.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed