Topic 1 Question 229
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?
- Create a Cloud Build trigger that listens for SUCCEEDED Pub/Sub messages from the clouddeploy-operations topic.
- Configure Cloud Build to include a step that promotes the application to the Test cluster.
- Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster.
- Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the cloud-builds topic.
- Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster.
- Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the clouddeploy-operations topic.
- Create a Cloud Build pipeline that uses the gke-deploy builder.
- Create a Cloud Build trigger that listens for SUCCEEDED Pub/Sub messages from the cloud-builds topic.
- Configure this pipeline to run a deployment step to the Test cluster.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: A👍 2TNT872023/02/01
- 正解だと思う選択肢: C
This option (C) is recommended because it follows the best practice of using a serverless function, specifically Cloud Functions, for triggering automated tasks in response to events. In this case, the function will be triggered by a SUCCEEDED message from the clouddeploy-operations topic, indicating that the deployment to the Dev cluster has completed successfully. The function will then use the Google Cloud Deploy API to promote the application to the Test cluster.
Using a Cloud Function in this way allows for a scalable, event-driven architecture and reduces the amount of infrastructure required to manage the deployment process.
👍 1mrvergara2023/02/04 - 正解だと思う選択肢: C👍 1TNT872023/02/05
シャッフルモード