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

Study for the Kubernetes Cloud Native Associate (KCNA) Certification. Prepare with flashcards and multiple choice questions. Ensure success with detailed explanations. Ready for 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