Courseiva
User And RBAC ManagementeasyMultiple ChoiceObjective-mapped

EX280 User And RBAC Management Practice Question

An administrator needs to grant a developer named 'alice' read-only access to all pods specifically within the 'development' namespace. Which command should be used to accomplish this while following the principle of least privilege?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

oc create rolebinding alice-view --clusterrole=view --user=alice -n development

The view ClusterRole provides read-only access to most resource types within a project. Binding it via a RoleBinding in the specific namespace limits access strictly to that namespace.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • oc create role alice-view --verb=get,list,watch --resource=pods --user=alice -n development

    Why it's wrong here

    While creating a custom role works, OpenShift provides standard predefined roles like 'view' which should be reused when possible.

  • oc adm policy add-cluster-role-to-user cluster-admin alice

    Why it's wrong here

    Incorrect. This grants cluster-admin privileges cluster-wide, far exceeding read-only access.

  • oc create clusterrolebinding alice-view --clusterrole=view --user=alice

    Why it's wrong here

    Incorrect. A ClusterRoleBinding grants cluster-wide access, which violates the requirement to restrict access to the development namespace.

  • oc create rolebinding alice-view --clusterrole=view --user=alice -n development

    Why this is correct

    Correct. This binds the view cluster role to user alice in the development namespace via a RoleBinding.

About these practice questions

Courseiva writes every EX280 question from scratch — 509 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Red Hat exam blueprint

This EX280 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX280 exam.