exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 228 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 228
Topic #: 1
[All Professional Cloud Developer Questions]

You are developing a new web application using Cloud Run and committing code to Cloud Source Repositories. You want to deploy new code in the most efficient way possible. You have already created a Cloud Build YAML file that builds a container and runs the following command: gcloud run deploy. What should you do next?

  • A. Create a Pub/Sub topic to be notified when code is pushed to the repository. Create a Pub/Sub trigger that runs the build file when an event is published to the topic.
  • B. Create a build trigger that runs the build file in response to a repository code being pushed to the development branch.
  • C. Create a webhook build trigger that runs the build file in response to HTTP POST calls to the webhook URL.
  • D. Create a Cron job that runs the following command every 24 hours: gcloud builds submit.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
edoo
8 months, 2 weeks ago
Selected Answer: B
https://cloud.google.com/build/docs/automating-builds/create-manage-triggers
upvoted 1 times
...
__rajan__
1 year, 1 month ago
Selected Answer: B
B is correct.
upvoted 1 times
...
purushi
1 year, 2 months ago
Selected Answer: B
I go with B. Code commit to the repository should trigger the build process. C is complicated because of webhook POST Url
upvoted 1 times
...
Pime13
1 year, 8 months ago
Selected Answer: B
https://cloud.google.com/build/docs/triggers
upvoted 1 times
...
zellck
1 year, 10 months ago
Selected Answer: B
B is the answer. https://cloud.google.com/build/docs/triggers Cloud Build uses build triggers to enable CI/CD automation. You can configure triggers to listen for incoming events, such as when a new commit is pushed to a repository or when a pull request is initiated, and then automatically execute a build when new events come in. You can also configure triggers to build code on any changes to your source repository or only on changes that match certain criteria.
upvoted 1 times
...
TNT87
1 year, 11 months ago
Selected Answer: B
Cloud Build enables you to build the container image, store the built image in Container Registry, and then deploy the image to Cloud Run.
upvoted 1 times
...
TNT87
1 year, 11 months ago
Selected Answer: B
https://cloud.google.com/build/docs/automating-builds/create-manage-triggers#connect_repo Answer B
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago