Which command can be used to check the deployment strategy of a deployment config?

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 can be used to check the deployment strategy of a deployment config?

Explanation:
The deployment strategy for a DeploymentConfig is displayed in the human-friendly output of oc describe dc/<name> under a section labeled Strategy. By piping that output to grep 'Strategy', you filter exactly to that part of the description, so you can see the strategy being used (for example, the Type like RollingUpdate and any rolling parameters). The other options try to grep for field names that don’t appear in the oc describe output, so they’re unlikely to reveal the actual strategy. Using grep with the Strategy label is the direct, reliable way to check how updates will be performed.

The deployment strategy for a DeploymentConfig is displayed in the human-friendly output of oc describe dc/ under a section labeled Strategy. By piping that output to grep 'Strategy', you filter exactly to that part of the description, so you can see the strategy being used (for example, the Type like RollingUpdate and any rolling parameters). The other options try to grep for field names that don’t appear in the oc describe output, so they’re unlikely to reveal the actual strategy. Using grep with the Strategy label is the direct, reliable way to check how updates will be performed.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy