DCA Exam QuestionsBrowse all questions from this exam

DCA Exam - Question 50


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?

Show Answer
Correct Answer:

Discussion

3 comments
Sign in to comment
diazedOption: C
Mar 8, 2025

In Kubernetes, kubectl drain gracefully evicts pods from a node, while kubectl cordon prevents new pods from being scheduled on a node. Both commands are used to manage nodes during maintenance or to temporarily take them offline.

fallaisOption: D
Aug 23, 2024

D is the correct answer. https://docs.docker.com/engine/swarm/swarm-tutorial/drain-node/

InversaRadice
Oct 12, 2024

The question is about Kubernetes not swarm so the answer C is correct

Pepsi16Option: C
Apr 21, 2025

C is correct the question taking about Kubernetes