Google Cloud Associate Cloud Engineer — Question 264
Your preview application, deployed on a single-zone Google Kubernetes Engine (GKE) cluster in us-central1, has gained popularity. You are now ready to make the application generally available. You need to deploy the application to production while ensuring high availability and resilience. You also want to follow Google-recommended practices. What should you do?
Answer options
- A. Use the gcloud container clusters create command with the options --enable-multi-networking and --enable-autoscaling to create an autoscaling zonal cluster and deploy the application to it.
- B. Use the gcloud container clusters create-auto command to create an autopilot cluster and deploy the application to it.
- C. Use the gcloud container clusters update command with the option --region us-central1 to update the cluster and deploy the application to it.
- D. Use the gcloud container clusters update command with the option --node-locations us-central1-a,us-central1-b to update the cluster and deploy the application to the nodes.
Correct answer: B
Explanation
The correct answer is B because creating an autopilot cluster optimally manages resources and ensures high availability, aligning with Google-recommended practices for production applications. Option A focuses on creating an autoscaling zonal cluster, which does not provide the same level of high availability. Option C updates the cluster in a single region, lacking multi-zone support, while option D updates node locations but does not create an environment optimized for production.