A telehealth organization is designing a solution to handle patient document processing and report generation. The document generation service is a stateless HTTP-based microservice that experiences unpredictable, bursty usage with long periods of zero traffic. Reports must be rendered on demand, and generated PDF files must be retained for seven years to comply with health regulations. The files are accessed frequently during the first 30 days after creation, but rarely accessed afterward. The organization wants to minimize operational maintenance and overall cloud expenditure, ensuring costs scale to zero during idle periods. Which architecture best meets these business and cost optimization requirements?
- Deploy the microservice on Cloud Run, and store generated PDF reports in a Cloud Storage bucket configured with an Object Lifecycle Management rule to transition objects to Archive Storage after 30 days.Answer
- BDeploy the microservice on a Google Kubernetes Engine (GKE) Autopilot cluster, and store generated PDF reports in a Cloud Storage bucket with Object Lifecycle Management enabled.
- CDeploy the microservice on Cloud Run, and store the binary PDF reports directly as BLOB data in a multi-region Cloud Spanner database instance.
- DProvision a dedicated Compute Engine Instance Group using a 3-year Committed Use Discount (CUD) to host the microservice, and store generated PDF reports in Cloud Storage Standard class.
Answer
Deploy the microservice on Cloud Run, and store generated PDF reports in a Cloud Storage bucket configured with an Object Lifecycle Management rule to transition objects to Archive Storage after 30 days.
Cloud Run provides serverless compute execution that automatically scales down to zero instances during idle periods, ensuring costs are incurred only when HTTP requests are actively processed. Paired with Cloud Storage Object Lifecycle Management, files are stored cost-effectively during their active 30-day window in Standard class and then transitioned to Archive class to fulfill seven-year compliance storage requirements at minimal cost.
Step-by-Step Solution
Key Concept
Serverless compute auto-scaling to zero paired with object storage lifecycle tiering for optimal cost governance.