GCP Professional Cloud Architect Practice Question
Your company runs a container-based video-transcoding microservice on a regional GKE Standard cluster. The service is invoked by Cloud Pub/Sub messages, must scale to handle thousands of concurrent jobs during course launches, and can be idle for days at a time. Executives want to eliminate all node management tasks, ensure the service can automatically scale down to zero when unused, and pay only for actual execution time-without rewriting the existing container image. Which approach best satisfies these requirements?
Move the workload to a managed instance group of preemptible Compute Engine VMs that scale with an autoscaler based on Pub/Sub queue length.
Convert the cluster to GKE Autopilot and rely on Cluster Autoscaler to add and delete nodes based on demand spikes.
Deploy the existing container to Cloud Run and invoke it via a Pub/Sub push subscription so it scales automatically from zero to thousands of instances.
Rewrite the microservice as a Google Cloud Function triggered by Pub/Sub to achieve serverless execution.
Cloud Run is a fully managed, serverless container platform. It accepts OCI-compliant container images, starts instances on demand, supports automatic horizontal scaling up to thousands of containers, and scales down to zero when idle, so you are billed only for CPU, memory, and requests while code is running. This removes the need to manage or patch nodes.
GKE Autopilot reduces-but does not eliminate-operational overhead and continues to charge for provisioned pod resources even when no traffic arrives, so costs accrue during idle periods.
Cloud Functions would require refactoring the container into individual function entry points and is subject to stricter runtime, language, and resource limits, making it less suitable for an existing complex containerized workload.
Managed instance groups of preemptible VMs still leave you responsible for OS maintenance and incur costs whenever VMs run; they cannot natively scale to zero nor provide per-request billing.
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 the difference between Cloud Run and GKE Autopilot?
Open an interactive chat with Bash
How does Cloud Run integrate with Cloud Pub/Sub?
Open an interactive chat with Bash
Why is converting the microservice to Google Cloud Functions not ideal in this case?
Open an interactive chat with Bash
What is Cloud Run and how does it differ from other serverless platforms?
Open an interactive chat with Bash
How does Cloud Pub/Sub integrate with Cloud Run to achieve event-driven scalability?
Open an interactive chat with Bash
What challenges do GKE Autopilot and Compute Engine face when scaling workloads compared to Cloud Run?
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 .