Q: 12
Which Kubernetes object is used to grant permissions to a cluster-wide resource?
Options
Discussion
It’s B here. ClusterRoleBinding is what actually grants cluster-wide permissions, while RoleBinding is limited to a namespace. Easy to mix up since they sound similar-A is tempting but only works at the namespace level. Pretty sure on this.
I remember a similar scenario from labs and picked A, thinking RoleBinding could handle cluster-wide resources too. Maybe that's just for namespaced stuff though? I thought binding a ClusterRole with RoleBinding grants those permissions cluster-wide, at least in some Kubernetes setups.
Maybe A is right for namespaced access, but for cluster-wide resources I thought RoleBinding only works within a namespace. ClusterRoleBinding sounds like it's needed for cluster-level stuff, but open to correction since I get confused with RBAC sometimes.
B vs A for me, but pretty sure it's B. ClusterRoleBinding lets you assign permissions at the cluster level, not just within a single namespace like RoleBinding (A). RBAC gets confusing, but in Kubernetes anything cluster-wide needs that ClusterRoleBinding connection. Chime in if you see it differently.
It’s A. Saw this exact question in my exam and went with RoleBinding for cluster permissions.
Be respectful. No spam.
Question 12 of 15