Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX380 Exam - Topic 1 Question 1 Discussion

Actual exam question for RedHat's EX380 exam
Question #: 1
Topic #: 1
[All EX380 Questions]

SIMULATION

Task SIMULATION 7

Service Accounts and RBAC -- Grant Cluster Reader Role

Show Suggested Answer Hide Answer
Suggested Answer: A

Step 1: Confirm the service account exists in auth-audit.

It must exist before a role can be assigned to it.

Step 2: Run the command:

oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:auth-audit:audit

Step 3: Verify the binding is added.

The lab output shows:

clusterrole.rbac.authorization.k8s.io/cluster-reader added: 'system:serviceaccount:auth-audit:audit'

Detailed explanation:

This binds the cluster-reader cluster role to the audit service account. The full subject format system:serviceaccount:namespace:name is required because OpenShift RBAC needs the exact service account identity. The cluster-reader role is broader than a project-scoped view role because it allows read-level access across cluster resources. This is appropriate for auditing or inspection use cases where the account must observe but not modify. The distinction between cluster roles and namespaced roles is important: cluster roles apply to non-namespaced resources and broad cluster visibility, while local roles are limited to individual projects. This Task is a classic RBAC operation that combines identity creation with controlled privilege assignment.

============


Contribute your Thoughts:

0/2000 characters
Mollie
2 days ago
I feel a bit confused about the difference between Cluster Reader and other roles. Did we cover that in our study sessions?
upvoted 0 times
...
Mary
7 days ago
This seems similar to a practice question we did on RBAC, but I can't recall the exact commands we used.
upvoted 0 times
...
Christene
12 days ago
I think I remember something about assigning roles to service accounts, but I'm not entirely sure how to do it for the Cluster Reader role.
upvoted 0 times
...

Save Cancel