Question 150
At Horizon observability, in a disposable simulated environment during a monitored release window: The node worker-b has to be evacuated for planned maintenance; the lab confirms no unreplicated data or unprotected standalone Pods. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
Drain cordons the node and requests evictions for eligible Pods; the ignore-daemonsets flag is needed because DaemonSet Pods are not deleted by drain. This explains the stated condition. The corresponding action is: Run kubectl drain worker-b --ignore-daemonsets after reviewing PodDisruptionBudgets and local-storage implications. The direct acceptance evidence is: Run kubectl get pods -A -o wide --field-selector spec.nodeName=worker-b and review remaining DaemonSets.
Incorrect Answers
Node labels are discoverable metadata matched by selectors; a node label alone does not create a workload restriction. That explanation applies to a different technical failure. Here the controlling principle is: Drain cordons the node and requests evictions for eligible Pods; the ignore-daemonsets flag is needed because DaemonSet Pods are not deleted by drain.
The offered statement is true for this other mechanism: A trailing minus removes the matching taint; adding a new toleration on every Pod would leave unnecessary cluster constraints. It does not explain the facts described here, which follow from: Drain cordons the node and requests evictions for eligible Pods; the ignore-daemonsets flag is needed because DaemonSet Pods are not deleted by drain.
A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. That explanation applies to a different technical failure. Here the controlling principle is: Drain cordons the node and requests evictions for eligible Pods; the ignore-daemonsets flag is needed because DaemonSet Pods are not deleted by drain.