Which command creates a new isolated project in OpenShift?

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 creates a new isolated project in OpenShift?

Explanation:
OpenShift organizes work into isolated workspaces called projects, which map to Kubernetes namespaces but include OpenShift-specific setup such as default service accounts, RBAC, and project-scoped defaults. The command to create one is oc new-project <name>, and it typically switches your context to that new project so subsequent commands operate within it. This makes it the best choice for starting an isolated OpenShift project. Creating a plain Kubernetes namespace with a command like new-namespace would only create a namespace without the OpenShift project scaffolding. The other options are not standard ways to create a project in OpenShift, or refer to commands that don’t create projects.

OpenShift organizes work into isolated workspaces called projects, which map to Kubernetes namespaces but include OpenShift-specific setup such as default service accounts, RBAC, and project-scoped defaults. The command to create one is oc new-project , and it typically switches your context to that new project so subsequent commands operate within it. This makes it the best choice for starting an isolated OpenShift project.

Creating a plain Kubernetes namespace with a command like new-namespace would only create a namespace without the OpenShift project scaffolding. The other options are not standard ways to create a project in OpenShift, or refer to commands that don’t create projects.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy