In RBAC, which binding associates a user or group to a ClusterRole?

Prepare for the KCNA Certification Test. Study with flashcards, multiple-choice questions, and detailed explanations to enhance your understanding of Kubernetes Cloud Native concepts. Ace your exam!

Multiple Choice

In RBAC, which binding associates a user or group to a ClusterRole?

Explanation:
In RBAC, to connect a user or group to a ClusterRole, you use a binding that applies cluster-wide. This binding is ClusterRoleBinding. It references a ClusterRole and lists the subjects (users, groups, or service accounts) to grant those permissions to, across the entire cluster. RoleBinding binds a subject to a Role within a specific namespace, not cluster-wide. ClusterRoles define permissions but aren’t bindings themselves. NamespaceRoleBinding isn’t a standard RBAC resource. So the correct choice for associating a user or group to a ClusterRole is ClusterRoleBinding.

In RBAC, to connect a user or group to a ClusterRole, you use a binding that applies cluster-wide. This binding is ClusterRoleBinding. It references a ClusterRole and lists the subjects (users, groups, or service accounts) to grant those permissions to, across the entire cluster.

RoleBinding binds a subject to a Role within a specific namespace, not cluster-wide. ClusterRoles define permissions but aren’t bindings themselves. NamespaceRoleBinding isn’t a standard RBAC resource. So the correct choice for associating a user or group to a ClusterRole is ClusterRoleBinding.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy