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

Prepare for the Kubernetes Cloud Native Associate (KCNA) Certification test with engaging questions and detailed explanations. Perfect your knowledge and boost your confidence to pass the exam successfully!

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