SAP-C02 · Question #261
A company has loT sensors that monitor traffic patterns throughout a large city. The company wants to read and collect data from the sensors and perform aggregations on the data. A solutions…
The correct answer is A. Reshard the stream to increase the number of shards in the stream. C. Use consumers with the enhanced fan-out feature. D. Reshard the stream to reduce the number of shards in the stream. To resolve Kinesis Data Streams consumer throttling and ReadProvisionedThroughputExceeded errors, increase stream shards, utilize enhanced fan-out, and implement error retries with exponential backoff in consumer logic.
Question
A company has loT sensors that monitor traffic patterns throughout a large city. The company wants to read and collect data from the sensors and perform aggregations on the data. A solutions architect designs a solution in which the loT devices are streaming to Amazon Kinesis Data Streams. Several applications are reading from the stream. However, several consumers are experiencing throttling and are periodically encountering a ReadProvisionedThroughputExceeded error. Which actions should the solutions architect take to resolve this issue? (Choose three.)
Options
- AReshard the stream to increase the number of shards in the stream.
- BUse the Kinesis Producer Library (KPL). Adjust the polling frequency.
- CUse consumers with the enhanced fan-out feature.
- DReshard the stream to reduce the number of shards in the stream.
- EUse an error retry and exponential backoff mechanism in the consumer logic.
- FConfigure the stream to use dynamic partitioning.
How the community answered
(25 responses)- A76% (19)
- B12% (3)
- E4% (1)
- F8% (2)
Why each option
To resolve Kinesis Data Streams consumer throttling and `ReadProvisionedThroughputExceeded` errors, increase stream shards, utilize enhanced fan-out, and implement error retries with exponential backoff in consumer logic.
Resharding the stream to increase the number of shards directly increases the total provisioned read throughput of the Kinesis Data Stream, alleviating `ReadProvisionedThroughputExceeded` errors.
The Kinesis Producer Library (KPL) is for producers writing data, not for consumers reading data; adjusting polling frequency might mitigate but doesn't solve underlying throughput issues.
Using consumers with the enhanced fan-out feature provides each consumer with its own dedicated 2 MB/s read throughput per shard, eliminating contention for read capacity and preventing throttling.
Dynamic partitioning relates to how data is written to shards and distributed, not how consumers read data from shards, thus it does not resolve consumer-side read throttling issues.
Concept tested: Kinesis Data Streams scaling, enhanced fan-out, and consumer error handling
Source: https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-dg-concepts.html
Community Discussion
No community discussion yet for this question.