Enhanced Fan-out for Real-Time Clickstream Analysis with Kinesis Data Streams and DynamoDB

Enhanced Fan-out for Real-Time Clickstream Analysis

Prev Question Next Question

Question

You have created an application for real-time analysis of website clickstreams using Kinesis Data Streams.

There are multiple EC2 instance acting as consumers which process data & save analyzed data in Amazon DynamoDB using Enhanced Fan-out.

Which of the following can be achieved using Enhanced Fan-out for each registered consumer?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer - B.

With Enhanced Fan-out, each registered consumer gets 2MiB/sec throughput per shard & message propagation delay of 70 ms independent of other consumers.

Option A is incorrect as With Enhanced Fan-out, each registered consumer gets 2MiB/sec throughput per shard & not shared for all shards.

Option C is incorrect as With Enhanced Fan-out, each registered consumer gets 2MiB/sec throughput per shard irrespective of the total number of consumers.

Option D is incorrect as With Enhanced Fan-out, each registered consumer gets a message propagation delay of 70 ms independent of other consumers accessing the shard.

For more information on Enhanced Fan-Out with Kinesis Data Streams, refer to the following URL-

https://docs.aws.amazon.com/streams/latest/dev/building-consumers.html

Enhanced Fan-out is a feature of Amazon Kinesis Data Streams that enables multiple consumers to simultaneously read data from a single shard with no duplication of data. This feature increases the number of consumers that can simultaneously read data from a single shard by orders of magnitude when compared to the Classic model.

In this scenario, you have multiple EC2 instances acting as consumers, which process data and save analyzed data in Amazon DynamoDB using Enhanced Fan-out. Enhanced Fan-out allows you to register multiple consumers to read data from a single shard in parallel without compromising performance.

The correct answer is B. Enhanced Fan-out enables registered consumers to receive records with a throughput of up to 2 MiB of data per second per shard with an average message propagation delay of 70 ms for all consumers.

This means that each registered consumer can receive up to 2 MiB of data per second from a single shard. If you have multiple shards, you can register multiple consumers to read data from each shard simultaneously. The average message propagation delay is 70 ms for all consumers, which means that all registered consumers can receive data with the same delay.

Option A is incorrect because it implies that all shards can deliver 2 MiB of data per second to all consumers, which is not true. Option C is incorrect because it implies that the total throughput of data is shared between all consumers, which is not true. Option D is incorrect because it suggests that message propagation delay surges based on the number of consumers paralleling accessing the shard, which is not true.

In conclusion, Enhanced Fan-out is a powerful feature of Amazon Kinesis Data Streams that allows you to register multiple consumers to read data from a single shard simultaneously without compromising performance.