GCP Professional Cloud Architect Practice Question
Your team is modernizing an on-prem payment-authorization component. You have packaged the code as a stateless container image that exposes an HTTP endpoint and completes each call in under 30 seconds. Demand is highly bursty: marketing campaigns can create thousands of concurrent requests, while overnight traffic often drops to zero. The operations team insists on paying only for actual request execution, avoiding any cluster or VM management, and still needs the service to reach a Cloud SQL instance through VPC connectivity. Which Google Cloud compute platform best meets these requirements?
Refactor the service into Cloud Functions (2nd gen) and connect to Cloud SQL with Cloud SQL Auth Proxy.
Create a GKE Autopilot cluster, run the container as a Deployment, and use Cloud NAT for outbound access to Cloud SQL.
Deploy the container to Cloud Run (fully managed) with a Serverless VPC Access connector.
Launch the container on a Compute Engine managed instance group behind an external HTTP(S) load balancer.
Cloud Run is designed for stateless container images that handle HTTP requests and automatically scale from zero to many instances based on traffic, so no resources run-and no charges accrue-when the service is idle. Billing is calculated per second for CPU, memory, and networking only while requests are being processed. Cloud Run also supports Serverless VPC Access connectors, enabling private connectivity to Cloud SQL without any instance-level network configuration.
Cloud Functions (2nd gen) provides similar scaling and per-request billing but is optimized for single-purpose function handlers rather than full microservices, and would require refactoring the existing containerized service.
GKE Autopilot removes node management but still charges for reserved pod resources even when no requests arrive, and cluster administration tasks such as workload definitions and upgrades remain.
A Compute Engine managed instance group can be configured to scale down to zero VMs, but you still need to create and maintain instance templates, operating-system patching, and an external HTTP(S) load balancer. Costs accrue while any VM is running and for the persistent load balancer, so the solution does not realize true per-request billing or eliminate infrastructure management.
Therefore, Cloud Run with a Serverless VPC Access connector best satisfies all stated 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 Cloud Run and why is it suitable for this scenario?
Open an interactive chat with Bash
How does Serverless VPC Access work with Cloud Run?
Open an interactive chat with Bash
Why is Cloud Run better for bursty traffic compared to GKE Autopilot?
Open an interactive chat with Bash
What is Cloud Run and why is it suited for this use case?
Open an interactive chat with Bash
What is a Serverless VPC Access connector and how does it help with Cloud SQL connectivity?
Open an interactive chat with Bash
Why isn’t GKE Autopilot or Compute Engine suitable for this scenario?
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 .