Depth Checklist and Self-Test

Depth Checklist

#TopicWhat you should be able to do
1Log abstractionExplain the commit log and why it enables replay. Distinguish log from queue.
2PartitioningDerive partition count from throughput requirements.
3Durability triangleExplain acks / min.insync.replicas / replication.factor interaction.
4Consumer groupsConfigure three independent consumer groups with different consistency needs.
5EOS scopeDefine exactly where Kafka EOS ends and application responsibility begins.
6Broker failoverWalk through a single broker failure including timing, state transitions, and recovery.
7EOS failure modesIdentify two scenarios where EOS guarantees break.
8Unclean electionExplain unclean leader election and when you'd ever consider enabling it.
9Zero-copyDescribe the 4-copy vs. sendfile() path and what TLS does to it.
10Cooperative rebalanceContrast eager vs. cooperative rebalancing — who stops, for how long.
11Geo-distributedExplain LWW vs. vector clocks, and why you can't have fast + consistent + simple.

Self-Test

Q1: Ack → Crash — Is the message durable?

A producer gets an ack with acks=all. The leader crashes 1ms later. Is the message durable? Would it appear for a read_committed consumer?

Q2: 50-consumer group, 35s GC pause

You have a 50-consumer group using eager rebalancing. One consumer's JVM GC pauses for 35 seconds, exceeding session.timeout.ms=30s. How many consumers stop processing?

Q3: Coordinator crash after PREPARE_COMMIT

A transactional coordinator writes PREPARE_COMMIT to __transaction_state then crashes before writing any COMMIT markers. What happens?

Q4: TLS CPU spike

You enable SSL on your Kafka cluster. Broker CPU spikes from 20% to 70% at the same throughput. What changed?

Q5: Double broker crash with min.isr=2

With min.insync.replicas=2 and replication.factor=3, B1 (leader) and B2 (ISR) both crash. B3 is out of ISR. What are your options?

Sources: Jay Kreps' "The Log" essay (LinkedIn Engineering, Dec 2013), Kafka documentation, LinkedIn engineering blog