An enterprise organization is planning to deploy two new stateless workloads to Google Cloud with the goal of minimizing operational overhead and infrastructure management:
1. A RESTful web microservice packaged as a Docker container that handles HTTP traffic.
2. A small, lightweight event handler that executes code automatically whenever a file is uploaded to a Cloud Storage bucket.
Which TWO Google Cloud compute platforms should the cloud architect select to host these workloads according to Google recommended practices?
- Deploy the containerized RESTful web microservice on Cloud Run.Answer
- Deploy the file upload event handler using Cloud Functions.Answer
- CProvision a Google Kubernetes Engine (GKE) cluster with dedicated node pools to run both workloads.
- DCreate Compute Engine virtual machine instances with custom bash scripts to poll Cloud Storage and serve HTTP endpoints.
Answer
The cloud architect should deploy the containerized RESTful web microservice on Cloud Run and deploy the file upload event handler using Cloud Functions.
For stateless containerized HTTP microservices, Cloud Run provides a serverless platform that automatically scales containers to zero and handles infrastructure management. For event-driven execution responding to Cloud Storage events, Cloud Functions offers direct integration without needing persistent server management, achieving minimal operational overhead for both requirements.
Step-by-Step Solution
Key Concept
Selecting Serverless Compute Platforms for Stateless and Event-Driven Workloads