An enterprise financial analytics company is designing a Google Cloud compute strategy for two new application workloads:
1. Workload 1: A stateless web API that experiences unpredictable traffic spikes throughout the day and requires zero infrastructure management overhead along with automatic scale-to-zero capabilities during idle periods.
2. Workload 2: A 3-hour nightly transactional risk batch processing job that is stateless, fully fault-tolerant, and designed to resume smoothly if interrupted.
Which TWO compute resource deployment strategies should the Cloud Engineer recommend to satisfy these technical requirements while optimizing overall compute costs? (Select TWO.)
- Deploy Workload 1 on Cloud Run to support automatic scaling down to zero instances during idle periods.Answer
- Deploy Workload 2 on Compute Engine using Spot Virtual Machines (VMs) to minimize processing costs.Answer
- CDeploy Workload 1 on a Compute Engine Managed Instance Group with a fixed node count to eliminate autoscaling configuration latency.
- DDeploy Workload 2 on Cloud Functions using event triggers to run the continuous 3-hour batch execution.
- EDeploy Workload 2 on GKE Autopilot with standard node pricing to prevent preemptions, as batch processing cannot utilize Spot instances.
Answer
Deploying Workload 1 on Cloud Run and Workload 2 on Compute Engine using Spot VMs provides the optimal architectural and cost-effective solution.
Cloud Run is the optimal serverless execution engine for stateless web APIs requiring zero management and automatic scaling to zero when idle. For the fault-tolerant 3-hour batch processing job, Compute Engine Spot VMs provide up to 90% cost savings while accommodating potential interruptions.
Step-by-Step Solution
Key Concept
Selecting GCP compute services based on statefulness, execution duration, auto-scaling characteristics, and fault tolerance to optimize cost and management overhead.