Google Cloud Professional Cloud Architect — Question 196
Your team is running applications on a Google Kubernetes Engine (GKE) cluster with a private endpoint. You've set up a Cloud Deploy pipeline, but deployments to the GKE cluster are failing. You need to resolve the issue. What should you do?
Answer options
- A. Use VPC Service Controls with Cloud Build Update the Cloud pipeline to use Cloud Build as its execution environment.
- B. Create a Cloud Build private pool in the default VPC. Use Cloud Build to deploy the applications to the GKE cluster.
- C. Create a Cloud Build private pool that is peered with the same VPC network as your GKE cluster. Update the Cloud Deploy pipeline to use this private pool as its execution environment.
- D. Create a custom target in Cloud Deploy Update the deploy pipeline to use the custom target for the application deployment.
Correct answer: C
Explanation
The correct answer is C because creating a Cloud Build private pool that is peered with the VPC network of the GKE cluster allows for proper communication and deployment capabilities. Option A is incorrect as it suggests using VPC Service Controls, which may not address the deployment issue directly. Option B lacks the necessary peering with the GKE cluster's VPC, and Option D does not resolve the connectivity issues required for deployment.