Recall & Review
beginner
What is a liveness probe in microservices?
A liveness probe checks if a service is alive and running. If it fails, the system restarts the service to fix it.
Click to reveal answer
beginner
What does a readiness probe do?
A readiness probe checks if a service is ready to accept traffic. If it fails, the service is removed from load balancing until ready.
Click to reveal answer
intermediate
Why use both liveness and readiness probes together?
Using both helps keep services healthy and only sends traffic to services that are ready, improving reliability and user experience.
Click to reveal answer
beginner
Give a simple example of a liveness probe check.
A liveness probe might send an HTTP GET request to "/healthz" endpoint. If it returns 200 OK, the service is alive.
Click to reveal answer
intermediate
What happens if a readiness probe fails continuously?
The service stops receiving new requests but keeps running. This prevents sending traffic to a service that can't handle it yet.
Click to reveal answer
What is the main purpose of a liveness probe?
✗ Incorrect
Liveness probes detect if a service is alive and restart it if it is not responding.
If a readiness probe fails, what happens?
✗ Incorrect
Readiness probe failure means the service is not ready, so it stops receiving new traffic but keeps running.
Which probe helps avoid sending traffic to a service that is not ready?
✗ Incorrect
Readiness probes ensure traffic is only sent to services ready to handle requests.
What is a common method used by liveness probes to check service health?
✗ Incorrect
Liveness probes often use HTTP GET requests to a health check endpoint to verify service health.
Why is it important to have both liveness and readiness probes?
✗ Incorrect
Both probes together help keep services running and only send traffic when services are ready.
Explain the difference between liveness and readiness probes in microservices.
Think about when a service should be restarted versus when it should just stop receiving traffic.
You got /4 concepts.
Describe a real-life scenario where readiness probes improve user experience.
Imagine a restaurant kitchen not ready to serve but still open.
You got /4 concepts.