After processing a Template with oc process, which command can you use to create the resources described by the output?

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

After processing a Template with oc process, which command can you use to create the resources described by the output?

Explanation:
Processing a Template yields a set of resource definitions in YAML/JSON, which oc process writes to stdout. To actually create those resources, feed that output into a create operation that reads manifests from standard input. oc create -f - reads the processed output from stdin and creates all the resources in the cluster in one step. The other options don’t fit this flow: login is just authentication, and while applying the processed output with oc apply -f - could also create resources, the chosen command directly mirrors the common template-to-resource creation pattern.

Processing a Template yields a set of resource definitions in YAML/JSON, which oc process writes to stdout. To actually create those resources, feed that output into a create operation that reads manifests from standard input. oc create -f - reads the processed output from stdin and creates all the resources in the cluster in one step. The other options don’t fit this flow: login is just authentication, and while applying the processed output with oc apply -f - could also create resources, the chosen command directly mirrors the common template-to-resource creation pattern.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy