# What is the difference between a liveness probe and a readiness probe?

Kubernetes, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-difference-between-a-liveness-probe-and-a-readiness-probe

- A. Liveness probes check if a container is alive, while readiness probes check if a container is ready to serve traffic
- B. Liveness probes check external dependencies, while readiness probes check internal health
- C. Liveness probes are mandatory, while readiness probes are optional
- D. Liveness probes run at pod startup, while readiness probes run periodically

**Answer:** Liveness probes check if a container is alive, while readiness probes check if a container is ready to serve traffic

**Explanation:** Liveness probes determine if a container is healthy; if the probe fails, the container is restarted. Readiness probes determine if a container is ready to receive traffic; if the probe fails, the pod's IP is removed from the endpoints of all Services that match it, effectively taking it out of service rotation without restarting it.
