
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 because it aligns with Google Cloud best practices for deploying applications on Google Kubernetes Engine (GKE). The gcloud command-line tool is used to create and manage GKE clusters, as it interfaces directly with Google Cloud's infrastructure services. Once the cluster is provisioned, kubectl is the standard tool for deploying and managing Kubernetes resources, including deployments, as it communicates with the Kubernetes API server. Option A is incorrect because Deployment Manager is for infrastructure provisioning (like creating the cluster itself), not for deploying Kubernetes applications. Options C and D are incorrect because kubectl cannot create GKE clusters; it only manages existing clusters. The community discussion strongly supports B, with 100% consensus and high upvotes, citing official Google documentation that confirms gcloud for cluster creation and kubectl for deployment management.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You have a Kubernetes Deployment file provided by the development team, but no existing infrastructure. What is the first step to 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.