EX180 Sample Questions & Answers
Questions span four evenly weighted areas: externalizing configuration and provisioning storage, health probes with resource limits and autoscaling, deploying apps from container images and templates, and managing OpenShift through the CLI and web console.
Launch the full EX180 simulator →Showing 6 of 12 free samples.
- Question 1Advanced
Manage OpenShift Container Platform · Inspect Kubernetes resources using both the CLI and the Web UI
You are troubleshooting a pod named
payment-gateway-7b99c5that is stuck in aCrashLoopBackOffstate. You need to identify the specific exit code of the last terminated container and the exact reason it failed. Which CLI command will provide this detailed historical status information?Show answer & explanation
Correct answer: A
The
oc describe podcommand provides a detailed, human-readable overview of the pod's lifecycle. Under the 'Containers' section, it shows the 'State' (current) and 'Last State' (previous), which includes the exact Exit Code and Reason for the termination that caused the CrashLoopBackOff. Whileoc logs --previousshows the logs, it does not explicitly state the container exit code.flowchart TD A[Pod in CrashLoopBackOff] --> B{What information is needed?} B -->|Application Output| C[oc logs --previous] B -->|Exit Code & State| D[oc describe pod] D --> E[Look at 'Last State' section] - Question 2IntermediateSelect 2
Manage OpenShift Container Platform · Inspect Kubernetes resources using both the CLI and the Web UI
A developer needs to export the current configuration of an OpenShift Service named
frontend-svcinto a YAML file to store in version control, but they want to exclude cluster-specific metadata (like resourceVersion and uid). Which TWO commands or combinations can achieve this? (Select TWO)Show answer & explanation
Correct answers: A, D
Using
oc get -o yamlcombined with a YAML processor likeyqis the standard modern approach to strip cluster-specific metadata, as the oldoc exportcommand has been deprecated and removed from OpenShift 4.x CLIs.Using
oc get svc frontend-svc -o yamlwill export the resource, though it requires manual cleanup of cluster-specific metadata (sinceoc exportis deprecated/removed in newer OCP versions). Another valid approach is usingoc getwith the--exportflag (if supported in the specific CLI version) or parsing with tools likeyqorjq. - Question 3Beginner
Manage OpenShift Container Platform · Collect cluster support data from an OpenShift cluster for Red Hat support
A cluster administrator is experiencing intermittent network connectivity issues across multiple worker nodes in an OpenShift 4.22 cluster. They decide to open a support case with Red Hat. Which command is specifically designed to collect the comprehensive diagnostic data required by Red Hat Support?
Show answer & explanation
Correct answer: C
The
oc adm must-gathercommand is the standard OpenShift utility used to collect comprehensive diagnostic information (logs, resource definitions, cluster state) across the entire cluster. This data is packaged into a tarball that can be attached to a Red Hat Support ticket. - Question 4Intermediate
Manage OpenShift Container Platform · Collect cluster support data from an OpenShift cluster for Red Hat support
Red Hat Support has asked you to provide diagnostic data specifically for the OpenShift Virtualization component, rather than the default cluster data. How do you instruct the
must-gathertool to collect data using a specialized container image?Show answer & explanation
Correct answer: D
You can target specific cluster components or operators by passing the
--imageflag tooc adm must-gather. This instructs the command to spin up a pod using that specific image, which contains specialized scripts to gather logs and resources relevant only to that component (like OpenShift Virtualization, Service Mesh, etc.). - Question 5Beginner
Manage OpenShift Container Platform · Inspect Kubernetes resources using both the CLI and the Web UI
True or False: The
oc describecommand outputs the exact raw YAML manifest of a resource as it is stored in the etcd database, making it the best command to use when backing up a resource configuration.Show answer & explanation
Correct answer: A
False. The
oc describecommand formats the resource data into a human-readable summary and aggregates related information (like recent events). To get the raw YAML manifest as stored in the API/etcd for backup purposes, you must useoc get -o yaml. - Question 6Advanced
Manage OpenShift Container Platform · Collect cluster support data from an OpenShift cluster for Red Hat support
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 & explanation
Correct answer: C
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.
Ready for the real thing?
The full EX180 simulator has every exam-style question, timed mode, and instant scoring.