Be able to create users through an identity provider, bind roles with oc adm policy, and verify access using oc auth can-i. The most important thing is understanding that users, identities, and role bindings are separate objects, so deleting a user does not remove their permissions.
Start practicing
User And RBAC Management — choose a session length
Free · No account required
Domain overview
This domain covers OpenShift identity, users, groups, service accounts, and role-based access control. You must manage HTPasswd and other identity providers, bind roles with oc adm policy, inspect effective permissions, and switch projects. Questions are hands-on or command-selection based, testing exact oc syntax and RBAC object behavior.
Exam objectives
Creating users and identities via HTPasswd identity provider and htpasswd secret updates
Binding ClusterRole and Role permissions with oc adm policy add-role-to-user
Inspecting effective permissions using oc auth can-i and oc policy who-can
Switching active project context with oc project and managing namespaces
Assuming deleting a user also removes their identities, groups, and role bindings; these persist and must be cleaned separately.
Forgetting that role bindings reference users or groups, so removing a user does not automatically revoke bound permissions.
Using oc auth can-i without --as or -n to check another user's or namespace's effective permissions, yielding misleading results.
Click any question to see the full explanation and answer options, or start a focused practice session above.
A developer reports they cannot deploy applications because their deployment quota is exhausted. Upon inspecting the 'LimitRange' object in the namespace, you notice default limits are set. However, a specific container in their deployment YAML fails validation during creation with an admission webhook error stating 'container exceeds minimum cpu request'. Where must the adjustment be made to allow this specific deployment?
2You need to inspect the effective permissions of a service account named 'cicd-bot' in the 'ci-cd' namespace to see if it can list deployments. Which command should you run?
3A cluster administrator has created a custom ClusterRole named 'pod-debugger' with permissions to execute commands in pods. They want to ensure that only users in the 'development' group can utilize this role within the 'app-dev' project. How should they configure this?
4An administrator needs to grant read-only access to pods across all namespaces to a specific service account named 'monitor-sa' in the 'monitoring' project. Which RBAC resource configuration is required?
5Which default OpenShift cluster role grants full administrative privileges to manage all resources within a specific project when bound via a RoleBinding?
6A cluster administrator wants to restrict a specific group of developers from creating persistent volume claims (PVCs) larger than 50Gi in the 'data-tier' namespace, while still allowing smaller PVCs. How should this be implemented?
7You are configuring an OAuth identity provider in OpenShift using the HTPasswdPasswordIdentityProvider method. Where must the generated htpasswd user credentials file be stored so the cluster authentication operator can read it?
8A system administrator needs to revoke the 'admin' role from user 'bob' in the 'finance' project without deleting the project or affecting other users. Which command should be used?
9What is the primary function of the 'self-provisioner' cluster role in OpenShift?
10An administrator wants to prevent non-admin users from creating any new projects in the OpenShift cluster. How can this be accomplished?
11Which command allows an administrator to view all currently configured SecurityContextConstraints in an OpenShift cluster?
12An administrator configured an LDAP identity provider in OpenShift, but users report authentication failures. Upon checking the cluster logs, you find errors indicating that the bind DN password secret is missing or incorrect. Where must this bind password be stored?
13A developer needs to know if their pod's service account has permissions to create pods in another namespace named 'target-ns'. Which command can the developer run to check this?
14You need to create a Role that allows reading and writing ConfigMaps and Secrets only within the 'database' project. Which API groups and resource types should be included in the rules?
15An OpenShift administrator needs to restrict developers so they cannot delete any PersistentVolumeClaims in the 'finance-prod' namespace, even though they have the 'admin' role. How can this override be achieved?
16Which command is used to switch the active project context to a namespace named 'staging' in the OpenShift CLI?
17You need to assign the 'cluster-reader' ClusterRole to an LDAP group named 'ldap-auditors' across the entire cluster. Which command accomplishes this?
18An administrator needs to configure resource requests and limits such that any pod created without explicit CPU requests in the 'web-tier' namespace automatically gets assigned a default CPU request of 200m and a default CPU limit of 500m. Which object achieves this?
19A security audit requires identifying all users who have direct cluster-admin privileges assigned via individual user bindings rather than groups. How can an administrator inspect the cluster-admin ClusterRoleBinding subjects?
20An administrator creates a new project request template that includes a custom RoleBinding. However, when users create new projects, the RoleBinding fails to bind because it references a ClusterRole that does not exist in the template namespace. How are ClusterRoles referenced in project templates resolved?
21Which command allows an administrator to delete a user object named 'old-user' from the OpenShift cluster?
22An administrator configures an OAuth provider with user mapping method 'lookup'. What does this mapping method do when a user authenticates for the first time?
23An administrator needs to ensure that no pod in the 'secure-zone' namespace can run with root privileges or use host networking. Which mechanism natively enforces this across all pods in the namespace?
24A cluster administrator wants to grant a group of users read access to all Pod logs across every namespace in the cluster. Which ClusterRole and binding approach should be used?
25Which command is used to create a new cluster role named 'storage-reader' that permits getting and listing PersistentVolumes cluster-wide?
26You need to verify whether a particular ServiceAccount in your project has permissions to read Secrets. Which command tests this authorization?
27Which command allows an administrator to view details of a specific project named 'web-app', including its annotations and status?
28You need to assign a custom ClusterRole named 'operator-viewer' to all authenticated users cluster-wide. Which command accomplishes this?
29Which command is used to remove a role binding named 'dev-binding' from a namespace named 'development'?
30You need to ensure that a specific ServiceAccount named 'builder-sa' in the 'cicd' project can use the 'privileged' SecurityContextConstraints. Which command accomplishes this?
31An OpenShift cluster integrates with an LDAP server where user attribute names differ from default settings (e.g., mail instead of preferredUsername). Where are these LDAP attribute mappings configured?
32Which TWO of the following are valid built-in default project roles in OpenShift that can be assigned to users within a namespace? (Choose TWO)
33Which TWO of the following steps are required when configuring an HTPasswd identity provider in OpenShift? (Choose TWO)
34Which THREE of the following objects can be used to enforce resource governance and consumption limits within an OpenShift project? (Choose THREE)
35Which THREE of the following commands are valid OpenShift CLI commands for managing user policies and role assignments? (Choose THREE)
36Which TWO of the following statements regarding OpenShift Projects and Namespaces are correct? (Choose TWO)
37Which THREE of the following fields are required when defining a custom Role or ClusterRole resource YAML? (Choose THREE)
38Which THREE of the following are valid identity provider types supported natively in OpenShift Container Platform? (Choose THREE)
39Which TWO of the following characteristics apply to OpenShift SecurityContextConstraints (SCCs)? (Choose TWO)
40Which THREE of the following actions can a user with the default OpenShift 'view' role perform within a project? (Choose THREE)
41Which TWO of the following commands can an administrator use to verify the identity and permissions of the currently logged-in user? (Choose TWO)
42Which THREE of the following are valid parameters that can be specified in a LimitRange object specification? (Choose THREE)
43Which TWO of the following actions occur when a user is deleted from an OpenShift cluster using 'oc delete user <username>'? (Choose TWO)
44Which TWO of the following tasks can a user with the default OpenShift 'admin' role perform within their project? (Choose TWO)
45Which TWO of the following conditions must be met for a ServiceAccount from 'namespace-a' to successfully access API resources in 'namespace-b'? (Choose TWO)
46A cluster administrator has created a new ProjectRequest template to ensure that every newly created project automatically includes a predefined LimitRange. Where must this template be configured so that it applies cluster-wide to all new projects?
47An administrator is troubleshooting a service account named 'cicd-bot' in the 'ci-cd' namespace that is failing to read pods in the 'production' namespace, despite a RoleBinding existing. Upon inspection, the RoleBinding references a Role (not a ClusterRole) in the 'ci-cd' namespace. Why is the service account failing to access resources in 'production'?
48An administrator wants to prevent developers from accidentally deploying containers that request excessive CPU resources in the 'analytics' namespace. Which object should the administrator create in that namespace?
49A cluster administrator notices that a user 'bob' is unable to create new projects using the 'oc new-project' command, even though bob can view existing projects. What is the root cause and standard remediation?
50An administrator is configuring a ResourceQuota named 'quota-dev' in the 'development' namespace. Which TWO of the following resource types can be directly tracked and limited by this ResourceQuota? (Choose TWO)
51An administrator needs to provision a new user named 'sarah' using the HTPasswd identity provider. After updating the htpasswd file and secret, Sarah logs in successfully. What command should the administrator run to verify that OpenShift has successfully created the corresponding User object for Sarah?
52An administrator needs to restrict a user group named 'contractors' so they can view pods and services, but cannot view secrets across the 'staging' namespace. Which THREE of the following steps or configurations are valid and necessary to achieve this? (Choose THREE)
53When setting up authentication and user provisioning in OpenShift 4, which THREE identity providers are natively supported out-of-the-box by the OAuth server configuration? (Choose THREE)
54An OpenShift administrator must give the user 'dana' permission to list and watch pods and services across every project in the cluster, but nothing else. The administrator decides to create a new ClusterRole named 'ns-reader' containing only those rules and bind it to dana. Which command correctly creates this ClusterRole?
55A platform administrator is auditing RBAC in the 'payments' namespace. They notice that the group 'contractors' can list and get secrets in that namespace, but the administrators never created a RoleBinding or ClusterRoleBinding granting those permissions. Which mechanism most likely granted this access?
56An administrator wants members of the LDAP-backed group 'cn=auditors,ou=groups,dc=corp' to have read-only access to every project in the cluster, including future ones, without granting them any write capability. Which action achieves this?
57A user reports that 'oc get pods -n analytics' returns a Forbidden error, but 'oc get pods -n analytics --as=system:admin' succeeds. The administrator confirms the user is a member of the LDAP group 'data-team' and that a ClusterRoleBinding grants 'view' to that group. What should the administrator check first to explain the discrepancy?
58An administrator is preparing to grant a ServiceAccount named 'reporter-sa' in the 'monitoring' namespace read-only access to pods and services across all namespaces in the cluster. Which TWO actions should the administrator take? (Choose two.)
59An administrator must allow the ServiceAccount 'report-sa' in the 'metrics' namespace to list nodes cluster-wide, but must not grant any other cluster-level access. Which command accomplishes this?
Be able to create users through an identity provider, bind roles with oc adm policy, and verify access using oc auth can-i. The most important thing is understanding that users, identities, and role bindings are separate objects, so deleting a user does not remove their permissions.
The Courseiva EX280 question bank contains 59 questions in the User And RBAC Management domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the User And RBAC Management domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included