Which command updates the build configuration to set the build log level to 4?

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 updates the build configuration to set the build log level to 4?

Explanation:
Setting the build log level by updating the BuildConfig’s environment is done with a command that stores environment variables on the BuildConfig resource itself. BUILD_LOGLEVEL=4 is an environment variable that the builder recognizes to control how verbose the build logs are. By applying oc set env to the BuildConfig, you persist this setting in the build configuration, so every subsequent build uses log level 4 automatically. This is the right approach when you want the change to apply to all future builds rather than just a single build run. Starting a build with an override (--env) would affect only that one build and not update the configuration. Viewing build logs simply displays output from a build that has already run, and adjusting triggers changes how builds are kicked off, not the log verbosity.

Setting the build log level by updating the BuildConfig’s environment is done with a command that stores environment variables on the BuildConfig resource itself. BUILD_LOGLEVEL=4 is an environment variable that the builder recognizes to control how verbose the build logs are. By applying oc set env to the BuildConfig, you persist this setting in the build configuration, so every subsequent build uses log level 4 automatically. This is the right approach when you want the change to apply to all future builds rather than just a single build run.

Starting a build with an override (--env) would affect only that one build and not update the configuration. Viewing build logs simply displays output from a build that has already run, and adjusting triggers changes how builds are kicked off, not the log verbosity.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy