Recall & Review
beginner
What is a health check in system design?
A health check is a simple test that a system or service runs to confirm it is working correctly and ready to handle requests.
Click to reveal answer
beginner
Why are health checks important in distributed systems?
They help detect failures early, allowing systems to reroute traffic or restart services to keep the system reliable and available.
Click to reveal answer
intermediate
What is the difference between a liveness probe and a readiness probe?
A liveness probe checks if the service is alive and should be restarted if it fails. A readiness probe checks if the service is ready to accept traffic.
Click to reveal answer
beginner
Name two common methods used for health checks.
1. HTTP endpoint check: The system responds with a status code indicating health.
2. TCP socket check: The system accepts connections on a port to show it is alive.
Click to reveal answer
intermediate
How do health checks improve system scalability?
By quickly identifying unhealthy instances, health checks allow load balancers to avoid sending traffic to them, ensuring only healthy instances handle requests, which keeps the system scalable and responsive.
Click to reveal answer
What does a readiness probe indicate?
✗ Incorrect
A readiness probe checks if the service is ready to accept traffic.
Which method is commonly used for health checks?
✗ Incorrect
HTTP endpoint check is a common method where the service responds with a status code indicating health.
What happens if a liveness probe fails?
✗ Incorrect
If a liveness probe fails, the system restarts the service to recover it.
Why are health checks critical for load balancers?
✗ Incorrect
Load balancers use health checks to avoid sending traffic to unhealthy instances.
Which of these is NOT a purpose of health checks?
✗ Incorrect
Health checks do not affect CPU speed.
Explain the role of health checks in maintaining system availability.
Think about how systems stay up and running smoothly.
You got /4 concepts.
Describe the difference between liveness and readiness probes with examples.
Consider when a service should be restarted versus when it should receive traffic.
You got /4 concepts.