Kubernetes and Cloud Native Associate (KCNA) Practice Questions

Kubernetes and Cloud Native Associate (KCNA) exam preparation

Kubernetes and Cloud Native Associate (KCNA) practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 90 minutes.

Kubernetes and Cloud Native Associate (KCNA) free question 9 / 10 · Domain 3: Cloud Native Application Delivery

A container's readiness probe starts failing because of a temporary overload. Which outcome matches the Kubernetes documentation?

  1. The kubelet stops the container and restarts it according to the restartPolicy
  2. The Pod phase changes to Failed, and the Deployment creates a new Pod in its place
  3. The Pod's IP is removed from the EndpointSlices of the matching Services
  4. The readiness probe stops after its first success, so this failure is not recorded
Show the answer and explanation

Answer: C

Why this is correct
The Probes page says that readiness probes determine when a container is ready to accept traffic. They are useful at startup, while an application establishes connections or warms caches, and also later in the container's lifecycle, for example when recovering from temporary faults or overloads. If the readiness probe returns a failed state, the EndpointSlice controller removes the Pod's IP address from the EndpointSlices of all Services that match the Pod. In the section on probe results, a failure of a readiness probe means the kubelet marks the container as not ready and the Pod stops receiving traffic from matching Services. The container is not killed, so when the overload passes and the probe succeeds again the Pod rejoins the Services.

Why the other options are wrong
"The kubelet stops the container and restarts it according to the restartPolicy" … The page says that for liveness and startup probes the kubelet kills the container and applies the restart policy. For a readiness probe, the kubelet only marks the container as not ready.
"The Pod phase changes to Failed, and the Deployment creates a new Pod in its place" … A failed readiness probe does not change the Pod phase to Failed. The container is marked not ready, and the Pod stops receiving traffic from matching Services while it keeps running.
"The readiness probe stops after its first success, so this failure is not recorded" … The page says readiness probes can be useful later in the container's lifecycle, for example when recovering from temporary faults or overloads. The probe keeps running after the first success.

Readiness controls traffic, liveness controls restarts
Failed readiness: no traffic, no restart. Failed liveness or startup: the kubelet kills the container and applies the restart policy.

Go to the Kubernetes and Cloud Native Associate (KCNA) practice app (10 free questions; purchase unlocks all questions)

See the full practice set