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

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy