0
0
HLDsystem_design~5 mins

Health checks in HLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AIf the service is alive and should be restarted
BIf the service is ready to accept traffic
CIf the system has enough memory
DIf the database is connected
Which method is commonly used for health checks?
AHTTP endpoint check
BFTP file transfer
CEmail notification
DDNS lookup
What happens if a liveness probe fails?
AThe service is restarted
BTraffic is routed to the service
CThe service is marked ready
DNothing happens
Why are health checks critical for load balancers?
ATo monitor user activity
BTo encrypt traffic
CTo increase database speed
DTo identify unhealthy instances and avoid sending them traffic
Which of these is NOT a purpose of health checks?
ADetecting service failures
BRestarting unhealthy services
CIncreasing CPU speed
DImproving system reliability
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.