Bird
Raised Fist0

You want to alert if Kafka producer's record-error-rate exceeds 0.1 for 5 minutes. Which approach is best?

hard📝 Workflow Q8 of Q15
Kafka - with Java/Python
You want to alert if Kafka producer's record-error-rate exceeds 0.1 for 5 minutes. Which approach is best?
AUse a monitoring tool to collect metrics and set threshold alert on record-error-rate
BCheck logs manually every 5 minutes for errors
CRestart producer every 5 minutes to reset errors
DIncrease producer retries to avoid errors
Step-by-Step Solution
Solution:
  1. Step 1: Understand alerting needs

    Automated monitoring with threshold alerts is best for timely error detection.
  2. Step 2: Evaluate other options

    Manual log checks are slow and error-prone. Restarting producer or increasing retries do not alert or fix root cause.
  3. Final Answer:

    Use a monitoring tool to collect metrics and set threshold alert on record-error-rate -> Option A
  4. Quick Check:

    Automated alerts on metrics = best practice [OK]
Quick Trick: Set automated alerts on error rate thresholds [OK]
Common Mistakes:
MISTAKES
  • Relying on manual log checks
  • Restarting instead of alerting
  • Ignoring error rate monitoring

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes