Question 1180
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Service account release-bot in namespace ledger receives Forbidden when trying to list Pods despite healthy authentication. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?
Explanation
Correct Answer
Use identity-specific can-i checks as part of RBAC rollout tests. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl auth can-i list pods -n ledger --as=system:serviceaccount:ledger:release-bot and inspect its RoleBindings. The relevant mechanism is: Authentication establishes identity but authorization still requires permitted verbs, resources and scope in matching RBAC bindings.
Incorrect Answers
That safeguard is relevant to: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. The current failure instead follows from: Authentication establishes identity but authorization still requires permitted verbs, resources and scope in matching RBAC bindings. Its prevention measure is “Use identity-specific can-i checks as part of RBAC rollout tests”.
The suggested review tracks a different technical risk: A PVC binds only to compatible available storage or successful dynamic provisioning; absent provisioners, quotas or delayed binding can leave it Pending. Here the sustained control must address: Authentication establishes identity but authorization still requires permitted verbs, resources and scope in matching RBAC bindings. Choose “Use identity-specific can-i checks as part of RBAC rollout tests”.
That safeguard is relevant to: A hard nodeSelector must match a Node's actual labels; tolerations or Service routing cannot bypass the unmatched selector. The current failure instead follows from: Authentication establishes identity but authorization still requires permitted verbs, resources and scope in matching RBAC bindings. Its prevention measure is “Use identity-specific can-i checks as part of RBAC rollout tests”.