Topic 1 Question 456
An application ingests data from an Amazon Kinesis data stream. The shards in the data stream are set for normal traffic.
During tests for peak traffic, the application ingests data slowly. A developer needs to adjust the data stream to handle the peak traffic.
What should the developer do to meet this requirement MOST cost-effectively?
Install the Kinesis Producer Library (KPL) to ingest data into the data stream.
Switch to on-demand capacity mode for the data stream. Specify a partition key when writing data to the data stream.
Decrease the amount of time that data is kept in the data stream by using the DecreaseStreamRetentionPeriod API operation.
Increase the shard count in the data stream by using the UpdateShardCount API operation.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: D
aws kinesis update-shard-count
--stream-name my-data-stream
--target-shard-count 4
--scaling-type UNIFORM_SCALING👍 2albert_kuo2024/11/18 - 正解だと思う選択肢: B
On-demand - data streams with an on-demand mode require no capacity planning and automatically scale to handle gigabytes of write and read throughput per minute. With the on-demand mode, Kinesis Data Streams automatically manages the shards in order to provide the necessary throughput.
👍 1ShakthiGCP2024/12/12 - 正解だと思う選択肢: D
Comparison of B and D: B (On-Demand Mode) is better when:
Traffic patterns are highly variable or unpredictable. Automatic scaling is preferred to minimize manual intervention. The workload is intermittent, making On-Demand pricing more cost-efficient. D (Manually Adjusting Shard Count) is better when:
The application has predictable traffic peaks and troughs. The goal is to manually control scaling and costs in provisioned mode. Immediate scaling is required to meet throughput needs, as On-Demand Mode may introduce a slight delay for shard scaling. Conclusion: The correct solution depends on the specific requirements mentioned in the question. If the question highlights unpredictable traffic, On-Demand Mode (B) is likely the better choice. However, if the traffic peaks are predictable and manual control is desired, increasing shards (D) is the optimal solution.
👍 1YUICH2024/12/22
シャッフルモード