A developer needs to configure an Amazon Kinesis Data Stream to ingest telemetry data from thousands of IoT devices. To ensure that data is distributed evenly across all shards, which TWO values should the developer select to use as the partition key? (Select TWO.)
- A unique device identifier (device_id)Cevap
- BA timestamp representing the hour the event occurred
- A randomly generated transaction UUIDCevap
- DA static string indicating the device manufacturer name
- EThe source country code of the device location
Cevap
The correct options are the unique device identifier (device_id) and the randomly generated transaction UUID.
Amazon Kinesis Data Streams use the partition key to determine which shard a record is sent to. By using high-cardinality, high-entropy values like a unique device identifier or a randomly generated UUID, the hash values are distributed evenly across the stream's shards, ensuring balanced throughput.
Adım Adım Çözüm
Anahtar Kavram
Partition key cardinality and shard distribution in Amazon Kinesis Data Streams