Topic 1 Question 6
You use a multiple step Cloud Build pipeline to build and deploy your application to Google Kubernetes Engine (GKE). You want to integrate with a third-party monitoring platform by performing a HTTP POST of the build information to a webhook. You want to minimize the development effort. What should you do?
Add logic to each Cloud Build step to HTTP POST the build information to a webhook.
Add a new step at the end of the pipeline in Cloud Build to HTTP POST the build information to a webhook.
Use Stackdriver Logging to create a logs-based metric from the Cloud Build logs. Create an Alert with a Webhook notification type.
Create a Cloud Pub/Sub push subscription to the Cloud Build cloud-builds PubSub topic to HTTP POST the build information to a webhook.
ユーザの投票
コメント(14)
I have submitted D answer
👍 16Charun2021/06/28Ans: D Pub/Sub
A: No becauseThere is not Structure attribute to create a http request in the steps and remember you want minimize the development effort. B: The same A C: minimize the development effort D: Its OK
To receive messages from push subscriptions, use a webhook and process the POST requests that Pub/Sub sends to the push endpoint. For more information about processing these POST requests in App Engine, see Writing and responding to Pub/Sub messages.
https://cloud.google.com/pubsub/docs/push https://cloud.google.com/build/docs/subscribe-build-notifications
👍 15francisco_guerra2021/06/19- 正解だと思う選択肢: D
D is the answer.
https://cloud.google.com/build/docs/subscribe-build-notifications Cloud Build publishes messages on a Google Pub/Sub topic when your build's state changes, such as when your build is created, when your build transitions to a working state, and when your build completes.
The Pub/Sub topic to which Cloud Build publishes these build update messages is called cloud-builds. Each message contains a base64 JSON string representation of your Build resource in the message.data attribute. The build's unique ID and the build's status can be found in the message.attributes field.
You can use a push or pull model for your Pub/Sub subscriptions.
https://cloud.google.com/build/docs/subscribe-build-notifications#push Push subscriptions deliver messages to an HTTP endpoint that you define. Messages are delivered as soon as they are published to the topic.
👍 4zellck2022/10/24
シャッフルモード