Bird
0
0

You want to migrate a Kafka cluster from ZooKeeper mode to KRaft mode. Which of the following steps is essential for a successful migration?

hard📝 Application Q15 of 15
Kafka - Cluster Architecture
You want to migrate a Kafka cluster from ZooKeeper mode to KRaft mode. Which of the following steps is essential for a successful migration?
AConfigure 'process.roles' and 'controller.quorum.voters' and migrate metadata to KRaft
BRemove all brokers and restart ZooKeeper only
CDisable KRaft and keep using ZooKeeper indefinitely
DSet 'zookeeper.connect' to empty string and restart brokers
Step-by-Step Solution
Solution:
  1. Step 1: Understand migration requirements

    Moving to KRaft requires configuring roles and controller quorum voters and migrating metadata from ZooKeeper.
  2. Step 2: Eliminate incorrect options

    The other options do not perform a proper migration to KRaft or incorrectly suggest keeping or modifying ZooKeeper.
  3. Final Answer:

    Configure 'process.roles' and 'controller.quorum.voters' and migrate metadata to KRaft -> Option A
  4. Quick Check:

    Migration needs roles, quorum, and metadata move [OK]
Quick Trick: Set roles, quorum, migrate metadata for KRaft migration [OK]
Common Mistakes:
  • Skipping metadata migration step
  • Trying to run ZooKeeper and KRaft simultaneously
  • Misconfiguring controller quorum voters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes