Lesson 17 · Senior Kafka practice
Senior Kafka interview questions
High-signal Kafka questions about ordering, lag, schema evolution, retries, and design judgment — with answer shapes that sound like real backend maturity.
Your win: answer senior Kafka questions with model + trade-off + repo-grounded consequence, not just textbook definitions.
Why these questions feel different
Foundational Kafka questions ask whether you know the model. Senior Kafka questions ask whether you can reason with the model under pressure.
That is why the answer shape matters so much. A strong answer usually names the guarantee, the main trade-off or failure risk, and the repo-grounded consequence. Without that last part, answers often sound memorized instead of owned.
How to get the most out of this page
Do not read the table like a glossary. Cover the right column. Answer out loud first. Then compare your answer shape to the suggested one. The goal is not to recite my wording. The goal is to train your own retrieval rhythm.
Question bank
| Question | Best answer shape |
|---|---|
| Why do partitions matter so much in Kafka? | Because partitions are where ordering lives and where consumer parallelism is actually created. |
| Why doesn’t more partitions automatically solve throughput pain? | Because hotspots can come from key skew; more partitions help only if traffic can really spread without breaking ordering needs. |
| What does consumer lag really tell you? | That offsets are not advancing as fast as records arrive; the next step is diagnosing throughput, churn, slow handlers, or stuck partitions. |
| Why are rebalances expensive? | Because useful work pauses while partitions are reassigned, so unstable members cost group throughput. |
| How do you evolve Kafka event payloads safely without schema registry? | Treat them as distributed contracts; prefer additive, tolerant changes and coordinate breaking changes explicitly. |
| What is the real job of a DLQ? | Preserve failure evidence while allowing the main partition to keep moving. |
Why is AlwaysCommit() a trade-off rather than a bug? | Because it buys liveness by letting partitions progress, but accepts that a failed message may be lost. |
| How do you get exactly-once effect without Kafka transactions? | Use at-least-once delivery plus idempotent application handling so replays do not create extra effect. |
| What should a senior review ask about a Kafka design? | What exact guarantees it really provides, what trade-offs it hides, and where failure handling is still weak. |
| Why is JSON payload flexibility also a risk? | Because the producer and consumer may deploy at different times, so unchecked event-shape changes can break runtime compatibility. |
RequireOne, AlwaysCommit(), the missing DLQ, JSON payloads, priority lanes, and app-level idempotency instead of staying purely generic.Use the playbook and map together
The senior playbook compresses the judgment layer; the repo map gives you the ground truth that makes answers sound real.
Check yourself (from memory)
Q1. A strong senior Kafka answer usually includes…
Sources. Repo Kafka map; curated Kafka resources.