Node.js · Middle · Question 63 of 75
What is a health check endpoint like /health used for?
- 1It shows users the server's CPU usage
- 2It restarts the app when called
- ✓Correct answer: Load balancers and orchestrators call it to know whether the instance can receive traffic
Explanation
Kubernetes distinguishes liveness (should it be restarted?) and readiness (can it take traffic now?). Readiness can check dependencies like the database.