Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 418 of 481

Professional Cloud Developer. Professional level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Developer Question 418

Select 2Google Cloud Platform

You are developing a serverless application on Google Cloud that processes user-submitted image files. The workflow consists of the following steps: 1) Upload the image to a Cloud Storage bucket. 2) Trigger an image processing function to optimize the image. 3) Save the processed image to another Cloud Storage bucket. 4) Notify the user via email once the image is ready. Which combination of Google Cloud services is the most appropriate to orchestrate this workflow?

  1. A

    Use Workflows to orchestrate the entire process, Eventarc to trigger the image processing function, and Cloud Tasks for email notifications.

  2. B

    Use Eventarc to monitor Cloud Storage bucket events, Workflows to orchestrate the process, and Cloud Tasks for email notifications.

  3. C

    Use Cloud Scheduler to periodically check the Cloud Storage bucket for new images, Eventarc to trigger the image processing function, and Workflows for email notifications.

  4. D

    Use Workflows to orchestrate the entire process, Cloud Tasks to asynchronously handle the image processing function, and Cloud Scheduler to trigger the process periodically.

Show answer and explanation

Correct answers: A, B

Explanation

The ideal solution for orchestrating a serverless, event-driven application on Google Cloud is to use Workflows for end-to-end orchestration and Eventarc to trigger specific steps like the image processing function based on Cloud Storage events. Cloud Tasks is a good choice for asynchronously handling tasks like email notifications. Cloud Scheduler is not necessary in this scenario as the workflow is event-driven, not time-driven.

  • A. Correct.

    Correct: Workflows is well-suited for orchestrating the steps in this serverless process. Eventarc is ideal for triggering the image processing function based on a Cloud Storage event. Cloud Tasks can handle email notifications asynchronously.

  • B. Correct.

    Correct: Eventarc can monitor events in the Cloud Storage bucket and trigger the image processing function. Workflows can orchestrate the process, and Cloud Tasks is an appropriate choice to handle email notifications.

  • C. Incorrect.

    Incorrect: Cloud Scheduler is not suitable for monitoring bucket events as it operates on a time-based schedule. Eventarc is more appropriate for event-driven scenarios like Cloud Storage operations.

  • D. Incorrect.

    Incorrect: Cloud Scheduler is unnecessary for triggering the process periodically since the workflow is event-driven. Additionally, Cloud Tasks is not the best choice for handling image processing as it is better suited for managing asynchronous tasks like notifications.

Timed practice exam

Take a Google Professional Cloud Developer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam