High Kafka Question 152 of 226

A consumer group has growing lag. How do you debug it in production?

Java Specialist · Speak this in 60–90 seconds · Faridabad & Delhi NCR

PICTURE THIS: HOW TO EXPLAIN IT

IdeaKafka
HowWhat happens inside
Why they askShows real use

Simple meaning

Check processing time versus poll interval, stop-the-world GC, downstream DB pool exhaustion, and whether one hot partition has a skewed key.

1

WHY — Kafka instead of guessing?

Why interviewers care about Kafka:

Kafka questions separate people

who only read docs from people who shipped.

Keep it short, concrete,

and tied to Backend work.

Stay structured

Name the idea, why it exists, then one short example.

Close cleanly

End with when you use it and one common pitfall.

2

STEPS — What happens step by step?

Before you speak the answer, walk the interviewer through these steps:

  1. 1
    Check processing time versus

    poll interval, stop-the-world GC, downstream DB pool exhaustion, and whether one hot partition has a skewed key.

  2. 2
    Scaling consumers only helps

    if you have idle partitions.

  3. 3
    If the handler is

    slow, fix the handler or increase partitions with a new topic, not by blindly adding instances.

  4. 4
    Give an example

    One tiny concrete case you can say aloud.

  5. 5
    Common mistake

    What juniors usually get wrong.

  6. 6
    Close

    When you pick this over the alternative.

3

EXAMPLE — See it in action

Here's a short line you can speak, broken into clear beats:

Say this line
“Scaling consumers only helps if you have idle partitions.”
Break into beats
Scalingconsumersonlyhelpsifyou
Speaking order
2987408337471632900

Note: Adapt this scaffold to your own project — keep it under 60–90 seconds.

Key takeaway

Check processing time versus poll interval, stop-the-world GC, downstream DB pool exhaustion, and whether one hot partition has a skewed key. Scaling consumers only helps if you have idle partitions.

Chat with us