Google Cloud Professional Cloud Developer — Question 248

You are a developer at a large organization. You are deploying a web application to Google Kubernetes Engine (GKE). The DevOps team has built a CI/CD pipeline that uses Cloud Deploy to deploy the application to Dev, Test, and Prod clusters in GKE. After Cloud Deploy successfully deploys the application to the Dev cluster, you want to automatically promote it to the Test cluster. How should you configure this process following Google-recommended best practices?

Answer options

Correct answer: A

Explanation

Option A is correct because it directly utilizes Cloud Build to listen for successful deployment messages and promotes the application accordingly, which aligns with recommended practices. Options B and C involve Cloud Functions, which are not the best choice for this task when Cloud Build can be used more effectively. Option D, while involving Cloud Build, does not correctly utilize the appropriate Pub/Sub topic for triggering the promotion.