Google Cloud Professional Cloud Architect — Question 4
The development team has provided you with a Kubernetes Deployment file. You have no infrastructure yet and need to deploy the application. What should you do?
Answer options
- A. Use gcloud to create a Kubernetes cluster. Use Deployment Manager to create the deployment.
- B. Use gcloud to create a Kubernetes cluster. Use kubectl to create the deployment.
- C. Use kubectl to create a Kubernetes cluster. Use Deployment Manager to create the deployment.
- D. Use kubectl to create a Kubernetes cluster. Use kubectl to create the deployment.
Correct answer: B
Explanation
The correct answer is B because gcloud is the tool used to create a Kubernetes cluster, and kubectl is the command-line tool for managing Kubernetes resources, including deployments. Option A incorrectly suggests using Deployment Manager, which is not necessary for this task. Options C and D incorrectly state that kubectl can be used to create a Kubernetes cluster, which is not possible.