Bird
0
0

Why does Kafka store offsets in a compacted internal topic instead of Zookeeper in newer versions?

hard📝 Conceptual Q10 of 15
Kafka - Consumers
Why does Kafka store offsets in a compacted internal topic instead of Zookeeper in newer versions?
ATo improve scalability and reduce Zookeeper dependency
BBecause Zookeeper cannot store offsets
CTo encrypt offsets for security
DTo allow producers to manage offsets
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka's offset storage evolution

    Kafka moved offset storage from Zookeeper to a compacted internal topic to improve scalability and reduce reliance on Zookeeper.
  2. Step 2: Eliminate incorrect reasons

    Zookeeper can store data but is less scalable; offsets are not encrypted by this change; producers do not manage offsets.
  3. Final Answer:

    To improve scalability and reduce Zookeeper dependency -> Option A
  4. Quick 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 offsets
  • Assuming offsets are encrypted by this change
  • Believing producers manage offsets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes