Intermediate Kubernetes
Q62 / 100

What is the purpose of "kubectl cordon" and "kubectl drain" on a node?

Correct! Well done.

Incorrect.

The correct answer is B) "cordon" marks a node as unschedulable (preventing new Pods from being placed there), while "drain" additionally evicts existing Pods from the node gracefully, typically used before maintenance

B

Correct Answer

"cordon" marks a node as unschedulable (preventing new Pods from being placed there), while "drain" additionally evicts existing Pods from the node gracefully, typically used before maintenance

Explanation

Cordoning prevents new Pods from being scheduled on a node, and draining evicts existing Pods (respecting PodDisruptionBudgets) — a common workflow before performing node maintenance or upgrades.

Progress
62/100