Your team has containerized an image-processing application and wants it to run automatically every time a new object is written to the Cloud Storage bucket gs://images. The service must scale to zero when idle and expose no public HTTP endpoint. Which setup meets these requirements with the least operational overhead?
Add a storage.onFinalize trigger block directly in the Cloud Run service YAML and reference the bucket name there.
Launch the Cloud Run service with a Cloud Storage FUSE mount of gs://images so it can detect new objects without a separate trigger.
Create an Eventarc trigger that listens for the event type google.cloud.storage.object.v1.finalized, filters on bucket "images", and sets the Cloud Run service as the destination.
Enable Cloud Storage notifications on the bucket and create a Pub/Sub push subscription that posts to the Cloud Run service's URL.
Cloud Run is a fully managed, container-based platform that scales down to zero and does not require an external HTTP endpoint when it is invoked by events. To connect Cloud Storage events to Cloud Run you create an Eventarc trigger that listens for the event type "google.cloud.storage.object.v1.finalized" (object creation) filtered on the bucket name. Eventarc delivers the event to the specified Cloud Run service over Google's internal eventing infrastructure, so the service wakes only when an object is added. The other options either rely on Pub/Sub push (which only sends messages to HTTPS endpoints and still exposes the service), try to mount the bucket instead of using events, or reference a non-existent inline trigger in the Cloud Run YAML, so they do not satisfy all requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Eventarc?
Open an interactive chat with Bash
How does Eventarc work with Cloud Storage and Cloud Run?
Open an interactive chat with Bash
What is Cloud Run's 'scale to zero' feature?
Open an interactive chat with Bash
What is Eventarc in GCP?
Open an interactive chat with Bash
How does Cloud Run scale to zero?
Open an interactive chat with Bash
Why is Eventarc preferred over Pub/Sub for this setup?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .