Professional Cloud DevOps Engineer Exam QuestionsBrowse all questions from this exam

Professional Cloud DevOps Engineer Exam - 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?

Show Answer
Correct Answer: B

The most efficient way to integrate a third-party monitoring platform by performing an HTTP POST of the build information to a webhook is to add a new step at the end of the pipeline in Cloud Build. This approach keeps the implementation straightforward and centralized, minimizing development efforts by ensuring that the HTTP POST action occurs after the completion of the build process in a single place, rather than setting up separate services or more complex subscription models.

Discussion

15 comments
Sign in to comment
francisco_guerra
Dec 20, 2022

Ans: 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

Charun
Dec 29, 2022

I have submitted D answer

zellckOption: D
Apr 24, 2024

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.

AzureDP900
Apr 30, 2024

Yes, D is right based on given scenario

pddddd
Jul 26, 2023

Not sure on D. Pub/Sub posts into specific format and the actual payload in is message.data. Third party system API (where you post status) will have its own POST format. I feel B is better - you add a step in CLoud Build to do the POST.

rinkeshgala1
Dec 7, 2022

D is correct answer https://cloud.google.com/build/docs/subscribe-build-notifications

akg001
Dec 12, 2022

Agree D looks correct to me.

akshay_jadhavOption: D
Nov 4, 2023

Cloud Build -> Pubsub -> HTTP Builder.........SO ans is D

floppinoOption: D
Jun 24, 2024

Ans: D

devopsbatch
Dec 2, 2022

no idea on this

muk5658
May 26, 2023

Its D. Cloud Build -> Pubsub -> HTTP Builder

alaahakim
Jun 5, 2023

Ans : D

AnandaOption: D
Nov 9, 2023

Submitted D in exam.

GCP72Option: D
Jan 24, 2024

Ans: D

JonathanSJOption: D
Jul 11, 2024

Answer D

Ankitkb2011Option: B
May 3, 2025

A is correct because Easy to implement and not correct because Scalable but complex

Ankitkb2011Option: B
May 3, 2025

A is correct because Easy to implement and D is not correct because Scalable but complex