Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 354 of 481

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

Google Professional Cloud Developer Question 354

Select 2Google Cloud Platform

Your development team is building a serverless architecture where events from a Cloud Storage bucket trigger a Cloud Run service for image processing. To ensure scalability and minimal operational overhead, you want to configure the event receiver to handle these events. Which of the following steps should you take to configure this setup?

  1. A

    Create a Cloud Storage bucket and enable the Eventarc service to listen for bucket events.

  2. B

    Configure an Eventarc trigger to forward Cloud Storage events to the Cloud Run service.

  3. C

    Write a Pub/Sub topic and subscription to manually capture and forward Cloud Storage events to the Cloud Run service.

  4. D

    Deploy the Cloud Run service and set its IAM permissions to allow Eventarc to invoke it.

  5. E

    Enable the Cloud Storage API to allow Eventarc to receive bucket events.

Show answer and explanation

Correct answers: B, D

Explanation

To configure a serverless architecture where Cloud Storage bucket events trigger a Cloud Run service, you should use Eventarc. Eventarc allows you to automatically forward events from Cloud Storage to Cloud Run by creating a trigger. Additionally, the Cloud Run service must have appropriate IAM permissions to allow Eventarc to invoke it. This ensures a scalable and operationally efficient setup without requiring manual Pub/Sub configuration.

  • A. Incorrect.

    Incorrect: While creating a Cloud Storage bucket is necessary, enabling Eventarc service directly on the bucket is not required. Eventarc uses triggers, not direct enablement on the bucket.

  • B. Correct.

    Correct: Configuring an Eventarc trigger is the recommended way to forward Cloud Storage events to a Cloud Run service in a serverless architecture.

  • C. Incorrect.

    Incorrect: Manually writing a Pub/Sub topic and subscription is unnecessary since Eventarc natively integrates with Cloud Storage events and forwards them to Cloud Run.

  • D. Correct.

    Correct: Deploying the Cloud Run service and setting its IAM permissions to allow Eventarc to invoke it is required for Eventarc to work with Cloud Run.

  • E. Incorrect.

    Incorrect: Enabling the Cloud Storage API is not directly required for Eventarc to receive bucket events. Eventarc handles this integration through its triggers.

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