exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 41 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 41
Topic #: 1
[All AWS Certified Developer Associate Questions]

An application uses Amazon Kinesis Data Streams to ingest and process large streams of data records in real time. Amazon EC2 instances consume and process the data from the shards of the Kinesis data stream by using Amazon Kinesis Client Library (KCL). The application handles the failure scenarios and does not require standby workers. The application reports that a specific shard is receiving more data than expected. To adapt to the changes in the rate of data flow, the
`hot` shard is resharded.
Assuming that the initial number of shards in the Kinesis data stream is 4, and after resharding the number of shards increased to 6, what is the maximum number of EC2 instances that can be deployed to process data from all the shards?

  • A. 12
  • B. 6
  • C. 4
  • D. 1
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DJTau
Highly Voted 3 years, 7 months ago
Answer = B Typically, when you use the KCL, you should ensure that the number of instances does not exceed the number of shards (except for failure standby purposes). Each shard is processed by exactly one KCL worker and has exactly one corresponding record processor, so you never need multiple instances to process one shard. However, one worker can process any number of shards, so it's fine if the number of shards exceeds the number of instances. https://docs.aws.amazon.com/streams/latest/dev/kinesis-record-processor-scaling.html
upvoted 47 times
cheenu
3 years, 7 months ago
Based on same link - Data existing before sharding is processed first. Though resharded, the original shards limit is 4. You can't exceed 4 instances until all original data is processed.
upvoted 2 times
alexaws1232312321_
2 years, 8 months ago
It's not mentioned that the shardsplitting happened while the data was being processed. The correct answer is still B
upvoted 2 times
...
...
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: B
B) Correct Initially, with 4 shards, you could have a maximum of 4 EC2 instances processing the data. After resharding and increasing the number of shards to 6, the maximum number of EC2 instances that can be deployed to process the data increases to 6.
upvoted 1 times
...
AsmaZoheb
1 year, 3 months ago
Selected Answer: B
for sure
upvoted 1 times
...
Lucas_Luke
1 year, 6 months ago
In the scenario described in the question, the initial number of shards in the Kinesis data stream is 4. After resharding, the number of shards is increased to 6. Therefore, the maximum number of EC2 instances that you can deploy to process data from all the shards is 6.
upvoted 2 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: B
The correct answer is B: the number of instances should not exceed the number of shard
upvoted 1 times
...
peterpain
1 year, 11 months ago
Selected Answer: B
The number of workers should not be greater than that of shards
upvoted 1 times
...
JP_PA
3 years, 2 months ago
Selected Answer: B
ANS: B
upvoted 1 times
...
leliodesouza
3 years, 4 months ago
Selected Answer: B
Answer: B
upvoted 4 times
...
cynthiacy
3 years, 5 months ago
The answer should be B.
upvoted 4 times
...
shruthir
3 years, 6 months ago
ANS: B Typically, when you use the KCL, you should ensure that the number of instances does not exceed the number of shards (except for failure standby purposes). Each shard is processed by exactly one KCL worker and has exactly one corresponding record processor, so you never need multiple instances to process one shard. However, one worker can process any number of shards, so it's fine if the number of shards exceeds the number of instances.
upvoted 2 times
...
VAG1595
3 years, 6 months ago
Answer: B
upvoted 2 times
...
wils3
3 years, 6 months ago
Ans : B
upvoted 2 times
...
shruthir
3 years, 6 months ago
I would say B and C both justify the scenario but the question is : what is the MAXIMUM number of EC2 instances that can be deployed to process data from all the shards? in this case answer would be 6 Shards that is B
upvoted 2 times
...
MuppiralaShravan
3 years, 6 months ago
The answer is B, Explanation: As the question asks about the maximum no of consumers. So it is not necessary to increase the ec2 instances upon re-sharding. but for performance you can do that
upvoted 2 times
...
vjt
3 years, 6 months ago
B. explanation is already there below.
upvoted 1 times
...
Chinta
3 years, 6 months ago
B is the Correct Answer ,no.of shards =no.of consumer
upvoted 1 times
...
saeidp
3 years, 6 months ago
B is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago