Red Hat Certified Technologist in OpenShift Exam Free Sample Questions

Create a free account to browse all 12 sample questions. The full practice test includes 150 questions. Use the simulator for timed and flashcard mode.

Try Simulator

EX180 Sample Questions

  1. Question 1

    Q1

    A new DevOps engineer at FinTechCorp needs to access an OpenShift Container Platform 4.22 cluster. They have downloaded the oc CLI 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 & explanation

    Correct answer: C

    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.

  2. Question 2

    Q2

    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 & explanation

    Correct answer: C

    The oc config use-context command 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.

  3. Question 3

    Q3

    While writing a complex YAML manifest for a DeploymentConfig in OpenShift 4.22, a developer forgets the exact structure and accepted parameters for the strategy field. Which OpenShift CLI command provides the most direct, built-in documentation for this specific resource field without leaving the terminal?

    Show answer & explanation

    Correct answer: A

    The oc explain command is designed specifically to explore the API documentation of Kubernetes and OpenShift resources directly from the CLI. By typing oc explain DeploymentConfig.spec.strategy, the developer will see a description of the field, its type, and its nested sub-fields.

  4. Question 4

    Q4

    You are troubleshooting a pod named payment-gateway-7b99c5 that is stuck in a CrashLoopBackOff state. 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 pod command 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. While oc logs --previous shows 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]
  5. Question 5

    Q5Multiple answers

    A developer needs to export the current configuration of an OpenShift Service named frontend-svc into 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 yaml combined with a YAML processor like yq is the standard modern approach to strip cluster-specific metadata, as the old oc export command has been deprecated and removed from OpenShift 4.x CLIs.

    Using oc get svc frontend-svc -o yaml will export the resource, though it requires manual cleanup of cluster-specific metadata (since oc export is deprecated/removed in newer OCP versions). Another valid approach is using oc get with the --export flag (if supported in the specific CLI version) or parsing with tools like yq or jq.

  6. Question 6

    Q6

    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-gather command 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.

Register free to unlock 6 more sample questions

Create a free account to continue with the rest of the EX180 sample set.

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 150 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon