Which command starts a build for a given build config with an environment variable KEY=VALUE using the exact syntax without quotes?

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 starts a build for a given build config with an environment variable KEY=VALUE using the exact syntax without quotes?

Explanation:
To start a build for a BuildConfig while injecting an environment variable for that run, you pass environment overrides directly to the start-build command using --env KEY=VALUE. This starts a new build for the specified BuildConfig and applies the variable only to that build instance, without changing the BuildConfig itself. The exact form uses no quotes: oc start-build web-app --env=BUILD_LOGLEVEL=4. Using quotes isn’t necessary and isn’t required by the prompt’s constraint, though in practice shell quoting often gets stripped. The other options either update the BuildConfig itself (oc set env bc/web-app BUILD_LOGLEVEL=4) or are not about starting a build (oc logs -f build web-app).

To start a build for a BuildConfig while injecting an environment variable for that run, you pass environment overrides directly to the start-build command using --env KEY=VALUE. This starts a new build for the specified BuildConfig and applies the variable only to that build instance, without changing the BuildConfig itself. The exact form uses no quotes: oc start-build web-app --env=BUILD_LOGLEVEL=4. Using quotes isn’t necessary and isn’t required by the prompt’s constraint, though in practice shell quoting often gets stripped. The other options either update the BuildConfig itself (oc set env bc/web-app BUILD_LOGLEVEL=4) or are not about starting a build (oc logs -f build web-app).

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy