Kafka - ConsumersWhy does Kafka store offsets in a compacted internal topic instead of Zookeeper in newer versions?ATo improve scalability and reduce Zookeeper dependencyBBecause Zookeeper cannot store offsetsCTo encrypt offsets for securityDTo allow producers to manage offsetsCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand Kafka's offset storage evolutionKafka moved offset storage from Zookeeper to a compacted internal topic to improve scalability and reduce reliance on Zookeeper.Step 2: Eliminate incorrect reasonsZookeeper can store data but is less scalable; offsets are not encrypted by this change; producers do not manage offsets.Final Answer:To improve scalability and reduce Zookeeper dependency -> Option AQuick Check:Offset storage moved for scalability and less Zookeeper use [OK]Quick Trick: Offsets moved to Kafka topic for scalability, not encryption [OK]Common Mistakes:Thinking Zookeeper cannot store offsetsAssuming offsets are encrypted by this changeBelieving producers manage offsets
Master "Consumers" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Consumers - Deserialization - Quiz 12easy Consumers - Consumer API basics - Quiz 15hard Kafka Cluster Architecture - Broker nodes - Quiz 13medium Kafka Cluster Architecture - Controller broker - Quiz 3easy Kafka Cluster Architecture - Replication factor - Quiz 13medium Producers - Compression (gzip, snappy, lz4) - Quiz 14medium Producers - Producer retries and idempotency - Quiz 15hard Producers - Message key and value - Quiz 8hard Topics and Partitions - Why topics organize messages - Quiz 12easy Topics and Partitions - Partition key and routing - Quiz 15hard