Bird
0
0

A microservice alert rule is written as: IF response_time > 200ms THEN send_alert(). However, alerts are never triggered even when response time is high. What is the likely error?

medium📝 Analysis Q6 of 15
Microservices - Monitoring and Observability
A microservice alert rule is written as: IF response_time > 200ms THEN send_alert(). However, alerts are never triggered even when response time is high. What is the likely error?
AThe rule syntax is correct; issue is elsewhere
BThe condition uses '>' but response_time is measured in seconds
CThe threshold 200ms is too high to trigger alerts
DThe alert action send_alert() is missing parentheses
Step-by-Step Solution
Solution:
  1. Step 1: Check unit consistency in alert condition

    If response_time is in seconds, comparing to 200ms (0.2s) with '>' will never be true if values are mismatched.
  2. Step 2: Identify the mismatch causing no alerts

    Using '>' with wrong units causes condition to fail; correct units needed.
  3. Final Answer:

    The condition uses '>' but response_time is measured in seconds -> Option B
  4. Quick Check:

    Unit mismatch in condition = No alerts [OK]
Quick Trick: Check units match in alert conditions [OK]
Common Mistakes:
MISTAKES
  • Ignoring unit mismatches
  • Assuming syntax error without checking logic
  • Thinking threshold is too high without evidence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes