Bird
Raised Fist0

If a consumer group's lag suddenly increases to a very high number, what is the most likely cause?

medium📝 Command Output Q5 of Q15
Kafka - Monitoring and Operations
If a consumer group's lag suddenly increases to a very high number, what is the most likely cause?
AProducer stopped sending messages
BKafka broker has crashed
CTopic partitions have decreased
DConsumer is slower or stuck processing messages
Step-by-Step Solution
Solution:
  1. Step 1: Understand what causes lag increase

    Lag grows when consumers cannot keep up with incoming messages, often due to slow processing or errors.
  2. Step 2: Eliminate other options

    Broker crash or partition decrease would cause other errors; producer stopping would reduce lag, not increase it.
  3. Final Answer:

    Consumer is slower or stuck processing messages -> Option D
  4. Quick Check:

    High lag = slow consumer processing [OK]
Quick Trick: High lag means consumer can't keep up [OK]
Common Mistakes:
MISTAKES
  • Assuming producer stopped causes high lag
  • Thinking broker crash directly causes lag
  • Confusing partition count with lag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes