What is the primary responsibility of the controller broker in a Kafka cluster?
Think about which broker coordinates cluster-wide decisions.
The controller broker is responsible for managing partition leader elections and updating cluster metadata to keep the cluster consistent.
Given the following Kafka controller election log snippet, what will be the output message indicating the new controller?
INFO Controller 2 is now the leader for the cluster
Look for the message that confirms the new controller leader.
The log message confirms that broker 2 has become the new controller leader.
Which of the following log entries indicates a controller broker failure due to session timeout?
Look for a message about session expiration or failure.
A session expiration error indicates the controller broker lost its leadership and triggers a new election.
Which of the following is the correct syntax to configure a Kafka broker as a controller candidate in the server.properties file?
Check the official Kafka configuration property for controller quorum voters.
The correct property is controller.quorum.voters with format id@host:port for each voter.
In a Kafka cluster with three brokers (1, 2, 3), broker 1 is the current controller. Broker 1 crashes unexpectedly. What is the expected sequence of events for controller failover?
Consider how Kafka handles controller failover with leader election.
When the controller broker fails, another broker detects the failure and triggers a leader election to select a new controller.