
Answer-first summary for fast verification
Answer: Use gcloud to create a Kubernetes cluster. Use kubectl to create the deployment.
The correct answer is B. To create a Kubernetes cluster on Google Cloud, you should use the gcloud command-line tool. Once the cluster is created, you can deploy your application using the kubectl command-line tool. gcloud is specifically used for managing Google Cloud resources such as Kubernetes clusters, whereas kubectl is used for managing Kubernetes resources like deployments after the cluster is already running.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are part of a team that needs to set up and deploy an application using Kubernetes. The development team has provided you with a Kubernetes Deployment file, but as of now, there is no existing infrastructure in place. What steps should you take to create the necessary infrastructure and deploy the application?
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.