Google Cloud Professional Cloud Developer — Question 216
You are designing an application that uses a microservices architecture. You are planning to deploy the application in the cloud and on-premises. You want to make sure the application can scale up on demand and also use managed services as much as possible. What should you do?
Answer options
- A. Deploy open source Istio in a multi-cluster deployment on multiple Google Kubernetes Engine (GKE) clusters managed by Anthos.
- B. Create a GKE cluster in each environment with Anthos, and use Cloud Run for Anthos to deploy your application to each cluster.
- C. Install a GKE cluster in each environment with Anthos, and use Cloud Build to create a Deployment for your application in each cluster.
- D. Create a GKE cluster in the cloud and install open-source Kubernetes on-premises. Use an external load balancer service to distribute traffic across the two environments.
Correct answer: B
Explanation
Option B is correct because it allows you to create a GKE cluster in both cloud and on-premises environments while leveraging Cloud Run for Anthos, which is designed for scaling applications effectively. Options A and C do not utilize Cloud Run for Anthos, limiting managed service benefits, while option D suggests using open-source Kubernetes on-premises, which does not fully capitalize on managed services.