Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 229 discussion

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

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?

  • A. 1. Create a Cloud Build trigger that listens for SUCCEEDED Pub/Sub messages from the clouddeploy-operations topic.
    2. Configure Cloud Build to include a step that promotes the application to the Test cluster.
  • B. 1. Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster.
    2. Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the cloud-builds topic.
  • C. 1. Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster.
    2. Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the clouddeploy-operations topic.
  • D. 1. Create a Cloud Build pipeline that uses the gke-deploy builder.
    2. Create a Cloud Build trigger that listens for SUCCEEDED Pub/Sub messages from the cloud-builds topic.
    3. Configure this pipeline to run a deployment step to the Test cluster.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
cloud_unicorn_99
2 months, 4 weeks ago
Selected Answer: A
Again, question from googles exam practice questions. A is correct.
upvoted 1 times
...
d_ella2001
4 months, 2 weeks ago
Selected Answer: A
Answer from google's exam practice questions: Correct answer A. 1. Create a Cloud Build trigger that listens for SUCCEEDED Pub/Sub messages from the clouddeploy-operations topic. 2. Configure Cloud Build to include a step that promotes the application to the Test cluster.
upvoted 2 times
...
Kadhem
11 months ago
Selected Answer: C
C in answer. A cannot be the answer as it mention "cloud build" and the question talk about cloud deploy.
upvoted 3 times
...
__rajan__
1 year, 2 months ago
Selected Answer: C
I think it should be C.
upvoted 1 times
...
purushi
1 year, 3 months ago
Selected Answer: A
Its either A or D. A is better since the topic is clouddeploy-operations. Once the msg is being published to this topic that means deployment has been done successfully to the environment, so the next step is to deploy the containers in the test cluster. So I go with option A.
upvoted 1 times
...
closer89
1 year, 7 months ago
Selected Answer: A
https://cloud.google.com/functions/docs/calling/pubsub https://cloud.google.com/deploy/docs/integrating#integrating_with_automated_testing cloud deploy sends message cloud build reads this message
upvoted 1 times
...
Pime13
1 year, 9 months ago
Selected Answer: A
https://cloud.google.com/build/docs/automate-builds-pubsub-events#console_2
upvoted 1 times
Pime13
1 year, 9 months ago
Cloud Build Pub/Sub triggers enable you to execute builds in response to Google Cloud events published over Pub/Sub. You can use information from a Pub/Sub event to parameterize your build and to decide if a build should execute in response to the event. Pub/Sub triggers can be configured to listen to any Pub/Sub topic.
upvoted 1 times
...
...
TNT87
1 year, 9 months ago
Selected Answer: C
https://cloud.google.com/functions/docs/calling/pubsub
upvoted 1 times
...
mrvergara
1 year, 9 months ago
Selected Answer: 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.
upvoted 2 times
mrvergara
1 year, 9 months ago
Option A is not better than Option C because it involves using Cloud Build instead of Cloud Functions for the deployment promotion process. While Cloud Build is a powerful tool for building and testing applications, it is generally not recommended for triggering automated tasks in response to events like the successful deployment of an application to a cluster. In Option A, the Cloud Build trigger listens for SUCCEEDED Pub/Sub messages from the clouddeploy-operations topic, and then promotes the application to the Test cluster as part of the Cloud Build pipeline. This approach involves using a more complex and less scalable infrastructure than using a serverless function like Cloud Functions. On the other hand, Option C uses a Cloud Function to promote the application, which is a more streamlined, scalable, and event-driven solution. Cloud Functions are designed specifically for triggering automated tasks in response to events, making them a better choice for this type of use case.
upvoted 3 times
TNT87
1 year, 9 months ago
Your explanation is not from the documentation sir, kindly provide a link to your answer. Do you also understtand what and when to use cloud build??
upvoted 2 times
...
...
...
TNT87
1 year, 9 months ago
Selected Answer: A
https://cloud.google.com/deploy/docs/integrating#integrating_with_automated_testing https://cloud.google.com/deploy/docs/integrating#before_you_begin
upvoted 2 times
TNT87
1 year, 9 months ago
https://cloud.google.com/functions/docs/calling/pubsub mhh i see why it could be C
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 ...