A smart grid technology company is planning compute resources on Google Cloud for two distinct backend workload components:
1. Workload 1: A stateless REST API endpoint that receives unpredictable, bursty HTTP requests from smart meters. It requires automatic scaling down to zero instances during zero-traffic periods to eliminate idle resource costs.
2. Workload 2: A daily 4-hour batch data transformation pipeline that is completely stateless, fault-tolerant, and capable of saving state checkpoints externally to handle instance interruptions.
Which TWO compute service configurations should the cloud engineer select to satisfy these requirements cost-effectively?
- Deploy Workload 1 on Cloud Run to leverage containerized automatic scaling to zero instances when no HTTP traffic is present.Cevap
- Provision Compute Engine Spot VMs for Workload 2 to significantly reduce compute costs for short-lived, fault-tolerant batch processing.Cevap
- CDeploy Workload 1 on Cloud Functions by configuring multi-container Docker Compose definitions for custom runtime dependencies.
- DProvision standard non-preemptible Compute Engine VMs with 3-year Committed Use Discounts for Workload 2 to prevent compute node preemption during execution.
- EDeploy Workload 2 on GKE Autopilot clusters configured with custom OS kernel modifications to enable high-throughput batch task processing.
Cevap
The correct architecture decisions are deploying Workload 1 on Cloud Run to enable scale-to-zero capabilities for bursty HTTP requests, and provisioning Spot VMs on Compute Engine for Workload 2 to cost-effectively run fault-tolerant batch workloads.
Cloud Run is the optimal compute service for Workload 1 because it automatically scales containerized HTTP workloads down to zero when no traffic arrives, eliminating idle costs. For Workload 2, Spot VMs on Compute Engine provide massive cost reductions for batch jobs that are stateless and checkpointed to handle potential instance preemptions.
Adım Adım Çözüm
Anahtar Kavram
Selecting GCP Compute Services Based on Workload Characteristics and Cost Efficiency