You have a Kubernetes Deployment manifest but no infrastructure. What should you do to deploy the application?
Choose an answer
Tap an option to check your answer.
Correct answer: Use gcloud to create a Kubernetes cluster and use kubectl to create the Deployment..
Why this is the answer
To deploy a Kubernetes application when no infrastructure exists, you first need to provision a Kubernetes cluster. The gcloud command-line tool is used for interacting with Google Cloud resources, including creating Google Kubernetes Engine (GKE) clusters. Once the cluster is operational, kubectl is the standard command-line tool for interacting with Kubernetes clusters, including creating, updating, and deleting Kubernetes objects like Deployments, Services, and Pods from a manifest file. The incorrect options propose using kubectl to create a Kubernetes cluster, which is not its function; kubectl manages resources within a cluster, not the cluster itself. Similarly, Deployment Manager is used for templated infrastructure deployments on Google Cloud, not for deploying Kubernetes application manifests directly.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed