Back to Blog

Kafka Engineer Interview Questions 2026

Big DataHiringIT Hiring

Last updated: November 26, 2026

By Robert Ardell, Co-Founder and Strategic Advisor, KORE1

Kafka engineer interview questions worth asking in 2026 put a lag report, a consumer loop, or a topic’s settings on the table, then ask which order gets lost, charged twice, or stuck. Definitions get ten minutes. The rest of the hour belongs to consequences.

Here’s a made-up case. An event-ticketing company in Tempe, forty or so engineers, one Kafka cluster that carries every purchase from checkout to the service that emails the ticket. They hire a senior engineer who is excellent in the room. He explains partitions, consumer groups, offsets, the in-sync replica set, and the difference between compaction and deletion without pausing once, and two people on the panel privately decide he knows more about Kafka than they do. They’re probably right. He gets the offer that week.

A month later the email vendor has a slow afternoon, the kind that would never make anybody’s incident list if the code on the other side of it could shrug it off. One fan receives the same confirmation eleven times in about an hour. So do several hundred other people.

Nothing crashed. Every dashboard that watches brokers stayed green, because the brokers were fine. The consumer was taking longer to finish a batch than Kafka was willing to wait, so it got dropped from its group and its partitions went to another instance, which read the same batch, sent the same emails at the same slow pace, and got dropped too. Round and round. Two settings and one multiplication would have predicted it. Nobody in the interview had asked him to multiply.

So that’s what I’d change. Not the people on the panel, and not even most of the questions, just the thing sitting on the table while they ask, which should be something the candidate has to read, count, and argue with. Definitions can be learned in a weekend. Consequences can’t, or at least not nearly as often.

You should know what I get out of this. KORE1’s Kafka engineer staffing desk is paid when a client hires an engineer we found, so read the page as coming from an interested party. I also recruit rather than run clusters, and for that reason each answer key below leans on the Apache Kafka documentation, linked at the spot where it matters, although you should still put one engineer who has carried a Kafka pager in the room to hear the answers. Take the exercises and use them without us. That’s fine.

Neighboring pages cover the rest. How to scope the role, how to choose between a cluster operator and an application developer, and which spoken scenario questions to ask are all covered in our guide to hiring Kafka engineers, so I won’t repeat them here. Pay by source and level is in the Kafka engineer salary guide. The posting itself is covered by our Kafka engineer job description template. For the pipelines around the topics, use our data engineer interview questions.

Ten Minutes of Kafka Fundamentals

A Kafka engineer interview tests whether a candidate can predict what brokers, producers, and consumers will do when something slows down, fails, or changes. The strong signal is a specific consequence, such as which records repeat or vanish, followed by the setting that controls it. A definition alone proves little.

Ask these first. Move quickly. The middle column is written so a panelist who has never run Kafka can tell a good answer from a confident one.

AskA passing answer saysWarning sign
What does a partition guarantee?Order inside that partition and nowhere else“Kafka keeps messages in order”
12 partitions, 15 consumers in one group. What happens?Three consumers sit idle“It goes faster”
What does acks=all wait for?The replicas currently in sync, which may be fewer than assigned“All the replicas”
What is a committed offset?The group’s saved position, where a restart picks up“The last message that was processed,” said with certainty
When is a topic compacted instead of deleted by age?When consumers need the latest value for each key“To save disk”
Does exactly-once cover your database?No, not without help from the database side“Yes, we turned it on”

I wouldn’t fail anybody for one miss here. People blank. Two is a pattern, though, and all six right tells you only that they prepared, which every serious applicant did, probably from the same dozen question lists you’d find if you typed the title into a search bar tonight.

Exercise One. A Lag Report With One Bad Partition

Print this. It’s the output of kafka-consumer-groups.sh --describe for a made-up fulfillment service, with a few columns trimmed, taken at 2:10 p.m. Six consumers share a topic with 12 partitions.

Six white bowls in a row with one overflowing with wooden beads, a picture of Kafka consumer lag piling up on a single hot partition
GROUP fulfillment   TOPIC orders.placed   (14:10)
PARTITION  CURRENT-OFFSET  LOG-END-OFFSET        LAG  CONSUMER-ID
0               2,911,940       2,912,020         80  consumer-1
1               2,874,410       2,874,455         45  consumer-1
2               2,930,118       2,930,230        112  consumer-2
3               2,902,775       2,902,835         60  consumer-2
4               2,889,001       2,889,096         95  consumer-3
5               2,915,630       2,915,668         38  consumer-3
6               2,897,204       2,897,275         71  consumer-4
7              41,660,000      43,760,000  2,100,000  consumer-4
8               2,921,388       2,921,440         52  consumer-5
9               2,876,540       2,876,644        104  consumer-5
10              2,908,877       2,908,943         66  consumer-6
11              2,893,112       2,893,201         89  consumer-6

Partition 7 at 14:00:  current 41,300,000   log end 43,160,000
Every other partition: about 50 new records a second. Rates are steady.

Then add one sentence out loud. “The team wants to go from six consumers to twelve. What happens to the 2,100,000?”

Wait. Let them read.

The arithmetic is the exercise. In ten minutes partition 7 received 600,000 records, which is 1,000 a second, and its consumer got through 360,000, which is 600 a second. Lag grew by 240,000, or 400 every second. The other partitions are taking about 50 records a second each. Consumer-4 handles partitions 6 and 7, so its total capacity is about 650 a second.

Go to twelve consumers and each gets one partition. The owner of partition 7 no longer splits its time, so it can give all 650 to the hot one. Lag now grows by 350 a second instead of 400. Six new instances. Fifty records a second.

A strong candidate sees that without much prompting and then asks the question that matters more than the consumer count, which is what the producer uses as the record key on this topic and who decided that. If it’s a merchant or seller ID and one seller is having a huge sale, every one of that seller’s orders hashes to the same partition, and no number of consumers will ever split it. Keying by order ID spreads the load, as long as nothing downstream depended on per-seller ordering. Somebody has to check that. The candidate should say who.

Adding partitions is the other tempting answer. It moves future keys around without splitting one hot key, and it breaks something else, which is Exercise Four. Making the handler faster is a better first move. At 1,500 a second against 1,000 arriving, the backlog drains at 500 a second and clears in 70 minutes.

One follow-up separates the senior people. “Retention on this topic is one hour. When do we start losing orders?” The oldest unread record at 2:10 is about 35 minutes old, since 2,100,000 records at 1,000 a second is 2,100 seconds of traffic. Age reaches 60 minutes when lag reaches 3,600,000, and at 400 a second that takes a little over an hour. So not before about 3:12. A very good candidate adds that Kafka deletes whole segments rather than single records, so the real moment of loss depends on when segments happen to roll, and that nobody responsible should build an incident plan around whatever slack that provides.

Exercise Two. The Email That Arrived Eleven Times

Back to Tempe. Hand over the code with the settings written above it.

// enable.auto.commit = false
// max.poll.records and max.poll.interval.ms left at their defaults
consumer.subscribe(List.of("tickets.purchased"));

while (running) {
    ConsumerRecords<String, Order> batch = consumer.poll(Duration.ofSeconds(1));
    for (ConsumerRecord<String, Order> record : batch) {
        mailClient.sendTicket(record.value());   // blocking HTTP call, no timeout set
    }
    consumer.commitSync();
}

Then the scene. The mail call normally takes 120 milliseconds. Today it takes 700. Ask what the customers see.

Two defaults decide it. The consumer configuration reference sets max.poll.records at 500 and max.poll.interval.ms at 300,000, which is five minutes. If the consumer goes longer than that between calls to poll(), it’s treated as failed and its partitions go to someone else.

Mail callFull batch of 500 takesAgainst the 300-second limit
120 ms60 sComfortable
450 ms225 sPasses, with little room
600 ms300 sThe edge
700 ms350 sEvicted before the commit, every time

The commit never lands. The next owner starts at the same offset, sends the same 500 emails, and runs out of time at the same place. Nasty part. A batch is only full when there’s a backlog, and a backlog is what a slow vendor creates, so the failure waits for the worst day to appear.

Listen for the fix in layers. Put a timeout on the HTTP call. Lower max.poll.records, so that 100 records at 700 milliseconds is 70 seconds. Make the send safe to repeat, keyed on the order ID, because redelivery will happen again someday for some other reason. A stronger answer may move the mail calls to a worker pool, pause the partitions while that pool works through what it already holds, keep calling poll() so the group knows the consumer is alive, and commit only the offsets whose sends have finished.

And the shortcut? Raising max.poll.interval.ms to ten minutes only moves the edge from 600 milliseconds to 1.2 seconds. It also means a consumer that is truly stuck holds its partitions twice as long. A candidate who offers it should be able to say that.

Some candidates will bring up the newer rebalance protocol, which became generally available in Kafka 4.0 and which consumers opt into with group.protocol=consumer. Good. It makes rebalances far less disruptive. It doesn’t give this loop any more time to finish.

Push once more. “Would turning on transactions stop the duplicate emails?” No. Kafka can commit records it produces and offsets it consumed as one unit, but the mail vendor isn’t part of that unit. The project’s own page on message delivery semantics says exactly-once for other destination systems generally needs cooperation from them. Here that means an idempotency key the vendor honors, or a record of sends that your code checks first. Neither is free.

Exercise Three. Three Replicas, One Copy

This one looks safe. Three replicas, acks=all, unclean election left off, which is the sort of settings block that gets copied from one topic to the next for years because nobody has ever had a reason to read it twice. That’s why it works.

Three brass hooks with only one holding a key, a picture of a Kafka topic with replication factor three where only one copy of the data exists
topic: payments.captured
replication.factor            = 3
min.insync.replicas           = (never set)
unclean.leader.election.enable = (never set)
producer acks                 = all
traffic                       = 200 records per second

09:00  brokers 2 and 3 fall behind (storage trouble)
09:20  broker 1, the leader, loses its disk

Ask how many copies exist of a payment acknowledged at 9:10.

One. The default for min.insync.replicas is 1. After the two followers lag past the allowed window, 30 seconds by default, the leader drops them from the in-sync set, and acks=all now means all of one. The producer keeps getting success. The application logs look perfect for twenty minutes. At 200 a second, that’s roughly 240,000 payments whose only copy sat on the disk that just died.

The documentation says this plainly in its section on availability and durability guarantees. Acknowledgment happens when the current in-sync replicas have the record, and if only one remains, those writes can be lost.

The usual fix is min.insync.replicas=2. Now writes fail once the in-sync set drops to one, and the producer sees errors at 9:00 instead of a quiet success. Some candidates stop there. The better ones say out loud that you’ve just traded availability for durability, that checkout may now reject payments in the middle of a storage incident, and that somebody who answers for revenue should hear that trade described and agree to it before an engineer changes the setting. I’d count that last part heavily.

Unclean leader election is off by default, so the partition stays offline rather than promoting a stale follower. If broker 1 never comes back, someone has to choose between waiting forever and accepting the loss. Ask who.

For a senior operator, add where the minimum should be set. Eligible Leader Replicas are enabled by default on new clusters starting with 4.1, and the upgrade notes say the broker-level min.insync.replicas value is removed once the feature is on, to be set at the cluster level if needed. An old properties file can mislead you. Check what the cluster reports.

Exercise Four. Somebody Doubled the Partitions

A topic called customer.address is compacted and keyed by customer ID. It had 12 partitions. Last Tuesday someone raised it to 24 to help throughput. A new shipping service now builds its address table by reading the topic from the beginning.

Ask what can go wrong. Then be quiet.

Card catalog with two drawers open, old cards in one and new cards in the other, a picture of one Kafka key split across two partitions after a partition increase

With a hash-based partitioner, the partition is the key’s hash modulo the partition count. Double the count from 12 to 24 and each key either stays where it was or moves up by exactly 12. About half move. The project’s guide to modifying topics warns about it and adds that Kafka will not attempt to redistribute existing data.

Take a customer whose key moved from partition 3 to partition 15 when the count changed. Her old address is still sitting in partition 3, and nothing newer will ever arrive there to push it out, which means compaction keeps it indefinitely. Her new address is in 15, and the shipping service reads both partitions with no ordering between them, so if partition 3 happens to be applied last, the old address wins and a package goes to an apartment she left in the spring.

No error anywhere. None.

The clean repair is usually a new topic created with the partition count you actually want, loaded from the system of record rather than from the damaged topic, with producers and consumers moved over in an order somebody has written down. A strong candidate will also mention that consumers left on auto.offset.reset=latest can skip records written to new partitions before they discover them, and will ask what that setting is on every reader.

There’s a harder version for people who’ve run mixed stacks. The Java producer hashes keys with murmur2. The C library underneath many Python, Go, and .NET clients, librdkafka, defaults to a CRC32-based partitioner. Two services in two languages writing the same key can land it on two different partitions with nobody having changed a partition count at all. I like this question a lot. There isn’t much room to bluff it.

