Pod phases and container states · Question 11 of 12
A Deployment starts a container that does its work and exits with exit code 0. What shows up after a while?
2 answers are correct. Hard Created with AI
Show answer
Answer
- B The status alternates between Completed and CrashLoopBackOff
- D The number of restarts keeps rising
Explanation
Deployments enforce restartPolicy Always, so even a cleanly exited container is restarted. For tasks that are meant to finish, you use a Job.