Which command creates an app named phpapp from the image stream myphp in the shared namespace?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

Which command creates an app named phpapp from the image stream myphp in the shared namespace?

Explanation:
Creating an app from an image stream in a specific namespace requires telling OpenShift exactly which image to use and what to name the app. The image source is referenced as namespace/name, with an optional tag. Here, the image stream myphp lives in the shared namespace, so you reference it as shared/myphp. The command also sets the application name with --name phpapp. If you omit a tag, the default tag (usually latest) is used. This combination precisely selects the image stream from the correct namespace and assigns the desired application name, making it the correct choice. The other options point to a different namespace or introduce a tag in a way that isn’t the intended reference for this scenario.

Creating an app from an image stream in a specific namespace requires telling OpenShift exactly which image to use and what to name the app. The image source is referenced as namespace/name, with an optional tag. Here, the image stream myphp lives in the shared namespace, so you reference it as shared/myphp. The command also sets the application name with --name phpapp. If you omit a tag, the default tag (usually latest) is used. This combination precisely selects the image stream from the correct namespace and assigns the desired application name, making it the correct choice. The other options point to a different namespace or introduce a tag in a way that isn’t the intended reference for this scenario.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy