After processing a template, which command creates resources from the resulting YAML file?

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

After processing a template, which command creates resources from the resulting YAML file?

Explanation:
After you process a template, you get a YAML file that describes one or more resources you want to create. The command that materializes those resources from that manifest is oc create -f mysqlProcessed.yaml. It reads the file and creates all the resources defined in it in one operation. Oc apply -f can also create resources if they don’t exist, but it’s primarily used for declarative management and updating existing resources to match the manifest. The other options don’t align with creating a full set of resources from a processed YAML: new-app expects a template or source to build an app, not a raw manifest, and run -f is not used to create resources from a manifest.

After you process a template, you get a YAML file that describes one or more resources you want to create. The command that materializes those resources from that manifest is oc create -f mysqlProcessed.yaml. It reads the file and creates all the resources defined in it in one operation.

Oc apply -f can also create resources if they don’t exist, but it’s primarily used for declarative management and updating existing resources to match the manifest. The other options don’t align with creating a full set of resources from a processed YAML: new-app expects a template or source to build an app, not a raw manifest, and run -f is not used to create resources from a manifest.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy