An enterprise architecture team is planning the serverless compute deployment strategy for two distinct workloads:
• Workload 1: A real-time telemetry ingestion service requiring persistent WebSocket connections, custom C-based system dependencies, and high per-instance concurrency.
• Workload 2: A stateless background worker processing individual object creation events from a Google Cloud Storage bucket.
Which TWO architectural decisions correctly satisfy these operational requirements using Google Cloud serverless services? (Select TWO.)
- Deploy Workload 1 to Cloud Run, because Cloud Run supports custom container images, WebSocket connections, and configurable multi-concurrency per instance.Answer
- BDeploy Workload 1 to Cloud Functions (1st gen), because it natively handles custom Linux binary dependencies and multi-threaded WebSocket connections.
- Deploy Workload 2 to Cloud Functions (2nd gen) or Cloud Run triggered via Eventarc, because both serverless platforms natively process Cloud Storage event notifications.Answer
- DDeploy Workload 2 to Compute Engine Managed Instance Groups (MIGs), because Google Cloud serverless options cannot receive event notifications from Cloud Storage.
Answer
Deploy Workload 1 to Cloud Run to support custom container dependencies, WebSockets, and multi-concurrency. Deploy Workload 2 to Cloud Functions (2nd gen) or Cloud Run using Eventarc triggers for event-driven storage processing.
Cloud Run is required for Workload 1 because it allows custom container packaging for system-level dependencies, supports persistent WebSocket connections, and enables configurable multi-concurrency. Cloud Functions (2nd gen) or Cloud Run combined with Eventarc is optimal for Workload 2 because both provide seamless serverless execution in response to Cloud Storage events.
Step-by-Step Solution
Key Concept
Evaluating serverless execution paradigms (Cloud Run vs Cloud Functions) based on container customization, protocol requirements (WebSockets), concurrency settings, and event-driven trigger integrations.