Which command creates an image stream referencing a container image on quay.io?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

Which command creates an image stream referencing a container image on quay.io?

Explanation:
Importing an image into an OpenShift image stream from a remote registry. The command uses --from to specify the exact image location, here quay.io/<user>/<name>, so OpenShift pulls the image from quay.io and creates an image stream that references that image. The --confirm flag actually performs the import, turning the plan into the actual ImageStream resource in your cluster. The --reference-policy local option controls how the image is referenced after import, keeping a local reference within the cluster. This choice correctly points to the quay.io registry, uses --confirm to execute the import, and sets a valid reference policy. The other options either point to a different registry (docker.io), use an unsupported or irrelevant policy value, or are functionally equivalent in effect but not specifically aligned with the quay.io source requirement.

Importing an image into an OpenShift image stream from a remote registry. The command uses --from to specify the exact image location, here quay.io//, so OpenShift pulls the image from quay.io and creates an image stream that references that image. The --confirm flag actually performs the import, turning the plan into the actual ImageStream resource in your cluster. The --reference-policy local option controls how the image is referenced after import, keeping a local reference within the cluster.

This choice correctly points to the quay.io registry, uses --confirm to execute the import, and sets a valid reference policy. The other options either point to a different registry (docker.io), use an unsupported or irrelevant policy value, or are functionally equivalent in effect but not specifically aligned with the quay.io source requirement.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy