0 votes
in AWS by

You are developing an application that is going to make use of Amazon Kinesis. Due to the high throughput, you decide to have multiple shards for the streams.

Which of the following is TRUE when it comes to processing data across multiple shards?

A. You cannot guarantee the order of data across multiple shards. It`s possible only within a shard.

B. Order of data is possible across all shards in a stream.

C. Order of data is not possible at all in Kinesis streams.

D. You need to use Kinesis firehose to guarantee the order of data.

arrow_left sharing button

1 Answer

0 votes
by

Kinesis Data Streams lets you order records and read and replay records in the same order to many Kinesis Data Streams applications.

To enable write ordering, Kinesis Data Streams expects you to call the PutRecord API to write serially to a shard while using the sequenceNumberForOrdering parameter.

Setting this parameter guarantees strictly increasing of sequence numbers for puts from the same client and to the same partition key.

Option A is correct as it cannot guarantee the ordering of records across multiple shards.

Option B, C and D are incorrect becauseKinesis Data Streams can order records on a single shard.

Each data record has a sequence number that is unique within its shard.

Related questions

0 votes
asked Apr 27 in AWS by DavidAnderson
0 votes
asked Apr 29 in AWS by DavidAnderson
...