Question 50
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Service account release-bot in namespace ledger must receive the existing invoice-api-pod-reader Role. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
A RoleBinding associates the service account subject with a Role inside the binding namespace. This explains the stated condition. The corresponding action is: Run kubectl -n ledger create rolebinding invoice-api-reader-binding --role=invoice-api-pod-reader --serviceaccount=ledger:release-bot. The direct acceptance evidence is: Run kubectl auth can-i list pods -n ledger --as=system:serviceaccount:ledger:release-bot and expect yes.
Incorrect Answers
This principle describes a separate cause: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. The reported condition is governed by: A RoleBinding associates the service account subject with a Role inside the binding namespace. The two mechanisms should not be conflated.
The offered statement is true for this other mechanism: Kustomize renders declarative resource transformations before Kubernetes admission and reconciliation. It does not explain the facts described here, which follow from: A RoleBinding associates the service account subject with a Role inside the binding namespace.
This principle describes a separate cause: The snapshot-status tool inspects backup metadata without modifying the running etcd member or performing a restore. The reported condition is governed by: A RoleBinding associates the service account subject with a Role inside the binding namespace. The two mechanisms should not be conflated.