To rebuild an image for a build config named phpbuild, which OpenShift CLI command should you run?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

To rebuild an image for a build config named phpbuild, which OpenShift CLI command should you run?

Explanation:
To rebuild the image for a BuildConfig, you need to trigger a new build for that config. OpenShift uses a BuildConfig to define how an image is built, and starting a new build with the CLI creates a fresh Build object that runs the configured build steps again. For a BuildConfig named phpbuild, the correct command is to start a new build for that config, which begins the rebuild using the latest source and settings. The other options either target a specific previous build, refer to a nonstandard command, or create a new BuildConfig rather than rebuilding the existing one, so they don’t fit the intent of triggering a fresh rebuild.

To rebuild the image for a BuildConfig, you need to trigger a new build for that config. OpenShift uses a BuildConfig to define how an image is built, and starting a new build with the CLI creates a fresh Build object that runs the configured build steps again. For a BuildConfig named phpbuild, the correct command is to start a new build for that config, which begins the rebuild using the latest source and settings. The other options either target a specific previous build, refer to a nonstandard command, or create a new BuildConfig rather than rebuilding the existing one, so they don’t fit the intent of triggering a fresh rebuild.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy