GCP Professional Cloud Architect Practice Question
An e-commerce company has containerized an image-processing service that uses ImageMagick to create product thumbnails whenever a new image file is written to a Cloud Storage bucket. Upload traffic is unpredictable-some days there are no images, while major sales events trigger thousands of uploads per minute. The team wants to trigger the processing automatically from Cloud Storage events, reuse the existing container without code changes, pay only while requests are handled, and have the service scale from zero to meet sudden spikes. Which Google Cloud managed compute option best meets these requirements while minimizing operational overhead?
Host the container on a GKE Autopilot cluster and configure a Horizontal Pod Autoscaler driven by Pub/Sub messages.
Create a regional managed instance group of pre-emptible Compute Engine VMs that poll the bucket for new objects.
Refactor the code into Cloud Functions (1st generation) with a Cloud Storage trigger.
Deploy the container on Cloud Run and use Eventarc to forward Cloud Storage object-create events to the service.
Cloud Run is designed to run stateless container images without infrastructure management. It supports any containerized application that listens for HTTP requests, so the existing ImageMagick-based container can be used unchanged. Eventarc can deliver Cloud Storage object-create events to Cloud Run, satisfying the event-driven trigger requirement. Cloud Run automatically scales instances up rapidly in response to traffic and back down to zero when idle, so the company pays only for actual request processing time.
Cloud Functions (1st gen) would require rewriting the service into a supported language runtime and does not allow bringing an arbitrary container image. GKE Autopilot removes some cluster management tasks but still incurs per-pod charges even when idle and does not scale to zero by default. A managed instance group on Compute Engine needs VM administration and keeps instances running, leading to higher idle cost.
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 work?
Open an interactive chat with Bash
How does Eventarc integrate with Cloud Storage and Cloud Run?
Open an interactive chat with Bash
Why is Cloud Run preferred over Compute Engine or GKE Autopilot in event-driven use cases?
Open an interactive chat with Bash
What is Eventarc and how does it work with Cloud Run?
Open an interactive chat with Bash
Why does Cloud Run scale to zero and how does it handle spikes in traffic?
Open an interactive chat with Bash
How does Cloud Run differ from Cloud Functions and GKE Autopilot?
Open an interactive chat with Bash
GCP Professional Cloud Architect
Designing and planning a cloud solution architecture
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 .