DockerDocker
DCA · Question #158
DCA Question #158: Real Exam Question with Answer & Explanation
Sign in or unlock DCA to reveal the answer and full explanation for question #158. The question stem and answer options stay visible for context.
Submitted by mateo_ar· Apr 18, 2026Container Orchestration
Question
You are running only Kubernetes workloads on a worker node that requires maintenance, such as installing patches or an OS upgrade Which command must be run on the node to gracefully terminate all pods on the node, while marking the node as unschedulable?
Options
- A'docker node update --availability drain <node name>'
- B'docker swarm leave'
- C'kubectl drain <node name>'
- D'kubectl cordon <node name>'
Unlock DCA to see the answer
You've previewed enough free DCA questions. Unlock DCA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Kubernetes#Node scheduling#Node maintenance#kubectl