EX280 Security And SCC Practice Question
An administrator has created a custom SCC named restricted-custom. During testing, pods using this SCC still fail because they are assigned the non-root UID range automatically, but the application container requires writing to a specific directory owned by UID 1000. How should the administrator configure the SCC to ensure the container runs consistently as UID 1000?
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
✓
Set runAsUser.type to MustRunAs and specify uid: 1000 in the uidRange
To force a specific UID execution, the runAsUser strategy must be set to MustRunAs with a uidRange specifying UID 1000.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set runAsUser.type to RunAsAny and add securityContext.runAsUser: 1000 in the pod spec
Why it's wrong here
RunAsAny allows pods to define their own UID, but if the container image enforces a different default user, it may fail unless overridden in the pod spec.
- ✗
Configure fsGroup.type to MustRunAs with uid: 1000
Why it's wrong here
fsGroup controls volume ownership and permissions, not the process execution user ID of the container.
- ✗
Set privileged: true and map the container user via supplementalGroups
Why it's wrong here
Privileged mode disables namespace isolation and is a severe security risk; it does not explicitly enforce a container user ID.
- ✓
Set runAsUser.type to MustRunAs and specify uid: 1000 in the uidRange
Why this is correct
Setting runAsUser.type to MustRunAs with the appropriate UID ensures the container always runs as the specified user ID.
About these practice questions
One of 509 original EX280 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.