A healthcare startup wants to optimize cloud spending across two specific workloads: a monthly batch log processing task that runs for a few hours and a low-traffic internal web service that sits idle most of the day. Which TWO cost optimization strategies should the team implement to minimize expenses?
- Configure Cloud Storage Object Lifecycle Management rules to move processed logs to Nearline or Coldline storage after 30 days.Answer
- Migrate the low-traffic internal web service from a dedicated virtual machine to Cloud Run to benefit from scale-to-zero pricing.Answer
- CPurchase 3-year Committed Use Discounts (CUDs) for the virtual machines running the short monthly batch log processing jobs.
- DMigrate the internal web app database from Cloud SQL to Cloud Spanner to reduce database management fees.
- EGrant primitive IAM Owner roles to development team leads to enable faster billing resource cleanup.
Answer
Implementing Object Lifecycle Management rules to transition log data to colder storage classes and deploying the low-traffic web service to Cloud Run.
Transitioning logs to Nearline or Coldline storage using lifecycle policies reduces storage unit costs for aging data. Hosting low-traffic web apps on Cloud Run ensures billing only occurs when requests are processed, eliminating idle server cost.
Step-by-Step Solution
Key Concept
Optimizing GCP resource expenses using Cloud Storage lifecycle policies and serverless compute scale-to-zero capabilities.