Bird
0
0

During migration from ZooKeeper to KRaft mode, which step is crucial to preserve Kafka's metadata integrity?

hard📝 Application Q8 of 15
Kafka - Cluster Architecture
During migration from ZooKeeper to KRaft mode, which step is crucial to preserve Kafka's metadata integrity?
ARemove all topic data before migration
BDisable all brokers before starting KRaft controllers
CExport existing metadata and import it into the KRaft metadata log
DChange broker IDs to new unique values
Step-by-Step Solution
Solution:
  1. Step 1: Understand metadata migration

    Kafka metadata must be exported from ZooKeeper and imported into the KRaft metadata log to maintain consistency.
  2. Step 2: Evaluate options

    Export existing metadata and import it into the KRaft metadata log correctly describes the essential step. Disabling brokers (B) or removing data (C) are not sufficient or necessary. Changing broker IDs (D) is unrelated to metadata integrity.
  3. Final Answer:

    Export existing metadata and import it into the KRaft metadata log -> Option C
  4. Quick Check:

    Export/import metadata to preserve integrity [OK]
Quick Trick: Export and import metadata for migration [OK]
Common Mistakes:
  • Skipping metadata export/import
  • Assuming broker shutdown alone is enough
  • Deleting topic data unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes