Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free RedHat Red Hat Certified OpenShift Administrator EX280 Exam Questions

Last updated: · 13 practice questions with answers and explanations

Page: 1 / 6 Total 33 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Manage OpenShift Container Platform

Skill tested: Diagnose pod startup failures using pod events, logs, and workload status.

A production deployment has stopped serving requests after a node maintenance window. The Deployment still requests three replicas, but two pods remain in CrashLoopBackOff and the third is Pending. The application image was not changed during maintenance, and the service has no recent endpoint updates. You have cluster-admin access, but application changes must not be made until the underlying failure is understood. Which action should you take first to distinguish an application startup failure from a scheduling or node problem?

Correct Answer: D. Inspect the affected pods' descriptions and events, then review logs from a previous crashed container.
Explanation:

Pod descriptions and events reveal scheduling, volume, image, and node-related failures; logs from the previous container instance can expose the reason for a crash that is no longer visible in the current process. This gathers evidence without changing the workload, as required. Scaling or recreating the service does not explain the failures and can disrupt availability. Changing a probe before identifying the cause masks symptoms and may not help a Pending pod at all.

Question 2

New Multiple answers

Topic: Declarative Resource Management

Skill tested: Apply base manifests and use Kustomize overlays for environment-specific changes.

A platform team maintains an application Deployment in a shared Git repository. Development and staging must use the same base resources, while staging needs three replicas and a different image tag. The team applies resources with `oc apply -k` and wants future base changes to flow into both environments without duplicating the Deployment manifest. Which TWO practices meet these requirements? Select TWO answers.

Correct Answer: A. Put the common Deployment manifest in a base directory and reference it from both environment overlays.; D. Use staging overlay patches or image transformations to set the replica count and image tag.
Explanation:

A Kustomize base holds shared resources, while overlays reference that base and express environment-specific changes through patches or supported transformations such as image tag updates. This preserves one common source and lets base updates propagate. Duplicating the manifest defeats reuse. Applying the base after the overlay can reassert base values, depending on the changed fields, and is not a sound overlay workflow. Helm and Kustomize have distinct rendering workflows; the proposed unrendered hybrid is not a Kustomize overlay practice.

Question 3

New Single answer

Topic: Deploy applications

Skill tested: Install a Helm chart and expose its application through a service and route.

An operations group must deploy a vendor-supplied Helm chart for an internal dashboard to OpenShift. The chart creates a ClusterIP Service and accepts configuration values for the service and application. The dashboard must be reachable from outside the cluster over HTTP; the organization requires OpenShift-managed ingress and does not permit a NodePort or external load balancer. Which approach is most appropriate?

Correct Answer: D. Install the chart with a ClusterIP Service, verify its selector and target port, then create an OpenShift Route targeting that Service.
Explanation:

A Route provides OpenShift ingress to a Service, while the ClusterIP Service provides stable in-cluster access to the chart's selected pods. Confirming the Service port and selector prevents a route that has no usable backend. NodePort violates the stated constraint. ExternalName is for DNS aliasing rather than selecting the chart's pods, and routes target Services rather than individual pod IPs. Per-replica routes are unnecessary and fragile.

Question 4

New Multiple answers

Topic: Manage authentication and authorization

Skill tested: Configure HTPasswd users and groups, then grant project access through role bindings.

A disconnected OpenShift cluster uses a local HTPasswd identity provider for a small operations team. An administrator must add two named users, place them in an operations group, and grant that group edit access only in project `reports`. Existing identities and unrelated project permissions must remain unchanged. Which TWO actions are appropriate? Select TWO answers.

Correct Answer: A. Update the HTPasswd credential file with the users, create or update the referenced secret, and update the OAuth identity-provider configuration as required.; E. Create the OpenShift group with the two usernames as members, then create a RoleBinding for `edit` in project `reports` that names the group.
Explanation:

HTPasswd credentials are maintained in the identity-provider credential source, which must be reflected in the cluster's OAuth configuration. A separate OpenShift Group can organize the identities, and a project-scoped RoleBinding grants that group `edit` only in `reports`. A ClusterRoleBinding would expand permissions cluster-wide. Granting `system:authenticated` access affects all authenticated users, while individual `admin` bindings exceed the requested privilege and ignore the intended group-based access model.

Question 5

New Single answer

Topic: Configure network security

Skill tested: Configure TLS routes and network policies to control ingress and pod traffic.

A payment service is exposed through an OpenShift edge-terminated Route. Its application pods are in namespace `payments`, and only the ingress controller and pods labeled `role=ledger` in that namespace should initiate connections to the payment pods on TCP port 8443. The namespace currently has no NetworkPolicy, and the application listens on 8443. Which configuration best satisfies both requirements?

Correct Answer: C. Keep the edge-terminated Route, configure the Service to target the application port, and add an ingress NetworkPolicy selecting payment pods with allowed sources for the ingress-controller namespace and `role=ledger` pods.
Explanation:

An edge-terminated Route ends client TLS at the router and forwards traffic to the backend Service, which must direct traffic to the application's listening port. The ingress policy must select the protected payment pods and allow only the intended sources and port; once an ingress policy selects pods, other ingress is denied by default for those pods. A permits every namespace. C applies egress control to the wrong direction and changes TLS behavior without need. D protects ledger pods rather than payment pods.

Question 6

New Single answer

Topic: Expose non-HTTP/SNI Applications

Skill tested: Expose a non-HTTP TCP service externally using a load balancer Service.

A cluster-hosted legacy telemetry collector accepts raw TCP on port 4317 and cannot be modified to use HTTP or TLS SNI. The network team requires a stable external address and direct TCP access; HTTP Routes are not acceptable, and the cluster's infrastructure supports LoadBalancer Services. What should the administrator configure and verify?

Correct Answer: A. Create a Service of type LoadBalancer selecting the collector pods on TCP 4317, then verify its assigned external address and connectivity.
Explanation:

A LoadBalancer Service is the appropriate way to expose a raw TCP application externally when the infrastructure can provision one. Its selector and port mapping provide a stable service endpoint, and checking the assigned external address and end-to-end TCP connectivity verifies operation. An HTTP Route is not a general-purpose raw TCP endpoint. NodePort does not meet the stable-address requirement without additional infrastructure. Headless services publish pod addresses, which are not stable external endpoints.

Question 7

New Multiple answers

Topic: Enable developer self-service

Skill tested: Set project quotas, limit ranges, and reusable project-provisioning templates.

A platform group is enabling self-service project creation for application teams. Every new project must begin with a quota limiting aggregate CPU, memory, and pod consumption, plus a LimitRange setting defaults and per-container bounds. Teams may then request additional capacity through an approval process. The platform must apply these controls consistently at project creation rather than relying on developers to remember them. Which TWO actions best meet the requirement? Select TWO answers.

Correct Answer: C. Create a project template containing the required ResourceQuota and LimitRange resources, and configure project provisioning to use that template.; E. Create an approved project template with the ResourceQuota and LimitRange, and verify that the project request workflow provisions projects from it.
Explanation:

A project template can supply both namespace-scoped controls, and configuring the provisioning workflow to instantiate that template ensures new projects receive them consistently. ResourceQuota enforces aggregate consumption, while LimitRange sets per-container or per-pod defaults and bounds. A LimitRange alone does not impose aggregate quota. A single cluster-wide quota does not automatically function as the requested per-project provisioning mechanism. Relying on developers to add controls afterward creates the precise consistency gap the scenario seeks to eliminate.

Question 8

New Single answer

Topic: Manage OpenShift operators

Skill tested: Uninstall an Operator while choosing whether to retain its ClusterServiceVersion.

An Operator was installed in a dedicated namespace from OperatorHub using an OperatorGroup and Subscription. The application custom resources have already been removed, and the team now wants to uninstall the Operator while preserving its CSV temporarily for audit review. Which action best matches this requirement?

Correct Answer: B. Delete the Subscription to stop the Operator lifecycle management, and use the supported uninstall option to retain the CSV when removing the Operator.
Explanation:

The Subscription drives OLM installation and updates, so removing it is part of stopping lifecycle management. OpenShift's Operator uninstall workflow supports choosing whether to remove or retain the ClusterServiceVersion; retaining it satisfies the audit requirement while uninstalling the Operator. Deleting only the CSV does not reliably stop the Subscription from reconciling the installation. Removing the OperatorGroup alone is not a substitute for the uninstall workflow. Deleting the namespace would remove its contents, including the CSV.

Question 9

New Single answer

Topic: Configure application security

Skill tested: Grant a workload a dedicated service account and narrowly scoped privileged SCC access.

A vendor appliance container must run with a privileged security context to access a device exposed on its worker node. It currently runs under the default service account and is rejected by SCC admission. The requirement applies only to this workload; other applications in the namespace must remain restricted. What is the best configuration?

Correct Answer: C. Create a dedicated service account, configure the workload to use it, and grant only that service account access to the privileged SCC.
Explanation:

SCC admission evaluates the service account used by the pod. A dedicated account allows administrators to grant privileged SCC use only to the appliance workload, limiting the scope of elevated permissions. Granting the namespace's default account would broaden access for other workloads. Setting `privileged: true` in the pod spec does not bypass SCC authorization, and disabling admission is neither the supported nor a safe approach. Running as UID 0 does not itself authorize privileged mode.

Question 10

New Multiple answers

Topic: Manage OpenShift Container Platform

Skill tested: Restore workload availability by correcting diagnosed configuration and verifying recovery.

After inspecting events and previous-container logs, an administrator finds that a Deployment's pods fail because the application requires a mounted ConfigMap key named `settings.yaml`, but the referenced ConfigMap contains only `application.yaml`. The image and node are healthy, and a second healthy replica is still serving traffic. The organization requires a controlled, declarative fix and confirmation that the rollout recovers without disrupting the healthy replica. Which TWO actions are most appropriate? Select TWO answers.

Correct Answer: C. Watch the Deployment rollout and pod readiness after applying the corrected configuration, and verify service endpoints.; D. Correct the ConfigMap key or the Deployment's referenced key in the declarative manifests, then apply the change.
Explanation:

The logs identify a configuration-key mismatch, so fixing the declarative source - either the ConfigMap key or the pod's key reference - addresses the cause and survives future reconciliation. Monitoring rollout status, readiness, and Service endpoints verifies that replacement pods became available while the existing replica continued serving. Deleting the healthy pod increases risk without correcting the mismatch. Direct pod edits are ephemeral and mounted ConfigMap data is managed by Kubernetes. More replicas cannot compensate reliably for a missing required key.

Question 11

New Single answer

Topic: Declarative Resource Management

Skill tested: Use Kustomize patches to change selected fields without replacing shared manifests.

A staging overlay must change a Deployment's replica count from two to four and add a staging-only environment variable. The shared base must retain its production-neutral values, and unrelated fields - including selectors, ports, and labels - must remain unchanged. The team currently maintains a full copied Deployment YAML in staging. What is the best refactoring?

Correct Answer: A. Reference the shared Deployment from the staging overlay and add a targeted patch for replicas and the environment variable.
Explanation:

Kustomize overlays are designed to reuse base resources and apply focused environment-specific changes. A targeted patch can set replicas and add the variable while leaving selectors, ports, and other shared fields sourced from the base. Keeping a copy creates drift and manual merge work. A ConfigMap or Route does not replace a Deployment manifest. Deleting and recreating the resource is unnecessarily disruptive and undermines the requirement to preserve unrelated fields.

Question 12

New Single answer

Topic: Deploy applications

Skill tested: Select Helm values and OpenShift route settings for secure external application access.

A team installs a Helm chart for a customer portal. The chart exposes a Service on port 8080 and supports an ingress setting, but the organization standard is to expose applications through OpenShift Routes. The portal must use HTTPS from clients, while traffic from the router to the Service remains HTTP. No custom certificate is required. Which deployment approach is most appropriate?

Correct Answer: B. Install the chart with ingress disabled, ensure its Service selects the pods on port 8080, and create an edge-terminated Route to the Service.
Explanation:

An edge-terminated Route provides client-side HTTPS at the OpenShift router and sends HTTP to the backend Service, matching the stated traffic requirement without a custom certificate. Disabling the chart's unrelated ingress avoids introducing a second exposure path, while the Service must correctly select pods and map to port 8080. A self-signed Ingress conflicts with the platform standard and is unnecessary. A LoadBalancer and application-side TLS add unrequested infrastructure and configuration. Passthrough requires TLS at the backend.

Question 13

New Multiple answers

Topic: Manage authentication and authorization

Skill tested: Use project-scoped role bindings to grant least-privilege access to a team.

A security review finds that a support group has a cluster-wide binding to the `view` role, but the team should inspect resources only in projects `alpha` and `beta`. They must not receive write access, and their access must be removed from every other project without changing individual user identities. Which TWO changes best implement least privilege? Select TWO answers.

Correct Answer: D. Remove the cluster-wide binding that grants the group `view`.; E. Create a `view` RoleBinding for the group in project `alpha` and another in project `beta`.
Explanation:

Removing the cluster-wide binding eliminates the group's unintended access to other projects. Two namespace-scoped RoleBindings to the built-in `view` role grant read-only access only in `alpha` and `beta`, which meets the scope and permission requirements without altering identities. A cluster-wide `edit` binding would grant broader permissions and scope. Project-level cluster-admin is excessive. Replacing human identities with service accounts is unnecessary and complicates identity management.