A logistics platform is evaluating Google Cloud compute options for two application services with distinct operational and cost constraints:
1. Workload X: A stateless, containerized REST API that experiences unpredictable traffic spikes and extended idle periods. It requires automatic scaling down to zero instances to eliminate ongoing infrastructure expenses.
2. Workload Y: A 4-hour batch processing job that analyzes historical GPS telemetry. The job is fault-tolerant, regularly checkpoints its state, and must execute at the lowest possible per-hour compute cost.
Which deployment strategy best meets the requirements for both workloads while minimizing operational overhead and cost?
- Deploy Workload X on Cloud Run, and deploy Workload Y on Compute Engine Spot VMs.Answer
- BDeploy Workload X on Cloud Run, and deploy Workload Y on Cloud Functions.
- CDeploy Workload X on Compute Engine Spot VMs, and deploy Workload Y on GKE Autopilot.
- DDeploy Workload X on GKE Standard, and deploy Workload Y on Cloud Run.
Answer
Deploy Workload X on Cloud Run, and deploy Workload Y on Compute Engine Spot VMs.
The combination of Cloud Run for the stateless REST API and Compute Engine Spot VMs for the batch job perfectly matches all operational constraints. Cloud Run scales seamlessly to zero during idle periods to eliminate cost, while Spot VMs provide the lowest per-hour compute rates for a long-running, fault-tolerant batch application.
Step-by-Step Solution
Key Concept
Selecting GCP compute resources based on workload statefulness, execution duration, scaling characteristics, and fault tolerance.
Estimated Time:2m 0s