Browse all practice questions for the Red Hat Openshift Developer EX288 Practice Exam. Search by topic, open any question and review its full explanation, then test yourself in the practice quiz.

Master the Red Hat Openshift Developer EX288 2026 – Code Your Way to Success! course image
All questions

These questions are part of the practice quiz. Start practicing

  • How do you expose a Pod port to a Service in OpenShift?
  • Which statement compares S2I BuildConfigs and Dockerfile-based BuildConfigs in OpenShift?
  • ImageStreams in OpenShift provide which capability?
  • Which feature allows an ImageStream to automatically update its tag from an external image source?
  • How would you mount a ConfigMap as a volume in a Pod?
  • View the rollout history for a deployment config php.
  • Which mechanism enables safely updating applications to new image versions while retaining rollback capability?
  • How do you access OpenShift’s logging and metrics for your application?
  • Which command creates a template from the file template.json?
  • Which resource type stores non-sensitive configuration data that can be consumed as environment variables?
  • What is oc patch and how is it different from oc replace?
  • How do maxSurge and maxUnavailable influence rolling updates in a Deployment?
  • Compare Deployment and StatefulSet in OpenShift: when would you choose each?
  • Which command creates a Docker registry secret named quayio for the server quay.io with user1 and pw123?
  • How do you call the s2i run script located at /usr/libexec/s2i/run from a custom run script?
  • What is an OpenShift project and how does it relate to Kubernetes namespaces?
  • Podman registry credentials are stored in which file path on the host file system for a typical user session?
  • Which command would move an image tag between image streams?
  • What is image promotion in OpenShift, and how do you move an image between streams?
  • Which command links the secret quayio to the default service account for pulling images?
  • Which command exposes a service named mysvc?
  • Which directory holds environment-specific customizations for an app named myapp in the recommended structure?
  • Which command starts a build for a specific buildconfig named myjava?
  • What is an ImageStreamTag and how does it support automatic image updates?
  • How do you configure DNS for a Route host and ensure external users can reach the Route?
  • Which command uses a template dev/lampstack and sets PORT=8080 for an app named myjava without specifying namespace?
  • Which TLS termination options are supported for an OpenShift Route?
  • What is an ImageStream in OpenShift and what is its purpose?
  • Which steps help ensure a container runs as a non-root user in OpenShift?
  • How do you customize the service account used by a deployment, and why would you do so?
  • In the image change trigger example, which container name is specified?
  • How would you configure a BuildConfig to respond to Git webhook events and automatically start builds?
  • Which command grants the system:image-puller role to system:serviceaccount:myphp in the otherphp namespace?
  • Which OpenShift resource is primarily used to expose an application to external traffic with a stable hostname?
  • In an overlay kustomization.yaml, how do you refer to an overlay file called replica_count.yaml?
  • Which statement best describes NetworkPolicy in OpenShift and how it affects pod traffic?
  • If you want to access a database service in OpenShift from an application, which approach is recommended?
  • Which snippet correctly declares a MySQL dependency on version 5.6 from the MySQL charts repository in chart.yaml?
  • Explain how a PersistentVolumeClaim provides storage to a Pod.
  • Which statement best describes the purpose of values.yaml in a Helm chart?
  • How is a ServiceAccount's API token made available to applications inside a pod, and how can an application use it?
  • How do you create a new OpenShift project and switch to it?
  • In a Helm template, how do you refer to the image.port parameter?
  • Which command creates a template from a local file to create a template object?
  • How would you verify that a newly created Route is correctly exposing your application?
  • Which Tekton resource represents the execution of a Pipeline, enabling traceability of a specific run?
  • Which command creates a new Helm chart skeleton named myphp?
  • True or False: An ExternalName service represents an external host.
  • What components are typically generated by oc new-app when creating an application from templates?
  • How would you diagnose a Pod that is stuck in CrashLoopBackOff?
  • Which Helm command installs a chart from the local directory into the cluster?
  • In the image change trigger example, which namespace is specified?
  • Which S2I script is used to save build artifacts?
  • Which s2i command tests a local build using the image phpbuild:latest with source in the ./app and tags it as php:1?
  • How can you restrict a pod from using more than a specified amount of CPU or memory?
  • How do you view all resources in the current project with details?
  • In the command oc set env buildconfig/phpbuild BUILD_LOGLEVEL=4, what resource type is being configured?
  • How can you ensure your application can access a database service running in OpenShift?
  • Which command configures the build config phpbuild to trigger whenever the base image newapp/php:1 changes?
  • Rollback to version 2 of deployment config php.
  • How do labels and selectors connect between Services, Pods, and Deployments in OpenShift?
  • What is the purpose of oc new-app, and how does it help speed up application creation in OpenShift?
  • Which OpenShift object is used to group related resources with parameters, enabling reuse?
  • Which command would create a service representing an external host named customerdb.oracle.com?
  • Using the OpenShift CLI, which command would you use to set a readiness probe on a deployment named phpapp with port 8080 and the /healthz endpoint, checking every 30 seconds?
  • How can you mount a Secret as files inside a container?
  • Which command forwards traffic from your local machine to a Pod port in OpenShift?
  • What is the purpose of a Route in OpenShift?
  • Which command adds an environment variable to deployment myapp from a secret named mysecret?
  • In kustomize, where do you define the files to be built for a customization?
  • Where do readiness probes go in a deployment spec?
  • What is the purpose of a Kubernetes namespace versus an OpenShift project, and how does RBAC differ?
  • How do you create a secret from literal values using the CLI?
  • How can you rotate a secret in OpenShift without causing downtime for apps using it?
  • Which deployment strategy is designed to minimize downtime during updates by controlling the number of pods upgraded at a time?
  • How do you create configmap cm2 for the file /tmp/values.txt?
  • How do ConfigMaps and Secrets differ, and how can they be consumed by a Pod?
  • How do you grant a user permissions to manage resources within a project using RBAC?
  • Where do liveness probes go in a deployment spec?
  • In the set volume command, what is the container path where the config map is mounted?
  • Which OpenShift CLI command shows the current project context when run without arguments?
  • In a Helm template for a pod, how do you add an array of environment variables from a values.yaml array named env?
  • Which command would you use to list the Route resources in the cluster?
  • Which command creates an image stream myphp:1.0 by importing from quay.io/test/myphp:latest with --confirm?
  • What is the name of the overlay file referenced to change the replica count in the example?
  • What does the oc set image command do and how can it trigger a rollout?
  • What does a Route do in OpenShift?
  • When deciding between a Source-to-Image (S2I) builder and a custom builder image in OpenShift BuildConfig, which is correct?
  • Mounting a Secret as a volume results in secret data being available to the container in which form?
  • What is the recommended directory structure for an application named myapp in a kustomize project?
  • Which command verifies the current OpenShift project you are in after switching?
  • What is the purpose of the Downward API in Kubernetes/OpenShift?
  • How do you create configmap cm1 with value PORT=8080?
  • Which command creates an app named myjava from template dev/lampstack in namespace dev with PORT=8080?
  • Which statement describes the role of chart.yaml?
  • How does the Downward API expose pod metadata to containers?
  • What is the purpose of a Service in OpenShift, and how does it enable pod communication?
  • How do you create a secret named mysecret with password=secretpassword?
  • In RBAC, which resources are most appropriate to grant namespace-scoped permissions to create pods?
  • Which command mounts config map cm1 as volume myvol into /tmp/config in deployment myapp?
  • What is the purpose of the oc apply -f command?
  • Name the core Tekton resources used in OpenShift Pipelines and briefly describe each.
  • What is the purpose of SecurityContextConstraints in OpenShift?
  • What is a rolling update, and how does OpenShift perform upgrades without downtime?
  • What is required to persist a database's data across restarts in OpenShift?
  • Which OpenShift CLI command switches to a different project?
  • How do you pause and resume a Deployment rollout in OpenShift?
  • How can you roll back a failed deployment in OpenShift?
  • In a Kubernetes Deployment, which field controls the number of desired pod replicas?
  • What is the command to create a configmap cm3 with the literal value DB_HOST=localhost?
  • In a Helm chart example, which file would you typically edit to set the container port for the deployed pod?
  • Which approach is recommended to roll out updates to a Pod-based application with minimal downtime?
  • Which object controls the number of pod replicas for an application in OpenShift?
  • What is a BuildConfig used for in OpenShift?
  • What is the deployment config name used in the removal command?
  • What is the purpose of ResourceQuota and LimitRange in OpenShift, and how do they affect resource usage in a project?
  • Which steps define a simple OpenShift Pipeline (Tekton) to build and deploy on push?
  • How do you configure TLS termination for an OpenShift Route when you have a certificate and private key?
  • Which command creates an app named phpapp from the image stream myphp in the shared namespace?
  • Which command configures a post-commit hook on the build config phptest to run bundle exec rake test --verbose?
  • What is the docker registry server specified when creating the quayio secret?
  • Which of the following triggers redeployments when the image tag updates?
  • How can you expose a service externally using Route?
  • To trigger a new build for the build config named phpbuild, which command should you use?
  • What is the primary purpose of a Readiness Probe in OpenShift?
  • After processing a Template with oc process, which command can you use to create the resources described by the output?
  • Which command uses the plural form 'triggers' to modify a deployment config?
  • When would you use emptyDir versus a PersistentVolumeClaim in a pod, and what are their lifecycles?
  • When would you use a DeploymentConfig versus a Deployment in OpenShift?
  • Which command retrieves the tags for all inbuilt PHP image streams in OpenShift?
  • What are best practices for handling credentials in OpenShift?
  • When mounting a ConfigMap as a volume, how can you access individual keys as separate files inside the container?
  • What is the purpose of a Service in OpenShift?
  • When configuring TLS for an OpenShift Route, which Route field references the TLS secret?
  • Which approaches can provide environment variables to a pod from both a Secret and a ConfigMap?
  • In Kubernetes/OpenShift, which statement correctly describes Pod and Deployment?
  • How do you create an OpenShift application named myjava from a git repository at https://mygitrepo using the context directory java?
  • How can you access application logs centrally in OpenShift, and what content do the logs typically show?
  • What is the purpose of an ImageStream in OpenShift, and how does it relate to external images?
  • What is a ServiceAccount, and how do pods use it?
  • Which command includes the -c flag to specify the container name in the image change trigger example?
  • Which OpenShift object is responsible for managing the rollout of Pods and tracking their versions?
  • How can you view logs for a specific container in a multi-container Pod?
  • Which resource kind is used in the example to override the replica count for an overlay deployment?
  • Explain the difference between an emptyDir volume and a PersistentVolumeClaim.
  • Which sequence describes a typical end-to-end deployment flow for a simple OpenShift app from source to exposure to users?
  • In the image change trigger example, which resource is targeted for the trigger update?
  • What does the oc tag command do in OpenShift?
  • Which command links the secret quayio to the builder service account so S2I can use it?
  • Which method would you use to promote a built image from development to production within the same OpenShift cluster?
  • How do you view logs for a specific pod in OpenShift?
  • Add an environment variable to a deployment myapp from a secret mysecret?
  • What are best practices for packaging and deploying a small Node.js application on OpenShift using BuildConfig, ImageStream, Deployment, and Route?
  • Which resource references a StorageClass to provision storage for a pod, and what does the StorageClass define?
  • Which statement is true about oc rollout undo in OpenShift?
  • Where can you access logs for a particular pod, and what does oc logs show?
  • What is the primary purpose of an ImageStream in OpenShift, and how is it used by a Deployment?
  • What is a PodDisruptionBudget (PDB), and when would you create one?
  • Which command removes the config trigger from the deployment config mysql?
  • How does a Route work in OpenShift, and what TLS termination options are available?
  • In a Helm chart, how would you define a dependency on mysql version 5.6 from the repository https://mysql.helm.com/charts?
  • How do you ensure a Build or Deployment uses a specific ServiceAccount?
  • How do you run a locally built s2i image named php:1 for testing?
  • How can you locate the S2I scripts location in an existing S2I builder image?
  • When a PersistentVolumeClaim references a StorageClass, what is created and who provisions it?
  • Which command starts a build for an application?
  • To grant a service account permission to create pods in a specific namespace using RBAC, which steps are correct?
  • How can Helm charts be used in OpenShift, and what OpenShift feature supports Helm templates?
  • Which statement correctly describes how to enable a private registry pull for pods in a project?
  • How would you implement a simple healthcheck endpoint for a microservice to be used by liveness/readiness probes?
  • How do you rollback a deployment to the previous revision in OpenShift?
  • Which command configures a buildconfig to trigger when the base image changes?
  • How do you specify resource requests and limits for a container in OpenShift?
  • Which command lists all image stream names in the openshift namespace?
  • Which OpenShift resource provides TLS termination and external hostname exposure for an application?
  • What is the purpose of the patches section in an overlay kustomization.yaml?
  • What is the docker username used in the quayio secret creation?
  • Which command imports an external container image into an OpenShift ImageStream by specifying the image location and confirming the import?
  • Which command checks the status of a deployment rollout progress in OpenShift?
  • Which command would you use to inspect logs for a BuildConfig build?
  • Start rolling out a new change to a deployment config named php.
  • An OpenShift Template is a collection of objects with parameters. How do you substitute parameters and create resources from it?
  • What is the role of a Webhook trigger in a BuildConfig?
  • What is the role of a Deployment in OpenShift, and how does it relate to ReplicaSets?
  • What is the purpose of an ImageStreamTag, and how does a deployment react to updates to the tag?
  • What are typical values for readiness and liveness probe configurations, and how do you determine them?
  • Which of the following is typically governed by an OpenShift SecurityContextConstraints?
  • Which command deletes a build named phpbuild-2?
  • How can automatic builds be configured when code is pushed to Git in OpenShift?
  • In a Helm chart, which file do you edit to define dependencies for subcharts?
  • Which Helm command creates a new chart named myphp?
  • Which command creates a service of type ExternalName mapping to the host customerdb.oracle.com?
  • In the set volume command, what is the resource type specified with -t?
  • To rebuild an image for a build config named phpbuild, which OpenShift CLI command should you run?
  • What steps would you take to diagnose a BuildConfig build that fails with a compilation error?
  • Where in the application source code do you place S2I scripts to override the build process?
  • How do you update an existing Deployment to use a new image tag?
  • Which method can be used to inject secrets into a container's environment?
  • Add an environment variable to a deployment myapp from a config map cm1?
  • What is the purpose of a Security Context Constraint (SCC) in OpenShift?
  • How can you enable horizontal pod autoscaling in OpenShift, and what metrics does it use by default?
  • What is the approach for implementing a blue-green deployment pattern in OpenShift using Routes and separate deployments?
  • How would you temporarily access a running container to investigate an issue (interactive shell) in OpenShift?
  • How do you define an overlay file for a deployment to override the replica count to 5?
  • What is the Security Context Constraint (SCC) in OpenShift, and why might you adjust it?
  • Which statement about values.yaml is true?
  • Which resource enforces minimum and maximum resource requests and limits on a per-pod or per-container basis within a namespace?
  • Which command demonstrates removing a config trigger from a deployment config?
  • What is the exact image reference used in the image change trigger example?
  • Which command would you use to view the fields and descriptions of a resource in OpenShift, aiding YAML authoring?
  • How does an OpenShift Route expose a service externally and what is the role of the Route host?
  • How do you set the environment variable BUILD_LOGLEVEL to 4 in the build config named phpbuild?
  • Which command updates the image change trigger for the deployment config php to use the image phpns/myphp:latest for the container phpapp in namespace phpns?
  • What does the abbreviation 'dc' stand for in OpenShift CLI?
  • How can you inject environment variables into a container from a Secret?
  • What is the purpose of labels in a Service?
  • The .s2i/bin directory in a source tree contains what?
  • In Tekton, which component executes the defined Tasks to perform the build and deploy steps?
  • Which command stops a currently running build named phpbuild-2?
  • In a container file, how do you set permissions on /app so its readable?
  • Which command copies a local image to quay.io/test/myimage:1 with TLS verification disabled?
  • In the image change trigger example, which flag is used to specify the container?
  • What is the difference between DeploymentConfig and Deployment in OpenShift, and when would you use each?
  • What are the names of the S2I scripts used to modify a S2I build?
  • How do you associate a TLS certificate with an OpenShift Route to enable HTTPS?
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy