Kafka — Technical Interview Flashcards

1. Fundamentals


2. Partitions & Ordering


3. Producers


4. Consumers & Consumer Groups


5. Reliability, Replication & ISR


6. Storage & Kafka Internals


7. Consumer Lag & Troubleshooting


8. Consumer Configuration


9. Error Handling, Retry & DLT


10. Kafka Connect & Kafka Streams


11. Kafka vs Alternatives


12. Schema & Event Contracts


13. Kafka + Database Consistency


14. Exactly-Once & Idempotency


15. Kafka Architecture & High Throughput


16. Security


17. ZooKeeper vs KRaft


18. Production Troubleshooting


19. 15-Year Experience — Architecture Scenarios

Scenario: Order Processing


Scenario: Payment Processing


Scenario: Consumer Scaling


Scenario: Hot Customer


20. Production Incident Scenarios


21. 15-Year Experience — War Stories


22. Multi-Region & Disaster Recovery


23. Architect Rapid Fire


24. Interviewer Follow-up Traps


25. Kafka Mental Model

                         ┌───────────────┐
                         │    Producer   │
                         └───────┬───────┘
                                 │
                                 ▼
                         ┌───────────────┐
                         │     Topic     │
                         └───────┬───────┘
                                 │
               ┌─────────────────┼─────────────────┐
               ▼                 ▼                 ▼
          Partition 0       Partition 1       Partition 2
               │                 │                 │
               ▼                 ▼                 ▼
          Consumer A        Consumer B        Consumer C
               │                 │                 │
               └─────────────────┼─────────────────┘
                                 ▼
                          Business Logic
                                 │
                      ┌──────────┴──────────┐
                      ▼                     ▼
                     DB                    API


Key          → partition affinity
Partition    → ordering + parallelism boundary
Offset       → consumer position
Group        → independent consumption + scaling
Replica      → fault tolerance
ISR          → healthy/caught-up replicas
Retention    → how long events remain available
Compaction   → latest state per key
Lag          → consumer falling behind
Idempotency  → safe duplicate/replay processing
DLT          → failed/poison records

For your 15-year Architect / Engineering Manager target, don’t memorize these in document order. I’d study them in this sequence:

Topic
  │
  ├── Partition
  │     ├── Key
  │     ├── Ordering
  │     └── Parallelism
  │
  ├── Producer
  │     ├── acks
  │     ├── batching
  │     ├── retries
  │     └── idempotence
  │
  ├── Consumer
  │     ├── group
  │     ├── offset
  │     ├── rebalance
  │     └── lag
  │
  ├── Reliability
  │     ├── replication
  │     ├── leader
  │     ├── follower
  │     └── ISR
  │
  ├── Processing
  │     ├── retry
  │     ├── DLT
  │     ├── idempotency
  │     └── exactly-once
  │
  ├── Integration
  │     ├── Connect
  │     ├── Streams
  │     └── Schema Registry
  │
  └── Architecture
        ├── Kafka vs REST
        ├── Kafka vs RabbitMQ
        ├── DB consistency
        ├── Outbox
        ├── Multi-region
        └── Production incidents

The most important interview transition is:

“I know what Kafka is” → “I can predict what will happen when this Kafka system fails.”

That is the level I’d target for your senior/architect interviews.