Exercise Five. Forty Workers, Six Partitions

Newest material on the page. It’s also where a resume that stopped learning in 2024 shows, because a candidate who last read about Kafka then will tell you, correctly for that year, that the partition count is the ceiling on how many consumers in a group can do work, and will stop there.

A team renders ticket PDFs from a six-partition topic. One render takes 45 seconds, sometimes 90. With a consumer group only six workers can be active, so 34 of their 40 sit idle and the queue grows. They’ve read that Kafka now has queues. They switch to a share group and change nothing else.

Share groups became production-ready in Kafka 4.2 in February 2026. The design documentation describes consumers that cooperate on the same partitions, can outnumber them, and acknowledge records one at a time. So all 40 can work. On paper, throughput goes from 8 renders a minute to about 53.

Then the defaults arrive.

DefaultValueWhat it does to this team
share.record.lock.duration.ms30 secondsA 45-second render loses its lock and another worker can pick it up
share.delivery.count.limit5 attemptsA slow but healthy job can use up its attempts and stop being delivered
max.poll.records500One worker can lock a large batch it has no chance of finishing in time
share.auto.offset.resetlatestThe new group starts at the end, so the waiting backlog is skipped

That last row is the one I’d expect a candidate to miss. The jobs that were already queued don’t get rendered. They aren’t deleted, just never read by this group. Kafka 4.4 added a way to start a share group from a consumer group’s committed offsets, and a candidate who knows that has been reading release notes this fall. The other route is to set the group’s reset policy to earliest before its first run, which only makes sense if replaying everything the topic still retains is acceptable, and for a job that sends tickets to paying customers it often isn’t.

For the lock, there are two honest answers, and a good candidate offers both before choosing. The group setting can be raised, but the broker caps it at 60 seconds unless group.share.max.record.lock.duration.ms is raised too, so a 90-second render needs a broker change. Or the application switches to explicit acknowledgment and keeps renewing the lock for as long as the render is still running, which means the thread that calls poll() has to stay free while the actual PDF work happens somewhere else. Either way, set share.acquire.mode=record_limit and keep max.poll.records small.

Then ask the question that should come before any of it. Does order matter? The 4.2 upgrade notes suggest share groups for records processed one at a time rather than as part of an ordered stream. PDFs, fine. Account balance updates, no. Not ever.

Poison records are the last follow-up. Kafka 4.4, released in October 2026, added dead-letter queues for share groups. Check your cluster version before you let a candidate promise one.

Three Questions for Whoever Runs the Cluster

Skip these for an application developer. Ask all three of a platform candidate, and expect the first one to take longest, since a migration answer that arrives in thirty seconds with no questions about what’s still connected to the old cluster is usually a recited one.

“We’re on Kafka 3.6 with ZooKeeper. Write the path to 4.4.” No direct jump. The upgrade notes say ZooKeeper clusters have to be migrated to KRaft before they can be upgraded. A solid plan usually moves to 3.9, finishes the migration there, lets the cluster run on KRaft long enough to trust it, and only then goes to 4.x. The candidate should raise Java 17 on the brokers without being asked and should want an inventory of client versions, since 4.0 removed protocol support for very old ones and forgotten services have a way of surfacing during upgrades. Someone who starts by asking which clients still connect has done this, or has watched it go badly.

“Three controllers. One is down for patching and a second one dies.” No majority. The project’s KRaft operations page puts it simply, three controllers tolerate one failure and five tolerate two. Without a quorum the cluster can’t make metadata changes, and that includes electing new partition leaders. Short question. Short answer expected.

“We enabled tiered storage, set retention to 90 days, and the local disks filled anyway. Why?” Because local.retention.ms defaults to -2, which means keep data locally for as long as retention.ms says. The remote copy was made and the local one never left. A good candidate also knows tiered storage doesn’t support compacted topics, and says so before somebody tries.

Which Exercises for Which Seat

Don’t give all five to anyone. An hour holds ten minutes of fundamentals, two exercises at twenty minutes each, and ten minutes for the candidate’s own questions, which you should treat as data.

SeatGive themThe bar
Mid-level application developerOne and TwoFinds the multiplication with a nudge or two
Senior application developerTwo and FourNames the cost of each fix before being asked
Platform or cluster engineerThree, then the three cluster questionsChecks what is configured instead of assuming it
Streaming architectFour and FiveAsks about ordering and ownership first

If the real need is someone to set the event model across many teams, that’s a different loop, closer to our event-driven Kafka architect staffing work. Schema changes deserve their own hour too, and our piece on event schema versioning is a fair source for it.

Score the Questions They Ask Back

Three lines on a sheet. Each interviewer marks them alone, before anyone talks.

  • Did the candidate ask for a number, such as a rate, a duration, or a count, before proposing a fix?
  • When they proposed one, did they say what it would cost or what else it might break?
  • Did they say which setting they’d verify on the real cluster rather than trusting memory or a default?

A candidate who quotes a default slightly wrong and promises to check it is a much smaller problem for you than one who quotes it correctly, with total certainty, and has no idea where anybody would go to confirm it on a running cluster. Versions move. Kafka shipped 4.2 in February and 4.4 in October of this year. Anyone’s memory goes stale.

There’s a predictable way for a panel to get this wrong. The fluent candidate gets the benefit of the doubt on everything, the quiet one who spends four silent minutes multiplying on the back of the printout looks slow by comparison, and the debrief ends up rewarding the wrong person. Tell the room in advance that silence during an exercise is work.

Objections I’d Expect From Your Panel

Our candidate has only used managed Kafka. Is this fair?

Mostly fair, since the lag report, the poll loop, the partition change, and the share group are about client and topic behavior that a managed service doesn’t remove.

Skip the controller question for someone who has never been allowed near a controller. Share groups depend on the version your provider runs, so confirm that first. The replica exercise still counts, and the useful follow-up is what their provider had set for the in-sync minimum. Not knowing is an answer too. Not a good one.

Does ZooKeeper experience still count for anything?

As migration experience, a lot, and as day-to-day operating knowledge, less each month, because Kafka 4.0 removed ZooKeeper mode in March 2025.

Somebody who has moved a production cluster to KRaft is worth hearing out for twenty minutes if you still have that work ahead.

How much Java does this loop need to test?

Enough to read a poll loop and say what blocks it. No more than that for a platform seat.

Application developers who’ll write Kafka Streams need a real coding round on top, and our Java developer interview questions are a good place to start building it. Plenty of teams don’t write Java at all. If your producers are Python or Go, rewrite Exercise Two in that language and keep the numbers. The reasoning carries over, although the client’s defaults may not, and a candidate who points that out unprompted is doing well.

Can a Confluent certification stand in for any of this?

No, though it can justify shortening the warm-up table to two or three rows.

The Confluent certifications show someone studied the platform. They don’t show what that person does with a lag report at 2:10 on a bad afternoon. Our hiring guide treats the administrator credential as a tiebreaker, which seems about right.

What if the candidate disagrees with the answer key?

Let them argue it, then open the documentation together and see who’s right.

Behavior changes between versions, sometimes in ways that flip an answer on this page, and everything here is written against the Kafka 4.4 documentation as it read in late November 2026. A candidate working on 3.7 may describe something different and be correct about 3.7. Ask which version they mean. How they handle being wrong, or being right while you’re wrong, is probably the most useful five minutes of the day, and it’s the part no list of questions can script for you.

Once someone passes, what should the offer look like?

Budget a base of $135,000 to $185,000 for a mid-level engineer and $190,000 to $260,000 for a senior one in 2026.

Those are the ranges in our salary guide for this role, which also puts contract rates at $90 to $130 an hour for mid-level work and $135 to $185 for senior. Public pay pages tend to read lower, and the guide walks through why before you copy one of their numbers into a posting.

Start With the Topic That Carries the Money

Pick it tonight. Run the describe command on its consumer group, look up its replication factor and the in-sync minimum the cluster actually reports for it, and then find the poll loop that reads it and multiply the batch size by your slowest downstream call. You now have three exercises drawn from your own system, and possibly a ticket to file before the interview is even scheduled. It happens.

If you’d like help running the loop or filling the seat, tell our recruiters about the cluster. A dated project such as a KRaft migration often fits contract staffing, while the engineer who’ll own the platform for years is a direct hire. Across IT roles KORE1 averages 17 days to hire, and 92 percent of the people we place are still there a year later. Kafka searches tend to run longer than that average, four to eight weeks when the role is scoped well, so start before the migration date is the thing doing the scoping.