Kafka / Consumer Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

18 Kafka / Consumer interview questions from Amazon, General, Meta, Zomato, Razorpay, Stripe, Netflix and more. Real questions from Technical, System Design, and HR rounds.

18 questions
Companies: Amazon, General, Meta, Zomato…

All Kafka / Consumer Questions

General Hard Screening round 4-8 years

How does Kafka guarantee message durability? What configuration ensures messages are not lost even if a broker crashes mid-write?

↑ 74 upvotes · 52 engineers asked this · SDE2
General Hard Scenario round 3-7 years

Kafka consumer is falling behind (lag growing). Processing is in a tight loop with no I/O. How do you increase throughput?

↑ 73 upvotes · 51 engineers asked this · SDE2
General Hard System Design round 4-8 years

You need to process Kafka messages in exactly the order they were produced for each user, but process different users in parallel. How do you configure this?

↑ 72 upvotes · 50 engineers asked this · SDE2
General Medium Screening round 2-5 years

Your Kafka topic has 10 partitions. You scale your consumer group from 10 to 20 instances. What happens?

↑ 71 upvotes · 49 engineers asked this · SDE2
General Hard Screening round 3-7 years

Explain Kafka's consumer group rebalancing. What triggers it and what are the performance implications?

↑ 70 upvotes · 48 engineers asked this · SDE2
General Hard Scenario round 4-7 years

You're consuming from a Kafka topic with 50 million messages backlog. Your consumer needs to catch up without overwhelming your database. How do you design the catch-up strategy?

↑ 59 upvotes · 7 engineers asked this · SDE2
Amazon Hard Screening round 5-9 years

You need Kafka to guarantee exactly-once message processing from producer to consumer, including writing to a database. Explain what you need to configure at each layer.

↑ 56 upvotes · 4 engineers asked this · Staff
Amazon Hard Scenario round 4-8 years

Your Kafka consumer group has 10 consumers and 10 partitions. One consumer is slower than others and keeps getting rebalances, causing other consumers to pause processing. How do you fix this?

↑ 55 upvotes · 3 engineers asked this · SDE2
Amazon Hard Screening round 4-7 years

What is Kafka log compaction and when should you use it?

↑ 34 upvotes · 32 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

How does Kafka handle message ordering? Can you guarantee order across a topic with multiple partitions?

↑ 33 upvotes · 31 engineers asked this · SDE2
Amazon Hard Screening round 3-7 years

Explain Kafka's message delivery guarantees: at-most-once, at-least-once, exactly-once. How does each affect your consumer design?

↑ 32 upvotes · 30 engineers asked this · SDE2
Amazon Hard Scenario round 3-6 years

Your Kafka consumer is processing messages slowly. Messages pile up and consumer lag grows. How do you fix this?

↑ 31 upvotes · 29 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

Explain Kafka consumer groups and how they enable parallelism. What happens if you have more consumers than partitions?

↑ 30 upvotes · 28 engineers asked this · SDE2
Razorpay Medium Technical round 3-6 yearsKafka

Kafka guarantees message order within a partition but not across partitions. For a payments system, why does this matter, and how would you key messages to preserve per-account ordering?

↑ 24 upvotes · 14 engineers asked this · SDE2
Meta Hard Technical round 3-6 yearsKafka

You have a Kafka topic with 6 partitions and a consumer group with 10 consumer instances. What happens to the 4 extra consumers, and why is over-provisioning consumers like this a mistake?

↑ 23 upvotes · 12 engineers asked this · Senior SDE
Stripe Hard Technical round 3-7 yearsKafka

A Kafka consumer processing payment events crashes and restarts, re-reading the last uncommitted batch. How do you make the payment-processing logic itself idempotent, not just rely on Kafka?

↑ 22 upvotes · 13 engineers asked this · Senior SDE
Netflix Medium Technical round 3-6 yearsKafka

Kafka topics have a retention period, but consumer offsets also have their own retention. What happens if a consumer group is offline longer than the offset retention period?

↑ 20 upvotes · 11 engineers asked this · Senior SDE
Zomato Medium Technical round 2-5 yearsKafka

Explain the difference between at-most-once, at-least-once, and exactly-once delivery semantics in Kafka. Which one requires the consumer to handle duplicate processing?

↑ 19 upvotes · 10 engineers asked this · SDE2

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

Same topic at specific companies

Amazon Kafka / Consumer General Kafka / Consumer Meta Kafka / Consumer Zomato Kafka / Consumer Razorpay Kafka / Consumer Stripe Kafka / Consumer Netflix Kafka / Consumer

Related topics

DSA / Arrays System Design DSA / Trees DSA / Graphs Behavioral Testing Domain DevOps API Testing DSA / Hashmaps GCP / Real-time Data Java / Pub-Sub React / Performance Node.js / Memory SQL / Query Optimization Python / Async AWS / Lambda Microservices / Saga Pattern TypeScript / Type System MongoDB / Indexing Security / SQL Injection Performance / Latency Tail Redis / Cache Stampede Elasticsearch / Cluster Health GraphQL / Security Data Engineering / Exactly Once Snowflake / Architecture PySpark / Core Concepts Airflow / Scheduling Web / WebAssembly Debugging / Production JavaScript / V8 Engine

Frequently asked questions

How does Kafka guarantee message durability? What configuration ensures messages are not lost even if a broker crashes mid-write?
How does Kafka guarantee message durability? What configuration ensures messages are not lost even if a broker crashes mid-write?
Kafka consumer is falling behind (lag growing). Processing is in a tight loop with no I/O. How do you increase throughput?
Kafka consumer is falling behind (lag growing). Processing is in a tight loop with no I/O. How do you increase throughput?
You need to process Kafka messages in exactly the order they were produced for each user, but process different users in parallel. How do you configure this?
You need to process Kafka messages in exactly the order they were produced for each user, but process different users in parallel. How do you configure this?
Your Kafka topic has 10 partitions. You scale your consumer group from 10 to 20 instances. What happens?
Your Kafka topic has 10 partitions. You scale your consumer group from 10 to 20 instances. What happens?
Explain Kafka's consumer group rebalancing. What triggers it and what are the performance implications?
Explain Kafka's consumer group rebalancing. What triggers it and what are the performance implications?