Bird
Raised Fist0

If a Kafka consumer metric shows:

medium📝 Command Output Q5 of Q15
Kafka - with Java/Python
If a Kafka consumer metric shows:
{"records-lag-max": 100}
What does this metric tell you?
AThe total number of records consumed
BThe number of partitions assigned to the consumer
CThe maximum number of records the consumer is behind the producer
DThe consumer's processing speed in records per second
Step-by-Step Solution
Solution:
  1. Step 1: Understand records-lag-max meaning

    This metric shows the largest lag in records between consumer and producer for any partition.
  2. Step 2: Exclude other interpretations

    Total consumed records, partition count, and processing speed are different metrics.
  3. Final Answer:

    The maximum number of records the consumer is behind the producer -> Option C
  4. Quick Check:

    records-lag-max = max lag behind producer [OK]
Quick Trick: Lag max shows how far consumer is behind producer [OK]
Common Mistakes:
MISTAKES
  • Confusing lag with total consumed records
  • Assuming lag means partition count
  • Mixing lag with processing speed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes