Challenge - 5 Problems
Health Check Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Nginx active health check status output
You have configured an active health check in Nginx for your backend servers. Which command output snippet correctly shows that the backend server is healthy?
Nginx
curl -s http://localhost/nginx_status | grep 'upstream server'Attempts:
2 left
💡 Hint
Look for the status that indicates the server is responding correctly.
✗ Incorrect
The active health check reports the backend server status. 'UP' means the server is healthy and responding.
❓ Configuration
intermediate2:00remaining
Correct Nginx passive health check directive
Which Nginx configuration snippet correctly enables passive health checks for an upstream named
app_servers?Attempts:
2 left
💡 Hint
Passive health checks use max_fails and fail_timeout parameters.
✗ Incorrect
Passive health checks in Nginx are controlled by max_fails and fail_timeout on server directives. The health_check directive enables active checks, not passive.
❓ Troubleshoot
advanced2:00remaining
Diagnosing failed active health checks in Nginx
You configured active health checks in Nginx but all backend servers show as DOWN. Which of the following is the most likely cause?
Attempts:
2 left
💡 Hint
Active health checks depend on a correct URI and response status.
✗ Incorrect
Active health checks send requests to a specific URI. If the URI is wrong or the server returns an error status, Nginx marks the server as DOWN.
🔀 Workflow
advanced2:30remaining
Order of steps to enable active health checks in Nginx
Arrange the steps in the correct order to enable active health checks for an upstream in Nginx.
Attempts:
2 left
💡 Hint
You must define servers before adding health checks and reload last.
✗ Incorrect
First define servers, then configure health check details, add the directive, and finally reload Nginx.
✅ Best Practice
expert2:00remaining
Best practice for health check intervals in production
What is the best practice for setting the interval of active health checks in a high-traffic production Nginx environment?
Attempts:
2 left
💡 Hint
Consider backend load and failure detection speed.
✗ Incorrect
Too frequent checks increase load; too infrequent delay failure detection. A moderate interval balances both.