Q42 — AWS DVA-C02 Ch.1
Question 42 of 100 | ← Chapter 1
An application uses Amazon Kinesis Data Streams to ingest and process large volumes of data record streams in real time. Amazon EC2 instances consume and process data from Kinesis data stream shards using the Amazon Kinesis Client Library (KCL). The application handles failure scenarios gracefully and does not require standby workers. The application reports that a specific shard is receiving data at a higher-than-expected rate. To accommodate changes in the data stream rate, the 'hot' shard is resharded. Assuming the initial number of shards in the Kinesis data stream is 4, and after resharding the number increases to 6, what is the maximum number of EC2 instances that can be deployed to process data from all shards?
- A. 12
- B. 6 ✓
- C. 4
- D. 1
Correct Answer: B. 6
Explanation
In Amazon Kinesis Data Streams, each shard’s data can be processed by one or more consumers (e.g., EC2 instances), but each consumer instance processes data from only one shard at a time. The question states there are initially 4 shards, increasing to 6 after resharding. Since each shard requires at least one consumer instance to process its data, and no standby workers are needed (i.e., no redundant instances), the maximum number of EC2 instances that can be deployed equals the number of shards after resharding — i.e., 6. Therefore, the answer is B. 【Lantern Certification provided by: swufelp1999】