Bird
0
0

You want to create an alert that triggers only if the API error rate exceeds 5% for 10 consecutive minutes. Which approach is best?

hard📝 Workflow Q8 of 15
Rest API - API Testing and Monitoring
You want to create an alert that triggers only if the API error rate exceeds 5% for 10 consecutive minutes. Which approach is best?
AManually check logs every 10 minutes for errors
BUse a time window condition in the monitoring tool to check error rate over 10 minutes
CSet alert to trigger immediately when error rate exceeds 5%
DRestart the API service every 10 minutes
Step-by-Step Solution
Solution:
  1. Step 1: Understand the requirement for sustained error rate

    The alert should trigger only if the error rate is high continuously for 10 minutes.
  2. Step 2: Choose the method that supports time window evaluation

    Monitoring tools can evaluate metrics over time windows; setting a 10-minute window fits the need.
  3. Final Answer:

    Use a time window condition in the monitoring tool to check error rate over 10 minutes -> Option B
  4. Quick Check:

    Time window condition needed for sustained alert [OK]
Quick Trick: Use time window checks for sustained metric alerts [OK]
Common Mistakes:
MISTAKES
  • Triggering alert immediately
  • Manual log checks are inefficient
  • Restarting service unrelated to alerting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes