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

Red Hat OpenShift Developer II DO288 Practice Exam course image
More practice questions

These questions are part of the practice quiz. Start practicing

  • Which command links a secret to a serviceaccount?
  • To enable external access to an application, which OpenShift object should be configured to map a hostname to the service?
  • What feature allows a BuildConfig to automatically start a new build when a change is pushed to the connected Git repository?
  • Which command stops a running container named my-httpd-container?
  • Which command links a secret named secret name to the builder service account?
  • To set a local reference policy when importing an image, which of the following commands is used?
  • Which command lists the images in Podman?
  • Which command sets a readiness probe on a deploymentconfig with a specified URL and timings?
  • Which command is used to stream live logs of a pod?
  • Which command creates a readiness probe for a deployment config "myapp" that GETs /healthz on port 8080 with a 20-second period?
  • Which command builds an S2I builder image with Podman using a directory and a specific tag NAME:TAG?
  • How can a private Git repository be accessed by a BuildConfig during a build?
  • Which command retrieves logs for a deployment configuration?
  • Which resource is used to define automated builds from source or image into a deployable image?
  • Which command starts a build with an environment variable KEY=VALUE?
  • Which command deploys a cloud-native application using the Fabric8 Maven plugin?
  • Which OpenShift object represents a non-human identity used by pods to access resources?
  • Which command retrieves logs from a container managed by Podman?
  • Which statement correctly describes how per-environment configuration can be supplied without changing the template body?
  • Which TLS termination option terminates TLS at the router?
  • Which Podman command searches for images related to rhel?
  • Which resource tracks image versions and triggers deployments when a new image is available?
  • To run a Dockerfile with a random user instead of 'wildfly', which sequence of changes should be applied?
  • What is the purpose of the --from-file flag when creating a secret for a private registry, as shown in the material?
  • Which command publishes a locally built S2I builder image to quay.io?
  • Which Pod/Container specification element carries the CPU and memory requests and limits for a container?
  • How can a Secret be consumed by a pod as files?
  • Which command would display the hostname of a container by reading /etc/hostname inside the container?
  • Which step must you perform before copying an OCI layout to a private registry using skopeo, according to the material?
  • How do you watch the live logs of a running pod?
  • Which OpenShift resource stores versions of container images and provides a stable reference for deployments?
  • Which command removes a local image?
  • After configuring a SELinux fcontext for a directory, which command applies the context to the directory and its contents?
  • In RBAC, which object binds a Role to a user within a namespace?
  • Which command reveals the port mapping for a container?
  • The command "sudo podman cp todoapi:/opt/jboss/standalone/conf/standalone.conf ." performs which action?
  • Which two commands create a ConfigMap from a literal key/value and then propagate it to a DeploymentConfig as an environment variable?
  • How can you quickly assess the rollout status of a deployment from the CLI?
  • Which command creates a new OpenShift application from a Git repository with a specific build environment variable and context directory?
  • Which command creates a new service account named myserviceaccount?
  • How do you set the build log level to 4 for a BuildConfig named "name" in OpenShift?
  • Which command runs a container with the name my-httpd-container in detached mode using the image rhscl/httpd-24-rhel7?
  • Which command validates a JSON file using Python's standard tooling?
  • How do pods in a service discover each other within a namespace using DNS?
  • Which resource stores non-sensitive configuration data used by pods?
  • In Podman run, what does the -p hostPort:containerPort mapping accomplish?
  • Which command patches a deployment config to use a new service account named 'myserviceaccount'?
  • Which command produces a Dockerfile from an S2I build?
  • Which command sets a liveness probe on a deploymentconfig with initial delay, timeout, and URL?
  • To import an image into an image stream named myis from a private registry and confirm the import, which command is appropriate?
  • Which command lists recent events in a namespace that can help with debugging?
  • Which command grants the system:image-puller role to the service account myapp so it can pull from an internal registry?
  • Which control plane component runs the API surface?
  • Which command deletes one or more images?
  • Which command would patch a deployment config to set the service account name to myserviceaccount?
  • Which command processes a template file to YAML output?
  • Which command connects to an external MySQL database given host, user, password, and database name?
  • Which command configures a liveness HTTP health check for deployment config "myapp" with an initial delay of 30 seconds, a single success threshold, and a failure threshold of 3?
  • Which command creates an image stream referencing a container image on quay.io?
  • When mounting a host directory into a container, which condition must be true for the container to write to the directory?
  • Which command tags an existing image under a new repository/name and tag in Podman?
  • Which command starts a container in detached mode with image rhscl/httpd-24-rhel7:2.4-36.8?
  • The command "sudo podman run -v /conf:/etc/httpd/conf -d do180/apache" primarily does which of the following?
  • To grant a user read access to resources in a project using RBAC, which approach is correct?
  • Which command grants the anyuid SCC to the myserviceaccount?
  • What OpenShift resource is used to reference a specific image version for deployment or build processes in OpenShift?
  • What is the purpose of an ImageStreamTag?
  • Which command configures a post-commit build hook to run a script ("curl http://api.com/user/${USER}") for a BuildConfig named "name"?
  • Which command deletes all resources with label app=appname for an app named app?
  • Which resource controls network traffic between pods within a namespace?
  • Which tool provides a Kubernetes-native approach to building and running CI/CD pipelines in OpenShift?
  • In the example, which host directory maps to the container's MySQL data directory?
  • Which command creates a liveness probe for a deployment config "myapp" that uses an Open TCP on port 3306 with a 20-second period and 1-second timeout?
  • What OpenShift object enables parameterized deployment of multiple resource sets?
  • Which command creates a secret regtoken from a dockerconfigjson file with the proper type for use by Kubernetes?
  • Which command executes a new command inside a running pod or container using OpenShift style syntax?
  • How can you populate environment variables in a container from a ConfigMap?
  • Which command demonstrates exposing port 8080 on the host to port 80 inside the container?
  • Which command scales a deployment config to a specified number of replicas?
  • How do you revert a failed deployment to the previous revision?
  • Which command creates a new process inside a running container using Podman or OpenShift tooling?
  • Which OpenShift object governs security privileges for pods (e.g., runAsUser, capabilities)?
  • In the oc new-app example, which flag specifies that a build environment variable should be applied from a registry URL?
  • Which command retrieves the list of image stream tags to verify an image stream was created?
  • Which command outputs the result of processing a template to a YAML file named mysqlProcessed.yaml?
  • Which command enables horizontal pod autoscaling for a deployment config named frontend with min 1, max 5, cpu-percent 80?
  • Which command creates a new isolated project in OpenShift?
  • Which command creates a service of type ExternalName that points to an external host name?
  • Which command creates a secret named regtoken from a docker config JSON file to access a private registry?
  • What is the default value of BUILD_LOGLEVEL if not specified?
  • Which command runs a container with environment variables GREET and NAME and prints them using printenv?
  • Which command prints the IP address of the most recently started container?
  • Which probes determine if a pod is ready to receive traffic and if it is alive?
  • In the S2I build command, what does the option --as-dockerfile <destination>/Dockerfile do?
  • Which option in the oc new-app command is used to specify the directory within a Git repository to use for the build?
  • In OpenShift, which resource is used to track and reference container images within the cluster?
  • How do you switch the current namespace for subsequent OC commands without re-authenticating?
  • Which command sends a SIGKILL to a container named my-httpd-container?
  • To remove a Kubernetes/OpenShift resource defined in YAML, which command is used?
  • Which command runs a container in detached mode with image rhscl/httpd-24-rhel7?
  • Which resource stores sensitive data such as passwords and keys for pods?
  • Which command updates the build configuration to set the build log level to 4?
  • What is the standard command to scale a Deployment to a given replica count?
  • Which command sets a post-commit bash-based build hook?
  • In OpenShift, which command starts a new build for the given build configuration named "name"?
  • How do you apply declarative configuration stored in YAML to the cluster?
  • What is the purpose of OpenShift Pipelines?
  • Which TLS termination option terminates TLS at the router and re-encrypts to the backend?
  • How do you configure OpenShift to trigger a build when a commit is pushed to the Git repository?
  • How can you run more than one container in a single pod?
  • What resources are commonly created automatically when you run oc new-app against a Git repository?
  • Which command creates the directory /var/dbfiles on the host?
  • Which tool is used to copy an OCI layout from a local folder to a private registry, requiring a login via Podman first?
  • In Tekton, which primitive defines a reusable unit of work that can be composed into pipelines?
  • How can you expose a service externally so that clients can reach it?
  • Which RBAC object binds a role to a user or service account within a namespace?
  • What TLS termination modes does OpenShift Route support?
  • Which deployment strategy settings control how many pods can be unavailable or created during a rollout to minimize downtime?
  • Which OpenShift object enforces namespace-level resource usage limits?
  • To view logs for a specific build "name-1" in OpenShift, which command?
  • Which resource pair is commonly used together to track image versions and drive deployment updates in OpenShift pipelines?
  • Which command grants the image-puller role to service accounts from another OpenShift project?
  • Where do you specify per-container CPU and memory requests and limits?
  • In Tekton, what would you create to encapsulate a single, reusable unit of work?
  • Where do you access the OpenShift Web Console for cluster operations?
  • Which command applies a ConfigMap as environment variables to a DeploymentConfig?
  • Which resource is typically used to deploy applications with rolling updates in OpenShift 4?
  • What command scales a Deployment to a desired number of replicas?
  • Which command links a secret to the builder service account?
  • Which command verifies that a private image stream has been created and is ready for use?
  • What is the default location for s2i scripts on the s2i image?
  • How do pods in a service discover each other using DNS within a namespace?
  • Which command configures a post-commit build hook to run a command (bundle exec rake test --verbose) for a BuildConfig named "name"?
  • Which command publishes a locally built image to quay.io using skopeo?
  • Which command starts an interactive Bash session in a new container using ubi7/ubi:7.7?
  • Which command can be used to check the deployment strategy of a deployment config?
  • Which command links a secret to the default service account for image pulling?
  • How would you log into quay.io using Podman?
  • Which command requests a new build for an application?
  • OpenShift Pipelines are built on which workflow engine?
  • Which component runs on OpenShift worker nodes to manage containers?
  • Which command links the secret 'db-secret' to the serviceaccount named 'default'?
  • Which command deletes all resources with label app=appname?
  • Which OpenShift/Kubernetes feature lets you see resource usage of nodes and pods?
  • In a workflow that shares a private image stream, which action is performed first to enable cross-project access to the image?
  • To describe metadata for a specific image stream named image-stream-name, which command should you run?
  • Which OpenShift resource allows referencing a specific image tag within an ImageStream to trigger a deployment?
  • Which OpenShift command would deploy an image from Quay into a new deployment config with a specific name?
  • After processing a template, which command creates resources from the resulting YAML file?
  • Which command fetches logs specifically for a BuildConfig, ensuring other log paths are not used?
  • What is the effect of adding an image trigger to a build config?
  • Which command pulls an image named rhel from the registry using Podman?
  • What is the primary purpose of a Kubernetes Service in OpenShift?
  • Which command lists the templates available in the OpenShift namespace?
  • To stream live logs for the BuildConfig named "name" in OpenShift, which command is used?
  • In BuildConfig, which strategy uses a builder image to assemble application code?
  • Which command would display the deployment strategy by filtering the deployment config description?
  • Which RBAC object grants namespace-scoped permissions to users or service accounts?
  • Which concept lets you tag and track a specific image version within the cluster's image catalog for use in builds and deployments?
  • What UID is referenced for the Red Hat provided MySQL service in this setup?
  • Which approach allows per-environment customization while reusing the same template or manifest?
  • Which command demonstrates overriding a container's default binaries by mounting the host's /bin directory?
  • Which command starts a build for a given build config with an environment variable KEY=VALUE using the exact syntax without quotes?
  • What is the Podman command to log in to registry.access.redhat.com?
  • Which command adds an image trigger to a build configuration from a specific image tag?
  • Which OpenShift object maps a host to a service for external access?
  • To describe a BuildConfig named "name" in OpenShift, which command is correct?
  • Which control plane component is responsible for scheduling pods to nodes?
  • Which TLS termination option passes TLS end-to-end to the pods?
  • The command "sudo podman cp standalone.conf todoapi:/opt/jboss/standalone/conf/standalone.conf" performs which operation?
  • Which Podman command loads an image from a tar file?
  • Which of the following is NOT a valid imagePullPolicy value in Kubernetes?
  • How do you provide persistent storage to a pod in OpenShift?
  • Which command demonstrates passing multiple parameters to a template processor while directing output to a file?
  • Where is the S2I script located?
  • Which command builds an S2I builder image with Podman from the current directory and tags it with the provided name?
  • To retrieve the webhook secret for a BuildConfig, which command should you run?
  • What command streams logs from a specific build named jhost in real time?
  • Which control plane component is responsible for running controllers that regulate cluster state?
  • Which of the following commands applies the SELinux file context type container_file_t to a directory and its contents?
  • Which OpenShift command disables image change triggers on a DeploymentConfig named myapp?
  • How do you manually trigger a BuildConfig build from the CLI?
  • Which resource tag denotes a specific version of an image within an ImageStream?
  • Which Podman option binds a host directory to a container path during run?
  • What is the standard path to the S2I bin directory for an application?
  • Which command creates a deployment config using a shared image stream named shared/myis?
  • What is a common pattern to implement CI/CD for apps running on OpenShift using built-in resources?
  • What does the oc config view command display?
  • Which command starts a BuildConfig build for a given name?
  • In OpenShift, which command cancels a running build named "name"?
  • Which command lists recent OpenShift events?
  • To start a new build using the webhook URL, which curl command is correct?
  • Which Podman command saves an image to a tar file using an optional output file name?
  • To delete a build configuration named "name" in OpenShift, which command is used?
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy