Which command would display the deployment strategy by filtering the deployment config description?

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 would display the deployment strategy by filtering the deployment config description?

Explanation:
Filtering the deployment config description to see the deployment strategy relies on the human-friendly output of oc describe. When you run oc describe dc/<name>, you get a line like "Strategy Type: Rolling" (or similar) that states the strategy being used. Piping that output to grep for the word "Strategy" isolates exactly that line, giving you the deployment strategy at a glance. The other options either search for a label that may not appear (StrategyType or DeploymentStrategy), or bypass the description by querying the underlying JSON/YAML directly with jsonpath, which isn’t filtering the descriptive output. So this approach shows the deployment strategy clearly from the description.

Filtering the deployment config description to see the deployment strategy relies on the human-friendly output of oc describe. When you run oc describe dc/, you get a line like "Strategy Type: Rolling" (or similar) that states the strategy being used. Piping that output to grep for the word "Strategy" isolates exactly that line, giving you the deployment strategy at a glance. The other options either search for a label that may not appear (StrategyType or DeploymentStrategy), or bypass the description by querying the underlying JSON/YAML directly with jsonpath, which isn’t filtering the descriptive output. So this approach shows the deployment strategy clearly from the description.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy