nerdexam
Confluent

CCAAK · Question #51

Your Kafka cluster has four brokers. The topic t1 on the cluster has two partitions, and it has a replication factor of three. You create a Consumer Group with four consumers, which subscribes to…

The correct answer is A. One. In a Kafka cluster, only one broker acts as the Controller at any given time. The Controller is responsible for managing cluster metadata, such as partition leadership and broker status. Even if the cluster has multiple brokers (in this case, four), only one is elected as the…

Managing Brokers and Clusters

Question

Your Kafka cluster has four brokers. The topic t1 on the cluster has two partitions, and it has a replication factor of three. You create a Consumer Group with four consumers, which subscribes to t1. In the scenario above, how many Controllers are in the Kafka cluster?

Options

  • AOne
  • BTwo
  • CThree
  • DFour

How the community answered

(57 responses)
  • A
    77% (44)
  • B
    7% (4)
  • C
    14% (8)
  • D
    2% (1)

Explanation

In a Kafka cluster, only one broker acts as the Controller at any given time. The Controller is responsible for managing cluster metadata, such as partition leadership and broker status. Even if the cluster has multiple brokers (in this case, four), only one is elected as the Controller, and others serve as regular brokers. If the current Controller fails, another broker is automatically elected to take its place.

Topics

#controller#single controller#Kafka cluster#broker roles

Community Discussion

No community discussion yet for this question.

Full CCAAK Practice