What is the purpose of a readiness probe in Kubernetes?

  1. To monitor resource usage
  2. To check if a container is alive
  3. To manage Pod startup order
  4. To determine if a Pod should receive traffic from a Service ✓

Correct answer: To determine if a Pod should receive traffic from a Service

Option D is correct because a readiness probe tells Kubernetes whether a Pod is ready to accept incoming traffic from a Service. Until the readiness probe succeeds, the Pod is removed from the Service's endpoint list, preventing requests from being routed to it. Option A is incorrect because resource monitoring is handled by metrics-server and tools like Prometheus, not probes. Option B describes a liveness probe, which restarts a container if it becomes unresponsive or unhealthy, not a readiness probe. Option C is incorrect because Pod startup order is managed through init containers and Pod topology spread constraints, not readiness probes.

Topic: · readiness probe, kubernetes, pod lifecycle, services

Practice Certified Kubernetes App Developer (CKAD) Questions Free