A media company stores photos in a Cloud Storage bucket. When an object is finalized, a containerized Go program must transform the image and write the result to another bucket. Each job can take up to 10 minutes. The team needs a fully managed, pay-per-use platform that
requires no VM or cluster administration,
scales to zero when idle, and
does not expose any public HTTP endpoint. Which solution satisfies these requirements with the least operational overhead?
Build a Cloud Run service from the container image and create an Eventarc trigger for google.cloud.storage.object.v1.finalized events from the bucket. Grant Eventarc's service account the Run Invoker role on the service.
Schedule a Compute Engine VM using Pub/Sub push notifications from Cloud Storage to start the VM, run the program with a startup script, and shut it down after completion.
Deploy a Cloud Functions (2nd gen) function triggered directly by Cloud Storage finalize events and rewrite the program to the Functions runtime.
Create a GKE Autopilot cluster, run the container as a Deployment, and configure the bucket to publish finalize events to a Pub/Sub topic consumed by the Deployment.
Cloud Run lets you deploy your own container image, so the existing Go program can run unchanged. Create an Eventarc trigger for Cloud Storage finalize events; Eventarc invokes the service using IAM-authenticated requests, so the service need not be publicly accessible. Cloud Run supports request timeouts up to 60 minutes, easily covering the 10-minute processing time.
Cloud Functions (2nd gen) can run for up to 60 minutes but does not accept arbitrary pre-built container images, so you would need to refactor the code to a supported runtime. GKE Autopilot and Compute Engine both involve cluster or VM management, violating the no-administration requirement. Therefore, Cloud Run with Eventarc offers the lowest operational overhead.
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 Cloud Run and how does it manage containerized applications?
Open an interactive chat with Bash
What is Eventarc and how does it integrate with Cloud Storage and Cloud Run?
Open an interactive chat with Bash
Why is Cloud Run preferred over Cloud Functions and GKE Autopilot in this scenario?
Open an interactive chat with Bash
What is Eventarc and how does it work?
Open an interactive chat with Bash
Why is Cloud Run preferred over other solutions in this scenario?
Open an interactive chat with Bash
What are the benefits of using IAM-authenticated requests with Eventarc for Cloud Run?
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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .