GCP Associate Cloud Engineer Practice Question

You have deployed an internal-only Cloud Run service named "image-processor" in the us-central1 region with authentication required. The service must run automatically whenever a new object is added to the existing Cloud Storage bucket gs://product-images. You want a fully managed, low-maintenance solution that follows Google-recommended practices. What should you do?

  • Create an Eventarc trigger in us-central1 for the event type "google.cloud.storage.object.v1.finalized" on the product-images bucket and set the destination to the image-processor Cloud Run service, leaving authentication enabled.

  • Deploy a 2nd-generation Cloud Function triggered by the bucket finalize event that sends an authenticated HTTP request to the Cloud Run endpoint.

  • Enable Cloud Storage object change notifications, create a Pub/Sub topic, add a push subscription that posts to the Cloud Run URL, and grant the Pub/Sub service account the Cloud Run Invoker role.

  • Change the Cloud Run service to allow unauthenticated invocations and configure Cloud Storage change notifications to call the service URL when objects are created.

GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot