Q43 — AWS SAP-C02 Ch.2

Question 43 of 75 | ← Chapter 2

Q193. 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 erro. Which actions should the solutions architect take to resolve this issue? (Select THREE.)

Correct Answer: A. Reshard the stream to increase the number of shards in the stream, C. Use consumers with the enhanced fan-out feature, E. Use an error retry and exponential backoff mechanism in the consumer logic

Explanation

The error "ReadProvisionedThroughputExceeded" occurs when the maximum number of read operations allowed per second for a shard is exceeded. To address this issue, the following actions can be taken: A: Reshard the stream to increase the number of shards in the stream. This will increase the total number of read operations allowed per second for the stream. C: Use consumers with the enhanced fan-out feature. This feature allows multiple applications to consume data from the same stream simultaneously without being constrained by the read throughput of individual shards. E: Use an error retry and exponential backoff mechanism in the consumer logic. When encountering throttling errors, the consumer should pause for a short period of time and retry the read operation after the interval has elapsed. The retry interval should be increased exponentially for each subsequent failed attempt to avoid overwhelming the stream with too many read requests at once. B: Using the Kinesis Producer Library (KPL) and adjusting the polling frequency may improve producer-side performance but does not directly address the issue of read throughput on the stream. D: Resharding the stream to reduce the number of shards in the stream will decrease the total number of read operations allowed per second for the stream, which may exacerbate the throttling issue. F: Configuring the stream to use dynamic partitioning may lead to uneven distribution of records among shards and does not directly address the issue of read throughput on the stream.