Challenge - 5 Problems
Kafka Metrics Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Kafka Consumer Lag Metric Output
You run the command to check consumer lag for a Kafka consumer group:
What output indicates the consumer is fully caught up with the latest messages?
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group my-group
What output indicates the consumer is fully caught up with the latest messages?
Attempts:
2 left
💡 Hint
Lag of zero means the consumer has processed all messages.
✗ Incorrect
The lag value shows how many messages the consumer is behind. A lag of 0 means it is fully caught up.
🧠 Conceptual
intermediate1:30remaining
Purpose of Kafka Client Metrics
What is the main purpose of monitoring Kafka client metrics in a production environment?
Attempts:
2 left
💡 Hint
Think about what client metrics help you understand about your application.
✗ Incorrect
Client metrics help identify delays, errors, and throughput issues in message consumption or production.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting Kafka Producer Throughput Drop
You notice a sudden drop in Kafka producer throughput. Which client metric is the best indicator to check first?
Attempts:
2 left
💡 Hint
Look for metrics related to how fast the producer sends messages.
✗ Incorrect
The record-send-rate metric shows how many records the producer sends per second, directly reflecting throughput.
🔀 Workflow
advanced2:30remaining
Setting Up Kafka Client Metrics Exporter
Which sequence correctly describes setting up a Kafka client metrics exporter for Prometheus monitoring?
Attempts:
2 left
💡 Hint
Think about enabling metrics first, then exporting, then scraping, then visualization.
✗ Incorrect
First enable JMX metrics in the client, then attach the exporter, then configure Prometheus to scrape, finally visualize.
✅ Best Practice
expert2:00remaining
Best Practice for Kafka Client Metrics Retention
What is the best practice for retaining Kafka client metrics data in a monitoring system?
Attempts:
2 left
💡 Hint
Think about balancing storage cost and usefulness of data.
✗ Incorrect
Keeping metrics for a short period allows trend analysis without excessive storage use.