10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.
These 10 free EX280 questions are organized by exam domain, so you can see how each part of the Red Hat Certified System Administrator in OpenShift (EX280) blueprint is tested. Reveal the answer and explanation under each question.
Domain 1: Manage OpenShift Container Platform
Question 1
An HPA controls four Ready replicas of a Deployment. Each pod has one container with a CPU request of 250m and a CPU limit of 1000m. A complete metrics sample shows that each container is using 200m of CPU. CPU is the HPA's only scaling metric. It targets average CPU utilization of 60%, with minReplicas: 2 and maxReplicas: 8. Tolerance, stabilization, and scaling-rate limits do not constrain this decision.
What replica count does the HPA calculate from this sample, before any new pods start?
Show answer & explanation
Correct answer: A - 6 replicas.
Question 2
The /live endpoint of a report engine returns HTTP 503 during initialization, which normally takes 70-110 seconds, then returns HTTP 200. Its current liveness probe checks /live every 5 seconds and restarts the container after three consecutive failures. The container therefore keeps restarting before initialization finishes. Once initialization has succeeded, operators need to retain the current sensitivity to a later process hang. No startup probe is configured.
Which probe design accommodates initialization without weakening subsequent liveness detection?
Show answer & explanation
Correct answer: A - Add a startupProbe on /live with periodSeconds: 5 and failureThreshold: 30, retaining the current liveness probe.
Domain 2: Use the web console to manage and configure an OpenShift cluster
Question 3
A production Kustomize overlay generates ConfigMap checkout-settings from settings.env. Content-hash suffixes are enabled. The Deployment in the same build has an envFrom reference to checkout-settings in its pod template. An engineer changes TAX_REGION in settings.env and successfully runs oc apply -k overlays/production. Nothing else changes, and no other controller modifies the Deployment.
Why can this configuration change initiate a rollout even though the container image is unchanged?
Show answer & explanation
Correct answer: D - The generated ConfigMap name changes, and Kustomize updates its reference in the Deployment's pod template.
Question 4
Two Deployments in project retail consume the same ConfigMap. The api application reads TAX_REGION from an environment variable populated through configMapKeyRef when its container starts. The renderer application opens its ConfigMap-mounted settings file on every request; the volume does not use subPath.
After the ConfigMap changes, the new value is already visible in renderer's mounted file, while api's environment still contains the old value. Neither Deployment's pod template has changed. Select the minimum workload restart needed for both applications to use the new setting.
Show answer & explanation
Correct answer: C - Roll out api; renderer can use the changed file without a restart.
Domain 3: Use the command-line interface to manage and configure an OpenShift cluster
Question 5
Only the catalogue application is unreachable; other Routes work. Its admitted edge Route forwards to the http port of Service catalogue in project retail. The Service selects the correct, Ready pods. From a diagnostic pod, HTTP to a catalogue pod's IP on port 8081 succeeds, but port 8080 refuses the connection. The pod template declares containerPort: 8081. No NetworkPolicy restricts this traffic.
The Service's port definition is:
name: http
port: 80
targetPort: 8080
The application must continue listening on 8081. Where should the port mapping be repaired?
Show answer & explanation
Correct answer: B - Set targetPort: 8081 for Service catalogue's http port, retaining port: 80.
Domain 4: Create and delete projects
Question 6
You have extracted the htpasswd key from the Secret used by a working HTPasswd identity provider. The local file users.htpasswd contains twelve users, including imani. You must change only imani's password and preserve the other eleven password hashes. After editing the file, you will update the same Secret's htpasswd key in openshift-config.
Which operation belongs in this password-change procedure?
Show answer & explanation
Correct answer: B - Run htpasswd -B users.htpasswd imani and enter the replacement password when prompted.
Domain 5: Locate and examine container images
Question 7
Clients can still validate the public certificate on a re-encrypt Route, but requests return HTTP 503 after the backend's certificate authority is rotated. Router diagnostics identify backend TLS certificate verification failure. A direct test to the backend succeeds when the new, approved CA bundle is supplied. The Route configuration has not changed. The router must continue presenting its existing public certificate, and both network legs must remain encrypted.
Which targeted repair restores the required trust relationship?
Show answer & explanation
Correct answer: C - Update the Route's spec.tls.destinationCACertificate to trust the new backend CA.
Domain 6: Identify images using tags and digests
Question 8
An external appliance sends a proprietary TCP protocol on port 9100. It uses neither HTTP nor TLS and cannot be modified. Inside OpenShift, Service ingest already selects Ready backend pods and maps TCP 9100 to their TCP 9100 listener. The appliance requires one externally reachable virtual IP on port 9100, not a worker-node address or node port. A functioning LoadBalancer implementation has an available address, and the external firewall permits TCP 9100.
Choose the exposure that fits this protocol and connection contract.
Show answer & explanation
Correct answer: C - Change ingest to type LoadBalancer, preserving its selector, port, and targetPort.
Domain 7: Query, format, and filter attributes of Kubernetes resources
Question 9
A project has one ResourceQuota with this current accounting:
Resource Used Hard
pods 6 12
requests.cpu 2100m 4
Each proposed pod has two ordinary containers: an application requesting 400m of CPU with a limit of 1 CPU, and a log collector requesting 200m with a limit of 500m. There are no init containers, pod overhead, or additional quotas. Node capacity is sufficient, and existing quota usage will not change while these pods are admitted.
How many additional pods can be admitted, and what accounts for that result?
Show answer & explanation
Correct answer: D - Three pods; both containers' CPU requests count against the remaining CPU allowance.
Domain 9: Examine resources and cluster status
Question 10
A vendor-supported image requires runAsUser: 0 and cannot be rebuilt. It needs neither privileged mode nor access to host namespaces or host filesystems. Its Deployment already uses service account vendor-app in project finance, but pod admission rejects UID 0. All other security requirements are satisfied. The approved SCC choices for this exception are anyuid and privileged; SCC definitions must not be modified.
Choose the authorization that admits this workload without extending the exception to other service accounts or granting unnecessary host privileges.
Show answer & explanation
Correct answer: A - Grant use of the anyuid SCC to service account vendor-app in finance.