Depth Checklist and Self-Test
Depth Checklist
| # | Topic | What you should be able to do |
|---|---|---|
| 1 | Log abstraction | Explain the commit log and why it enables replay. Distinguish log from queue. |
| 2 | Partitioning | Derive partition count from throughput requirements. |
| 3 | Durability triangle | Explain acks / min.insync.replicas / replication.factor interaction. |
| 4 | Consumer groups | Configure three independent consumer groups with different consistency needs. |
| 5 | EOS scope | Define exactly where Kafka EOS ends and application responsibility begins. |
| 6 | Broker failover | Walk through a single broker failure including timing, state transitions, and recovery. |
| 7 | EOS failure modes | Identify two scenarios where EOS guarantees break. |
| 8 | Unclean election | Explain unclean leader election and when you'd ever consider enabling it. |
| 9 | Zero-copy | Describe the 4-copy vs. sendfile() path and what TLS does to it. |
| 10 | Cooperative rebalance | Contrast eager vs. cooperative rebalancing — who stops, for how long. |
| 11 | Geo-distributed | Explain 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