Google Professional Cloud DevOps Engineer

Google Professional Cloud DevOps Engineer

Get started today

Ultimate access to all questions.


Your company is preparing to deploy a CI pipeline on Google Cloud Platform and needs to ensure the correct syntax for creating a Kubernetes namespace named 'production' to logically isolate the deployment. Which Kubernetes command accomplishes this?




Explanation:

The correct command is kubectl create ns production (or equivalently, kubectl create namespace production). This command creates a new namespace in Kubernetes, which is essential for logically isolating deployments. For further learning, exploring Kubernetes Codelabs is highly recommended.