RedHat EX280 Practice Exam Questions & Answers
RedHat EX280 Exam Details
Key details for this exam, checked against the published exam outline
- Exam Code
- EX280
- Full Name
- Red Hat Certified System Administrator in OpenShift
- Issuing Body
- Red Hat
- Question Format (Our Bank)
- Multiple Choice
- Delivery
- Online proctored or at a testing centre
- Eligibility
- No formal prerequisites required, but solid understanding of Linux systems, container concepts, and Kubernetes fundamentals is recommended
- Validity
- 3 years
- Full Question Set
- 33 questions Get All Questions
Free EX280 Practice Questions
Answer each question, then see the correct answer and why it is right
Question 1 Domain 7 Enable developer self-service Lab task
Task 7
Autoscale of Pods
Task information Details:
Configure a horizontal pod autoscaler for httpd with min=2, max=9, and a CPU target of 60%.
Assign resource requests to the httpd deployment so that autoscaling can work correctly.
Work out the steps and commands you would run, then compare them with the solution
Solution:
Assign resource requests to the deployment:
oc set resources deployment httpd --requests=cpu=50m,memory=100Mi
Generate the HPA:
oc autoscale deployment httpd --min=2 --max=9 --cpu-percent=60
Verification:
oc get hpa
oc describe hpa httpd
oc get deployment httpd -o yaml
Importance of resource requests:
HPA CPU utilization is measured relative to the requested CPU.
Without requests, percentage-based scaling is either incomplete or unusable.
This task centers on the prerequisites for autoscaling and on creating the scaling policy.
Question 2 Domain 9 Configure application security Lab task
Task 16
Set up a CronJob named test-cron
Task details:
Create a service account named jupiter.
Assign the anyuid SCC and the cluster-admin role to this service account.
Modify the CronJob cron-test so that it runs under the jupiter service account.
Work out the steps and commands you would run, then compare them with the solution
Answer walkthrough:
If necessary, change to the project that contains the cronjob:
oc project cron-test
Create the service account with the following command:
oc create sa jupiter
Assign the anyuid SCC:
oc adm policy add-scc-to-user anyuid -z jupiter -n cron-test
Assign the cluster-admin role:
oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:cron-test:jupiter
Patch the cronjob so it uses the new account:
oc patch cronjob cron-test -p '{'spec':{'jobTemplate':{'spec':{'template':{'spec':{'serviceAccountName':'jupiter'}}}}}}'
Check the result:
oc get cronjob cron-test -o yaml | grep serviceAccountName
Remarks:
The provided lab uses oc set sa cronjob.batch/cron-test jupiter, which is not the typical command syntax for CronJobs. Patching the pod template is the dependable approach.
This exercise evaluates how service accounts and permission changes are applied to scheduled workloads.
Question 3 Domain 7 Enable developer self-service Lab task
Roll out an application
Set up the application named oranges within the apples project such that these conditions hold:
The application runs under the ex280sa service account
No extra configuration components have been introduced or deleted. The application generates output
Work out the steps and commands you would run, then compare them with the solution
Solution steps:
$ oc project mercury
$ oc get pods
$ oc get all | grep deploy
$ oc describe deployment.apps/atlas | grep -L memory
$ oc set resources deployment.apps/atlas --resources=memory=80Mi
Get the complete EX280 question set
Get Full AccessQuestion 4 Domain 4 Manage authentication and authorization Lab task
Set up groups
Set up your OpenShift cluster so that it satisfies these requirements: The user account armstrong belongs to the commander group The user account collins belongs to the pilot group
The user account aldrin belongs to the pilot group
Members of the commander group are granted edit permission in the apollo project Members of the pilot group are granted view permission in the apollo project
Work out the steps and commands you would run, then compare them with the solution
Walkthrough:
$ oc adm groups new commander
$ oc adm groups new pilot
$ oc adm groups add-users commander armstrong
$ oc adm groups add-users pilot collins
$ oc adm groups add-users pilot aldrin
$ oc adm policy add-role-to-group edit commander -n apollo
$ oc adm policy add-role-to-group view pilot -n apollo
Question 5 Domain 2 Work with resource manifests Lab task
TASK
Set up a secure route
Set up the oxcart application inside the area51 project according to these requirements:
The application must expose a route named oxcart
The application must use a certificate signed by a CA that contains these subject fields:
/C=US/ST=NV/L=Hiko/O=CIA/OU=USAF/CN=classified.apps.domainxx.example.com The application can be reached only through this address: https://classified.apps.domainxx.example.com
The application generates output
A helper script named newcert is available to generate the CA signed certificate. You can type the certificate fields interactively or supply the subject as an argument.
Your certificate signing request will be sent to the CA, where it will be signed right away and then saved to your current directory.
Work out the steps and commands you would run, then compare them with the solution
Steps:
$ oc project area51
$ oc get pods
$ oc get all | grep deployment
$ oc get route
$ oc delete route oxcart
$ openssl genrsa -out ex280.key 2048
$ openssl req -new -key ex280.key -out ex280.csr -subj '/C=US/ST=NV/L=Hiko/O=CIA/OU=USAF/CN=classified.apps.domainxx.example.com'
$ openssl x509 -req -in ex280.csr -signkey ex280.key -out ex280.crt
$ oc create route edge oxcart --service oxcart --key ex280.key --cert ex280.crt --hostname classified.apps.domainxx.example.com
$ oc get route
$ oc get svc
Question 6 Domain 2 Work with resource manifests Lab task
Set up quotas
Set up your OpenShift cluster so that quotas apply within the manhattan project, meeting these conditions:
The ResourceQuota resource must be named ex280-quota
Total memory used by all containers combined must not go beyond 1Gi
The combined CPU consumption of all containers must not go beyond
2 full cores
The number of replication controllers must not exceed 3 The number of pods must not exceed 3
The number of services must not exceed 6
Work out the steps and commands you would run, then compare them with the solution
Steps:
$ oc project manhattan
$ oc create quota ex280-quota -- hard=memory=1Gi,cpu=2,pods=3,services=6,replicationcontrollers=3
$ oc get resourcequota
Question 7 Domain 5 Configure network security Lab task
Set up cluster permissions
Adjust your OpenShift cluster so that it meets these conditions: the user account jobs is able to carry out cluster administration duties, and the user account wozniak is permitted to create projects
the user account wozniak must not be able to carry out cluster administration duties, and the user account armstrong must not be able to create projects
the user account kubeadmin does not exist
Work out the steps and commands you would run, then compare them with the solution
Steps to follow:
$ oc adm policy add-cluster-role-to-user cluster-admin jobs
$ oc adm policy remove-cluster-role-from-group self-provisioner
system:authenticated:oauth
$ oc adm policy add-cluster-role-to-user self-provisioner wozniak
$ oc delete secret kubeadmin -n kube-system
Question 8 Domain 4 Manage authentication and authorization Lab task
Set up an identity provider
Make your OpenShift cluster rely on an HTPasswd identity provider that meets these conditions:
The identity provider must be named: ex280-htpasswd The secret must be named: ex280-idp-secret
The user account armstrong=indionce The user account collins=veraster The user account aldrin=roonkere The user account jobs=sestiver
The user account wozniak=glegunge
Work out the steps and commands you would run, then compare them with the solution
Procedure:
$ sudo yum install httpd-tools -y
$ htpasswd -c -B -b htpasswd-file-upload armstrong indionce
$ htpasswd -B -b htpasswd-file collins veraster
$ htpasswd -B -b htpasswd-file aldrin roonkere
$ htpasswd -B -b htpasswd-file jobs sestiver
$ htpasswd -B -b htpasswd-file wozniak glegunge
$ oc create secret generic ex280-idp-secret --from-file
htpasswd=htpasswd-file -n openshift-config
$ oc get oauth/cluster -o yaml> oauth.yaml
$ vim oauth.yaml
$
esc--> enter :set paste --> press enter --> switch to insert mode --> paste the content so the indentation stays correct
spec:
identityProviders:
- name: ex280-htpasswd mappingMethod: claim type: HTPasswd htpasswd:
fileData:
name: ex280-idp-secret
$ oc replace -f oauth.yaml
$ oc login -u armstrong -p indionce
$ oc login -u collins -p veraster
$ oc login -u aldrin roonkere
$ oc login -u jobs sestiver
$ oc login -u wozniak -p glegunge
#The following section is entirely optional and only added for convenient logging in
$ alias _kube='oc login -u kubeadmin -p ${kube_pass} ${api_url}'
$ alias _armstrong='oc login -u armstrong -p ${armstrong}
${api_url}'
$ alias _collins='oc login -u collins -p ${collins} ${api_url}'
$ alias _aldrin='oc login -u aldrin -p ${aldrin} ${api_url}'
$ alias _jobs='oc login -u jobs -p ${jobs} ${api_url}'
$ alias _wozniak='oc login -u wozniak -p ${wozniak} ${api_url}'
$ _armstrong;_armstrong;_collins;_aldrin;_jobs;_wozniak;
Question 9 Domain 7 Enable developer self-service Lab task
Task 4
Set up a resource quota in project rocky
Task details:
Within the project rocky, define a quota called rocky-quota that enforces limits on CPU, memory, pods, services, replication controllers, and secrets.
Work out the steps and commands you would run, then compare them with the solution
Solution:
Make sure the project is present and move into it:
oc new-project rocky
oc project rocky
Generate the quota:
oc create quota rocky-quota \
--hard=limits.cpu=2,limits.memory=1Gi,pods=3,services=6,replicationcontrollers=6,secrets=6
Check the result:
oc get resourcequota -n rocky
oc describe quota rocky-quota -n rocky
Notes:
The lab text uses cpu=2,memory=1G and secret=6; in real OpenShift usage, the more dependable forms are limits.cpu, limits.memory, and secrets.
If the exam specifically expects the exact resource names shown in the lab environment, use whatever the cluster accepts.
This task tests quota enforcement and namespace resource governance.
Practice every EX280 question in the full set, each one with its verified answer and a detailed explanation
Get Full AccessWhat the RedHat EX280 Exam Covers
Exam domains verified against the Official RedHat EX280 exam guide, last checked November 2026.
Domain 1 Manage OpenShift Container Platform
Administer OpenShift clusters through the web console and command-line interface. Create and delete projects, examine container images, and query Kubernetes resources. Monitor events and logs to maintain cluster health and troubleshoot common issues.
Domain 2 Work with resource manifests
Deploy applications from YAML manifests and templates. Use Kustomize for application configuration management. Create and configure secrets and ConfigMaps for application data and sensitive information.
Domain 3 Deploy applications
Deploy and manage applications using templates and Helm charts. Work with replica sets, labels, and selectors. Configure services and expose applications to external access through routes.
Domain 4 Manage authentication and authorization
Configure the HTPasswd identity provider for authentication. Create, delete, and manage users and groups. Modify permissions and manage user access to cluster resources.
Domain 5 Configure network security
Configure networking components and troubleshoot software-defined networking. Create and edit external routes. Secure traffic with TLS certificates and configure network policies for application isolation.
Above Practice Question from this Domain: Q7
Domain 6 Expose non-HTTP/SNI Applications
Configure load balancer services for non-HTTP protocols. Manage external application access for services that do not use standard HTTP or SNI routing.
Domain 7 Enable developer self-service
Configure cluster and project resource quotas to control resource consumption. Set resource requirements and limit ranges for projects. Create project templates to standardize deployments.
Domain 8 Manage OpenShift operators
Install, uninstall, and delete operators to extend cluster functionality. Manage operator lifecycle and coordinate operator-managed resources.
Domain 9 Configure application security
Configure service accounts and security context constraints to control application permissions. Manage access to Kubernetes APIs. Deploy jobs and cron jobs for scheduled tasks.
Above Practice Question from this Domain: Q2
EX280 Exam FAQ
Common questions about the exam itself
What experience do I need before taking EX280?
Is EX280 harder than other Red Hat exams?
How long should I spend preparing for EX280?
What is the hardest domain on EX280?
What does the exam actually involve on test day?
What is the passing score for EX280?
Can I retake EX280 if I fail?
How long does the EX280 certification stay valid?
How does EX280 fit into the Red Hat OpenShift certification path?
What job role does EX280 prepare me for?
Other RedHat Exams
Free practice questions for more RedHat certification exams
