Certified Kubernetes Administrator (CKA) Practice Test

Question: 1 / 400

Which of the following is NOT a container restart policy in Kubernetes?

On failure

Always

Once

In Kubernetes, container restart policies are defined to control how containers behave when they exit or fail. The available restart policies are "Always," "OnFailure," or "Never."

The "Always" policy will restart containers regardless of the exit status. The "OnFailure" policy will restart containers only if they exit with a non-zero status, indicating failure. The "Never" policy does not restart containers under any circumstances.

"Once," however, is not a valid restart policy in Kubernetes. While the term might intuitively imply a one-time execution, it does not correspond to any operational behavior recognized by the Kubernetes framework. Thus, among the options presented, "Once" does not align with the defined restart policies, making it the answer that correctly identifies something that is NOT a container restart policy in Kubernetes.

Get further explanation with Examzify DeepDiveBeta

Never

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy