Confluent Certified Administrator for Apache Kafka (CCAAK) — Question 2
A topic ’recurring payments’ is created on a Kafka cluster with three brokers (broker id '0', ’1’, ‘2’) and nine partitions. The 'min.insync replicas' is set to three, and producer is set with 'acks' as 'all'. Kafka Broker with id '0' is down.
Which statement is correct?
Answer options
- A. Consumers can read committed messages from partitions on broker id '1', '2'.
- B. Producers can write messages to all the partitions, because new leaders for the partitions will be elected.
- C. Producers and consumers will have no impact on six of the nine partitions.
- D. Producers will only be able to write messages to the topic where the Leader for the partition is on Broker id '1'.
Correct answer: C
Explanation
The correct answer is C because with 'min.insync replicas' set to three and broker id '0' down, only three partitions can satisfy this requirement, while the rest will be unavailable. Options A and B are incorrect as consumers cannot read and producers cannot write to all partitions due to the failure. Option D is also wrong because producers cannot write to partitions without an available leader.