QuizzesBrokers & Clusters — Concept Check
intermediate
kafka

Brokers & Clusters — Concept Check

Questions on Brokers & Clusters. A Kafka cluster is a group of broker nodes; topics are spread across brokers for fault tolerance and throughput, and a controller broker coordinates partition leadership.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Brokers & Clusters — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A Kafka cluster has 5 brokers, and one broker fails. What happens to the partitions that had their leader on the failed broker?

    • AAll partitions lose data until the broker is restored.
    • BAn in-sync replica is elected as the new leader for each partition.
    • CThe controller broker takes over all leadership roles.
    • DThe cluster stops processing requests until the broker is back.
  2. 2.A developer notices that a Kafka topic has a replication factor of 3 and min.insync.replicas set to 2. What does this configuration ensure?

    • AThe topic can tolerate two broker failures without data loss.
    • BAll replicas must acknowledge writes before they are considered successful.
    • CThe topic can tolerate one broker failure without data loss.
    • DWrites are acknowledged by only one replica for faster performance.
  3. 3.In a Kafka cluster using KRaft mode, what is the role of the controller broker?

    • AIt is responsible for data replication across all brokers.
    • BIt manages partition leader elections and cluster membership.
    • CIt only handles producer requests and data storage.
    • DIt stores all topic data and handles consumer requests.
  4. 4.A Kafka topic has 4 partitions and a replication factor of 2. If one broker fails, what is the maximum number of partitions that can lose their leader?

    • A2
    • B0
    • C4
    • D1
  5. 5.A Kafka cluster is experiencing high latency in processing consumer requests. What could be a potential cause?

    • AThe controller broker is not elected, causing a halt in operations.
    • BThe leader broker for partitions is overloaded with requests.
    • CFollowers are not replicating data, leading to inconsistencies.
    • DAll brokers have crashed, halting the cluster.
  6. 6.What happens if a Kafka partition's leader broker fails and there are no in-sync replicas available?

    • AThe partition becomes unavailable until a new leader is elected.
    • BThe controller broker automatically becomes the leader.
    • CAll consumer requests are redirected to another partition.
    • DData is lost permanently for that partition.
  7. 7.A Kafka topic is configured with acks=all and min.insync.replicas=2. What does this guarantee?

    • AWrites are acknowledged by the leader alone, improving performance.
    • BThe leader waits for two ISR members to confirm writes, ensuring durability.
    • CAll replicas must confirm writes, ensuring maximum durability.
    • DOnly one replica needs to confirm writes, reducing latency.
  8. 8.What is the primary benefit of using KRaft mode in a Kafka cluster?

    • AIt increases the number of brokers needed for a quorum.
    • BIt requires fewer resources for data replication.
    • CIt allows brokers to handle more partitions simultaneously.
    • DIt reduces operational complexity by eliminating ZooKeeper.