Question 1
Which command requests a new build for an application?
Correct Answer:
oc start-build
Explanation:
To request a new build for an application, you trigger the BuildConfig with the start-build command and specify the BuildConfig (application) name. BuildConfigs define how to build the app; starting a build tells OpenShift to run that process again using the current source and configuration. The other options serve different purposes: creating a new BuildConfig with new-build, or using a non-existent trigger-build command. So the correct approach is to run the build trigger command followed by the application’s BuildConfig name.
Question 2
Which command removes a local image?
Correct Answer:
sudo podman rmi devops/mysql:snapshot
Explanation:
Removing a local image is done with the rmi command, which stands for remove image. The tag command would just create or update a tag for an existing image, not delete it. OpenShift’s oc rmi isn’t the standard way to remove a local image, and docker rmi would apply only if you’re using Docker instead of Podman. Using podman rmi devops/mysql:snapshot removes the specified image from the local image store (assuming no containers are using it, or you use a force option). So the command shown is the correct way to remove a local image.
Question 3
Which command creates a service of type ExternalName that points to an external host name?
Correct Answer:
oc create service externalname --external-name
Explanation:
ExternalName services route to an external DNS name instead of a cluster IP. You create one by specifying the service type as externalname and providing the external host with the --external-name flag. The command that fits this pattern is oc create service externalname --external-name . It uses the correct resource type and the correct flag to point to the external host. The other options fail because they either use a different service type (like clusterip), or use incorrect capitalization for the resource type or the flag, or supply a less appropriate external name.
Question 4
Which command creates a deployment config using a shared image stream named shared/myis?
Correct Answer:
oc new-app --as-deployment-config -i shared/myis
Explanation:
OpenShift uses the new-app flow to generate resources from an image source, and the flag that forces the result to be a DeploymentConfig ensures that the created object runs as a DeploymentConfig rather than a Deployment. By pointing to a shared image stream with the image spec shared/myis and explicitly requesting a DeploymentConfig, the command builds a DeploymentConfig whose pod template uses the image from that shared image stream. This combination is the direct, unambiguous way to create a DeploymentConfig from a shared image stream in one step.
Question 5
In a workflow that shares a private image stream, which action is performed first to enable cross-project access to the image?
Correct Answer:
Grant system:image-puller to the target service accounts in the target project
Explanation:
Cross-project image sharing in OpenShift relies on RBAC to grant pull rights. To let workloads in the consuming project pull a private image from the image stream in the source project, you grant the system:image-puller role to the consuming project’s service accounts for the source image stream’s namespace. This permission is what enables the actual pull of the image across projects, and it must be in place before any pod can start using the image. Creating a secret for a regtoken isn’t needed for internal OpenShift image streams, switching projects isn’t required to grant the access, and importing the image into the target project would duplicate the image rather than enable ongoing cross-project access. So, granting pull access to the consuming project’s service accounts is the correct first step.
Question 1
Exam overview

About this Exam

Prepare with the Red Hat OpenShift Developer II DO288 Practice Exam practice quiz. This question bank includes 10 questions covering command, image, deployment, openshift, and creates. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

Red Hat OpenShift Developer II DO288 Practice Exam

This practice set contains 10 questions from the matching question bank and focuses on command, image, deployment, openshift, and creates. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions