Kubernetes and Cloud Native Associate (KCNA) — Question 125

Which of these is a valid container restart policy?

Answer options

Correct answer: D

Explanation

The correct answer is D, 'On failure', which specifies that a container should restart only when it exits due to an error. The other options, such as 'On login', 'On update', and 'On start', are not recognized container restart policies in container management systems.