Chapter 7 Flume and Kafka Questions Answers
Chapter 7 Flume and Kafka Questions Answers
True/False Questions:
1. Flume supports both driver-based and polling sources for data collection.
○ True/False
2. Kafka’s partitioning ensures that messages are consumed sequentially across all
partitions.
○ True/False (Each partition maintains its own order, but there is no guarantee
across partitions.)
3. In Kafka, a message can be consumed by more than one consumer if they are in
different consumer groups.
○ True/False
4. Flume channels are fully transactional, meaning data is either completely
processed or rolled back.
○ True/False
5. Kafka’s data replication only involves copying data from one partition to another.
○ True/False (Replication is done across brokers to ensure fault tolerance.)
6. A Flume agent can have multiple sources but only one sink.
○ True/False (Flume agents can have multiple sources and sinks.)
7. Kafka consumers pull messages from brokers, while producers push messages to
brokers.
○ True/False
8. Flume can only send log data to HDFS and HBase.
○ True/False (Flume can send data to various sinks including Kafka, Solr, and
others.)
9. In Kafka, message offsets are automatically reset when a consumer joins a new
group.
○ True/False (Offsets can be tracked and stored to avoid resetting.)
10. Flume's file channel offers higher performance but less reliability than the
memory channel.
○ True/False (The memory channel offers higher performance but less reliability.)
11. Kafka topics are used to categorize messages within the cluster.
○ True/False
12. Flume can filter and clean data during its transmission from source to sink.
○ True/False
13. Kafka’s leader-follower model ensures that consumers only interact with the
leader replica.
○ True/False
14. In Flume, an interceptor modifies data based on custom configurations before
sending it to the sink.
○ True/False
15. Kafka can guarantee exactly-once processing for all messages in all scenarios.
○ True/False (Exactly-once processing is complex and may not be guaranteed in
all cases.)