0
0
Kafkadevops~20 mins

Client metrics monitoring in Kafka - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kafka Metrics Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Kafka Consumer Lag Metric Output
You run the command to check consumer lag for a Kafka consumer group:
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?
APARTITION 0 CURRENT-OFFSET 100 LAG 0
BPARTITION 0 CURRENT-OFFSET 90 LAG 10
CPARTITION 0 CURRENT-OFFSET 100 LAG 10
DPARTITION 0 CURRENT-OFFSET 90 LAG 0
Attempts:
2 left
💡 Hint
Lag of zero means the consumer has processed all messages.
🧠 Conceptual
intermediate
1:30remaining
Purpose of Kafka Client Metrics
What is the main purpose of monitoring Kafka client metrics in a production environment?
ATo backup Kafka topics to external storage
BTo encrypt messages between clients and brokers
CTo detect client performance issues and message processing delays
DTo increase the number of Kafka brokers automatically
Attempts:
2 left
💡 Hint
Think about what client metrics help you understand about your application.
Troubleshoot
advanced
2: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?
Arecord-send-rate
Bfetch-latency-avg
Crecords-consumed-rate
Drequest-latency-max
Attempts:
2 left
💡 Hint
Look for metrics related to how fast the producer sends messages.
🔀 Workflow
advanced
2:30remaining
Setting Up Kafka Client Metrics Exporter
Which sequence correctly describes setting up a Kafka client metrics exporter for Prometheus monitoring?
A3,1,2,4
B2,1,3,4
C1,3,2,4
D1,2,3,4
Attempts:
2 left
💡 Hint
Think about enabling metrics first, then exporting, then scraping, then visualization.
Best Practice
expert
2:00remaining
Best Practice for Kafka Client Metrics Retention
What is the best practice for retaining Kafka client metrics data in a monitoring system?
AStore all metrics data indefinitely for full historical analysis
BKeep metrics data for a short period (days) to reduce storage and focus on recent trends
CDelete metrics data immediately after collection to save space
DOnly store metrics data when errors occur
Attempts:
2 left
💡 Hint
Think about balancing storage cost and usefulness of data.