An enterprise IoT platform processes irregular spikes of incoming telemetry messages delivered via Cloud Pub/Sub. Each message requires a lightweight, stateless data validation step that takes approximately 200 milliseconds to execute. The system experiences long periods of zero traffic during maintenance windows, and the operations team wants to minimize both administrative overhead and baseline infrastructure cost. Which compute platform should you select to host the data validation service?
- Cloud Run configured with Pub/Sub push subscription deliveryAnswer
- BA standard Google Kubernetes Engine (GKE) cluster with Horizontal Pod Autoscaler (HPA) enabled
- CCompute Engine Managed Instance Group (MIG) configured with autoscaling based on CPU utilization
- DCompute Engine sole-tenant nodes provisioned with 3-year Committed Use Discounts
Answer
Cloud Run configured with Pub/Sub push subscription delivery is the optimal choice because it provides serverless autoscaling down to zero instances for stateless validation logic while avoiding infrastructure management overhead.
The solution requiring Cloud Run with Pub/Sub push subscription delivery is correct because Cloud Run provides fully managed serverless execution for stateless containerized workloads. It automatically scales instances up to meet incoming request spikes and down to zero when idle, avoiding baseline compute costs and administrative overhead.
Step-by-Step Solution
Key Concept
Selecting serverless container platforms (Cloud Run) for stateless event-driven processing to minimize cost and operational overhead