Which of the following is the correct way to set up an alert for API downtime in a monitoring tool?
easy📝 Configuration Q12 of 15
Rest API - API Testing and Monitoring
Which of the following is the correct way to set up an alert for API downtime in a monitoring tool?
ATrigger alert if API response time is less than 100ms
BTrigger alert if API documentation changes
CTrigger alert if API returns status code 200
DTrigger alert if API returns status code 500 or no response
Step-by-Step Solution
Solution:
Step 1: Understand alert conditions for downtime
An alert for downtime should trigger when the API fails or does not respond, such as status code 500 or no response.
Step 2: Evaluate options
Trigger alert if API returns status code 500 or no response correctly triggers alert on error or no response. Other options either alert on success or unrelated events.
Final Answer:
Trigger alert if API returns status code 500 or no response -> Option D
Quick Check:
Alert on errors or no response = Trigger alert if API returns status code 500 or no response [OK]
Quick Trick:Alert on errors or no response, not success [OK]
Common Mistakes:
MISTAKES
Alerting on successful responses
Alerting on unrelated changes like docs
Using wrong status codes for alerts
Master "API Testing and Monitoring" in Rest API
9 interactive learning modes - each teaches the same concept differently