In the oc new-app example, which flag specifies that a build environment variable should be applied from a registry URL?

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

In the oc new-app example, which flag specifies that a build environment variable should be applied from a registry URL?

Explanation:
Passing variables to the build process is handled by a flag that injects build-time environment variables into the BuildConfig. This flag populates the build environment so the build steps can read values like a registry URL during image construction. It’s the right choice because it specifically targets the build, unlike runtime environment settings, which are applied after the image runs. Other flags either set runtime variables for the app container or don’t affect the build configuration. Example: oc new-app ... --build-env REGISTRY_URL=https://registry.example.com

Passing variables to the build process is handled by a flag that injects build-time environment variables into the BuildConfig. This flag populates the build environment so the build steps can read values like a registry URL during image construction. It’s the right choice because it specifically targets the build, unlike runtime environment settings, which are applied after the image runs. Other flags either set runtime variables for the app container or don’t affect the build configuration. Example: oc new-app ... --build-env REGISTRY_URL=https://registry.example.com

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy