Soru

Zorluk: KolayDesigning Infrastructure for Business Requirements and Cost Optimization

A digital media startup needs to host a stateless HTTP microservice that receives occasional web traffic throughout the day and store static thumbnail images that are rarely accessed after 30 days. Which TWO architectural decisions should you recommend to minimize operational and baseline compute costs while satisfying these business requirements?

  1. Deploy the stateless HTTP microservice on Cloud Run to automatically scale compute instances to zero when idle.Cevap
  2. Store static thumbnail images in Cloud Storage and use Object Lifecycle Management to transition objects to Nearline storage after 30 days.Cevap
  3. C
    Deploy the stateless HTTP microservice on a multi-zone Google Kubernetes Engine (GKE) Standard cluster with a fixed node count.
  4. D
    Store static thumbnail images in Cloud Spanner to maintain global transactional consistency for binary file storage.

Cevap

The optimal architectural choices to minimize costs are deploying the stateless HTTP microservice on Cloud Run to allow scaling to zero during idle periods, and storing static thumbnail images in Cloud Storage with Object Lifecycle Management to transition aging objects to lower-cost Nearline storage.
Deploying the microservice to Cloud Run eliminates compute costs when traffic is absent by scaling to zero instances. Storing media assets in Cloud Storage with Object Lifecycle Management ensures unstructured blobs are stored in the most economical storage tier based on access frequency.

Adım Adım Çözüm

1
Evaluate compute service requirements for intermittent traffic and baseline cost minimization.
Cloud Run provides fully managed serverless container execution with scale-to-zero capabilities, ensuring zero cost when no requests are being processed.
Serverless execution avoids paying for idle VM compute resources.
2
Evaluate storage selection and lifecycle policies for unstructured binary data with changing access patterns over time.
Cloud Storage is optimized for unstructured media files, and Object Lifecycle Management automates moving files to colder storage tiers to reduce ongoing capacity costs.
Transitioning infrequently accessed objects lowers unit storage costs without manual administrative intervention.

Anahtar Kavram

Serverless compute right-sizing and object storage lifecycle optimization
Bu soruyu puanla