Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 416 of 481

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

Google Professional Cloud Developer Question 416

Select 1Google Cloud Platform

You are building an order processing system on Google Cloud where new orders are received through a REST API. Once received, the system should: 1) Validate the order, 2) Notify a downstream inventory service via a Pub/Sub topic, 3) Send a confirmation email to the customer after 5 minutes. Which combination of Google Cloud services should you use to orchestrate these steps?

  1. A

    Use Workflows to orchestrate the steps, Eventarc to listen for Pub/Sub events, and Cloud Tasks to delay email confirmation.

  2. B

    Use Workflows to orchestrate the steps, Cloud Tasks for delayed email confirmation, and Pub/Sub for notifying the inventory service.

  3. C

    Use Eventarc to orchestrate the steps, Cloud Scheduler to delay the email confirmation, and Pub/Sub for notifying the inventory service.

  4. D

    Use Cloud Scheduler to orchestrate the steps, Pub/Sub for notification, and Cloud Tasks for delayed email confirmation.

Show answer and explanation

Correct answer: B

Explanation

Workflows is specifically designed for orchestrating multi-step processes, making it ideal for managing the sequential steps of order validation and notification to a downstream service. Pub/Sub is used to asynchronously notify the inventory service about the order. For the 5-minute delay in sending the email, Cloud Tasks is the most suitable option because it allows you to schedule tasks with precise delays dynamically. This combination ensures a robust, event-driven, and scalable architecture for the use case.

  • A. Incorrect.

    Incorrect: Eventarc is not suitable for this use case because it listens to specific events and triggers actions, but does not orchestrate multi-step workflows.

  • B. Correct.

    Correct: Workflows can orchestrate multi-step tasks, Pub/Sub is effective for notifying the downstream service, and Cloud Tasks can handle the delayed email confirmation.

  • C. Incorrect.

    Incorrect: Eventarc is not used for orchestrating multi-step workflows, and Cloud Scheduler is not suitable for a dynamic 5-minute delay for sending emails.

  • D. Incorrect.

    Incorrect: Cloud Scheduler is not suitable for orchestrating multi-step workflows, and it is not appropriate for delayed tasks based on dynamic input like an order confirmation.

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