Red Hat OpenShift Developer II DO288 Practice Exam

Access More Questions
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.

Access more questions from this quiz

Continue to Red Hat OpenShift Developer II DO288 Practice Exam for more practice questions and the full quiz experience.

Access More Questions