Kafka - Cluster ArchitectureIn a Kafka cluster, a broker is down and some partitions have no leader. What is a common cause?AReplication factor set to 1BToo many brokers availableCInsufficient in-sync replicas to elect a new leaderDTopic has zero partitionsCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand leader election in KafkaLeaders are elected from in-sync replicas (ISRs).Step 2: Analyze broker down effectIf ISRs are insufficient, no leader can be elected for partitions.Final Answer:Insufficient in-sync replicas to elect a new leader -> Option CQuick Check:Leader election needs enough ISRs [OK]Quick Trick: Leader election requires enough in-sync replicas [OK]Common Mistakes:Ignoring ISR countThinking replication factor 1 causes leader lossAssuming too many brokers cause this
Master "Cluster Architecture" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Consumer Groups - Rebalancing behavior - Quiz 1easy Consumer Groups - Partition assignment - Quiz 4medium Consumer Groups - Group coordinator - Quiz 4medium Consumers - Auto-commit vs manual commit - Quiz 9hard Kafka Basics and Event Streaming - Why Kafka exists - Quiz 13medium Producers - Compression (gzip, snappy, lz4) - Quiz 15hard Producers - Why producers publish data - Quiz 7medium Topics and Partitions - Topic creation - Quiz 6medium Topics and Partitions - Partition key and routing - Quiz 1easy Topics and Partitions - Why topics organize messages - Quiz 2easy