In RBAC, which object binds a Role to a user within a namespace?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

In RBAC, which object binds a Role to a user within a namespace?

Explanation:
RoleBinding is the construct that binds a Role to one or more subjects (such as a user) within a specific namespace. This ties the permissions defined in the Role to those subjects only inside that namespace, making access scoped to that namespace. If you need a binding at the cluster level, you would use a ClusterRoleBinding, which ties a ClusterRole to subjects across all namespaces. The other options aren’t standard RBAC resources in Kubernetes/OpenShift. So, for granting a Role’s permissions to a user inside a namespace, RoleBinding is the correct object.

RoleBinding is the construct that binds a Role to one or more subjects (such as a user) within a specific namespace. This ties the permissions defined in the Role to those subjects only inside that namespace, making access scoped to that namespace. If you need a binding at the cluster level, you would use a ClusterRoleBinding, which ties a ClusterRole to subjects across all namespaces. The other options aren’t standard RBAC resources in Kubernetes/OpenShift. So, for granting a Role’s permissions to a user inside a namespace, RoleBinding is the correct object.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy