Which OpenShift CLI command deploys a containerized application directly from a Git repository using the Source-to-Image (S2I) strategy?
Application Deployment
Question · Easy
A developer needs to expose a Deployment named `frontend` to external traffic on port 80 as a Route in OpenShift. What is the fastest way using the `oc` CLI?
Networking
In OpenShift, which resource type provides automated builds triggered by changes to a source code repository or base image?
Builds
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Which `oc` command shows the current build status and streams the build log for a BuildConfig named `myapp`?
An OpenShift ConfigMap named `app-config` contains a key `database.url`. How do you inject this value as an environment variable named `DB_URL` into a Deployment?
Configuration
Question · Medium
Which OpenShift resource stores sensitive data such as TLS certificates, passwords, or API tokens in a base64-encoded (not encrypted by default) format?
In OpenShift, what is the purpose of an ImageStream and ImageStreamTag?
Which `oc` command creates a persistent storage claim of 5Gi using the `standard` StorageClass for a pod?
Storage
A container in OpenShift fails to start due to an `ImagePullBackOff` error. What is the most likely cause?
Troubleshooting
Which `oc` command scales a Deployment named `backend` to 5 replicas?
An OpenShift Route is configured with TLS termination type `passthrough`. What does this mean?
Which command in OpenShift creates a new project named `dev-team` with the description 'Development Team Project'?
Project Management
A containerized application requires a liveness probe to restart the pod if the app becomes unresponsive. Which HTTP-based probe configuration is correct?
Application Health
Which `oc` command sets CPU and memory resource requests and limits on an existing Deployment named `api-server`?
An application deployment uses a rolling update strategy. What happens during a rolling update in OpenShift?
Which `oc` command shows the deployment rollout history and allows rolling back to a previous version?
A developer wants to test their application locally before deploying to OpenShift. Which `oc` command can forward traffic from a local port 8080 to a pod's port 8080?
What is the role of a ServiceAccount in OpenShift for containerized services?
Security
A pod in OpenShift needs to access a volume that requires running as a specific group ID (GID 2000). Which field in the pod's SecurityContext sets the filesystem group?
Question · Hard
Which `oc` command allows editing a live Kubernetes/OpenShift resource (like a ConfigMap) directly in the default text editor?
In OpenShift, what is the purpose of a `HorizontalPodAutoscaler` (HPA)?
A developer needs to inject configuration into a container from a ConfigMap as files (not environment variables) mounted at `/etc/app/config.d/`. Which approach is correct?
Which `oc` command streams the logs from all pods matching a label selector `app=frontend` in the current project?
What is the primary difference between OpenShift's `DeploymentConfig` and Kubernetes' native `Deployment` resource?
Which NetworkPolicy configuration allows all pods in the `frontend` namespace to access pods in the `backend` namespace on port 5432?
A container in OpenShift is in `CrashLoopBackOff` state. What is the recommended first diagnostic step?
In OpenShift, which resource type can limit the total CPU and memory consumed by all pods in a project?
A containerized web application uses an environment variable `APP_MODE` set to `production`. In OpenShift, which is the best practice for handling this non-sensitive configuration across multiple deployments?
Which `oc` command creates a generic Secret named `db-secret` with a key `password` set to the value `MyP@ssw0rd`?
After deploying an application to OpenShift, you need to verify which image tag is being used across all replicas. Which command shows this clearly?
A StatefulSet in OpenShift requires each pod to have its own PersistentVolumeClaim. Which field in the StatefulSet spec defines this?
Which `oc` command triggers a new build manually for the BuildConfig `myapp` without making code changes?
To permanently configure the default resource requests for all containers in a project that don't specify their own, which resource should an admin create?
An OpenShift application requires an init container to initialize a database schema before the main container starts. Where is the init container defined?
Which OpenShift object enables developers to create templates that provision a set of resources (Deployment, Service, Route, Secret) in one operation?
What does `oc set image deployment/myapp myapp=registry.example.com/myapp:v2` accomplish?
A containerized service must communicate with another service in a different OpenShift project/namespace using internal DNS. What is the correct DNS name format?
When using `oc new-app` to deploy from a Dockerfile in a Git repository, how can you specify that a Docker build strategy should be used instead of S2I?
What is the purpose of the `readinessProbe` in an OpenShift/Kubernetes pod spec?
A containerized service on OpenShift needs to store session state that must survive pod restarts but not necessarily pod deletion. Which storage type is most appropriate?
Which OpenShift security feature prevents a container from running as root unless explicitly permitted?
To see all events in a project sorted by timestamp, including pod scheduling failures and image pull errors, which command is used?
A Service of type `ClusterIP` in OpenShift is only reachable within the cluster. To expose it externally using OpenShift's built-in HAProxy router, which resource is required?
In an OpenShift S2I build, where does the builder image look for the application source code by default?
A containerized application running in OpenShift is consuming too much CPU, affecting other pods on the node. Which setting in the pod spec limits CPU consumption?
Which command in OpenShift generates a YAML manifest for an existing running Deployment that can be saved and reapplied?
What happens to pods in a project when a ResourceQuota's CPU limit is reached and a new Deployment tries to create additional pods?
Loading more…