Question 70
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: An inventory process requires read access to cluster-scoped Nodes, not write access to workloads. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
Nodes are cluster-scoped and their access rules belong in a ClusterRole rather than a namespaced Role. This explains the stated condition. The corresponding action is: Run kubectl create clusterrole dispatch-api-node-reader --verb=get,list --resource=nodes. The direct acceptance evidence is: Run kubectl get clusterrole dispatch-api-node-reader -o yaml and inspect resources and verbs.
Incorrect Answers
The offered statement is true for this other mechanism: A ClusterRoleBinding applies its referenced ClusterRole permission set at cluster scope to the named group. It does not explain the facts described here, which follow from: Nodes are cluster-scoped and their access rules belong in a ClusterRole rather than a namespaced Role.
This principle describes a separate cause: RBAC authorization decisions depend on the subject, verb, resource and namespace; an admin's own access does not prove the workload identity's access. The reported condition is governed by: Nodes are cluster-scoped and their access rules belong in a ClusterRole rather than a namespaced Role. The two mechanisms should not be conflated.
The offered statement is true for this other mechanism: A NoSchedule taint repels Pods without a matching toleration but does not automatically evict already running Pods. It does not explain the facts described here, which follow from: Nodes are cluster-scoped and their access rules belong in a ClusterRole rather than a namespaced Role.