Soru

Zorluk: KolayDesigning Infrastructure for Business Requirements and Cost Optimization

A retail company needs to deploy a simple, stateless HTTP web microservice that experiences low and unpredictable traffic patterns throughout the day. The primary business requirement is to minimize operational management overhead and infrastructure cost by ensuring resources only incur charges during active processing. Which deployment strategy should you choose?

  1. Deploy the microservice container to Cloud Run so compute instances automatically scale to zero during idle periods.Cevap
  2. B
    Provision a multi-zone Google Kubernetes Engine (GKE) cluster with Cluster Autoscaler enabled to manage container pods.
  3. C
    Purchase a 3-year Committed Use Discount for dedicated Compute Engine virtual machines sized for maximum anticipated traffic.
  4. D
    Deploy the workload compute layer coupled with a multi-region Cloud Spanner database cluster to handle web request state.

Cevap

Deploying the microservice container to Cloud Run allows the application to automatically scale to zero during idle periods, matching the business goal of minimizing compute costs and operational overhead.
Cloud Run provides a serverless execution environment specifically engineered for stateless HTTP containers. Because it scales down to zero active instances when no requests are being processed, it avoids idle infrastructure costs and requires zero cluster configuration or operational management.

Adım Adım Çözüm

1
Analyze the application characteristics and business goals
The application is a stateless HTTP microservice with low, unpredictable traffic requiring minimized infrastructure costs and minimal management overhead.
Understanding application state and traffic patterns dictates the optimal compute architecture.
2
Evaluate GCP compute options against scale-to-zero capabilities
Cloud Run automatically scales container instances up or down based on traffic, down to zero instances when no HTTP requests arrive.
Scale-to-zero ensures the organization only pays for the exact CPU and memory consumed while processing incoming requests.

Anahtar Kavram

Serverless compute right-sizing for cost optimization and low operational overhead
Tahmini Süre:45s
Bu soruyu puanla