PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #123
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 P
The correct answer is D. Create a Cloud Pub/Sub push subscription to the Cloud Build cloud-builds PubSub topic to HTTP. 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/pubs
Question
Options
- AAdd logic to each Cloud Build step to HTTP POST the build information to a webhook.
- BAdd a new step at the end of the pipeline in Cloud Build to HTTP POST the build information to a
- CUse Stackdriver Logging to create a logs-based metric from the Cloud Build logs. Create an Alert
- DCreate a Cloud Pub/Sub push subscription to the Cloud Build cloud-builds PubSub topic to HTTP
How the community answered
(22 responses)- A9% (2)
- B5% (1)
- C5% (1)
- D82% (18)
Explanation
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
Topics
Community Discussion
No community discussion yet for this question.