To set a local reference policy when importing an image, which of the following commands is used?

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

To set a local reference policy when importing an image, which of the following commands is used?

Explanation:
When importing an image, you can control how the image reference is stored in the image stream by using a reference policy. Setting the policy to local ensures the image reference inside the image stream points to a locally managed, internal reference rather than embedding the full external registry path. This helps keep deployment references consistent within the cluster and can simplify image resolution and promotion. The best command explicitly sets this local policy, specifies the source image, and confirms the import, giving you a clear and deterministic import with the desired behavior. It uses the import-image command, targets the image stream, points to the registry location, applies the local policy, and confirms the operation. Other options either set a different reference policy (remote or external) or omit the policy altogether, which may rely on a default that isn’t guaranteed to be local.

When importing an image, you can control how the image reference is stored in the image stream by using a reference policy. Setting the policy to local ensures the image reference inside the image stream points to a locally managed, internal reference rather than embedding the full external registry path. This helps keep deployment references consistent within the cluster and can simplify image resolution and promotion.

The best command explicitly sets this local policy, specifies the source image, and confirms the import, giving you a clear and deterministic import with the desired behavior. It uses the import-image command, targets the image stream, points to the registry location, applies the local policy, and confirms the operation.

Other options either set a different reference policy (remote or external) or omit the policy altogether, which may rely on a default that isn’t guaranteed to be local.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy