EX180 Red Hat Certified Technologist in OpenShift Exam Practice Questions
Prepare for EX180 with more than an answer.
- Level
- Technologist (foundational)
Domains covered on the exam 4
- Manage OpenShift Container Platform25%
- Deploy applications on Red Hat OpenShift Container Platform25%
- Manage storage for application configuration and data25%
- Configure applications for reliability25%
- 1
LogiTrans Inc. is operating a production OpenShift 4.22 cluster. They are utilizing Red Hat OpenShift Service Mesh. Recently, the telemetry data is not appearing in the Kiali console. The administrator needs to open a support ticket.
flowchart LR A[OpenShift Cluster] --> B[Service Mesh Operator] B --> C[Istio Control Plane] B --> D[Kiali Console] D -.->|Missing Data| E[Red Hat Support]The administrator runs the standard
oc adm must-gathercommand, but Red Hat support responds that the specific Service Mesh diagnostic logs are missing. What is the most optimal way to resolve this and provide the correct data?Show answer details
Correct answer: B
The default
oc adm must-gathercommand collects base cluster data. For layered products and specific operators like OpenShift Service Mesh, Red Hat provides specialized must-gather images. By passing the--imageflag with the Service Mesh must-gather image, the tool will execute scripts specifically designed to pull Istio, Kiali, and Jaeger telemetry logs, configurations, and state data needed by support. - 2
You have been granted access to a new OpenShift cluster, but you only have access to the Web Console and do not know the API URL to authenticate via the CLI. Where in the OpenShift Web Console can you quickly find the exact
oc logincommand pre-populated with the API URL and a temporary authentication token?Show answer details
Correct answer: B
In the OpenShift Web Console, clicking on your username in the top right corner opens a dropdown menu. Selecting 'Copy login command' redirects you to an authentication page where you can display a temporary API token and the exact
oc logincommand needed to connect your CLI to the cluster. - 3
A developer wants to quickly spin up a single, unmanaged pod running the
nginx:latestimage for a quick network test without creating a Deployment or any other higher-level controller. Which command is best suited for this task?Show answer details
Correct answer: C
The
oc runcommand is specifically designed to create a bare Pod without any higher-level controllers (like Deployments or ReplicaSets). This is ideal for quick, throwaway tasks or tests.oc new-appcreates a full application stack (Deployment, Service, ImageStream). - 4
You need to inspect the metadata, labels, and exposed ports of a remote container image located at
quay.io/myorg/myapp:v1.2before pulling it down to your local workstation. Which tool allows you to inspect remote container images without downloading the image layers?Show answer details
Correct answer: C
The
skopeo inspectcommand allows you to view image metadata directly from a remote container registry without needing to pull the image layers to your local host.podman inspectrequires the image to be present locally. - 5
A new DevOps engineer at FinTechCorp needs to access an OpenShift Container Platform 4.22 cluster. They have downloaded the
ocCLI tool and have been provided with an API URL and credentials. Which of the following commands is the correct way to authenticate to the cluster and establish a new context in their kubeconfig file?Show answer details
Correct answer: B
The correct command to authenticate to an OpenShift cluster using the CLI is
oc login. You specify the API server URL and can optionally pass the username with-u. This command prompts for a password and automatically updates the kubeconfig file with the new cluster context and authentication token. The other commands are syntactically incorrect or do not exist in the OpenShift CLI. - 6
A system administrator is managing multiple OpenShift clusters (development, staging, and production). They need to switch their current CLI session from the development cluster to the production cluster. They already authenticated to both clusters earlier today. Which command should they use to seamlessly switch their active context?
Show answer details
Correct answer: B
The
oc config use-contextcommand allows you to switch between different contexts stored in your kubeconfig file. A context is a combination of a cluster, a user, and a namespace. Since the administrator is already authenticated, switching the context instantly points their CLI to the production cluster without needing to log in again.
