A enterprise architecture team is designing a serverless solution on Google Cloud for two distinct backend services:
1. Service A: A legacy C++ application that processes incoming REST HTTP requests. It requires custom OS-level system packages, must handle up to 250 concurrent requests per container instance to minimize cost, and needs an execution timeout configured for up to 45 minutes to process batch operations.
2. Service B: A lightweight Node.js event handler that responds to real-time object finalized events in Cloud Storage and completes execution in less than 3 seconds per trigger.
Which TWO architectural decisions correctly align with Google Cloud serverless best practices for these workloads? (Select TWO.)
- Deploy Service A to Cloud Run, because Cloud Run supports custom container images with system binaries, allows configurable request concurrency per instance, and supports execution timeouts up to 60 minutes for HTTP-triggered workloads.Cevap
- Deploy Service B to Cloud Functions (2nd gen) or Cloud Run, using Eventarc or Cloud Storage event triggers to process event payloads with minimal cold-start overhead.Cevap
- CDeploy Service A to Cloud Functions (1st gen), because Cloud Functions automatically compiles custom OS-level C++ binaries and supports high multi-request concurrency per function instance.
- DDeploy Service B to a Compute Engine Managed Instance Group using Spot VMs to ensure zero cold starts for asynchronous file upload events.
Cevap
Deploy Service A to Cloud Run due to custom container environment support, multi-concurrency capabilities, and 60-minute execution timeouts. Deploy Service B to Cloud Functions (2nd gen) or Cloud Run to efficiently process Cloud Storage events using Eventarc integration.
Cloud Run is the optimal choice for Service A because it runs arbitrary Docker containers (supporting custom C++ system libraries), handles up to 1000 concurrent requests per container instance, and allows timeouts up to 60 minutes for HTTP services. Cloud Functions (2nd gen) or Cloud Run is the optimal choice for Service B because both natively integrate with Eventarc to process Cloud Storage events with automatic scaling.
Adım Adım Çözüm
Anahtar Kavram
Selecting between Cloud Run and Cloud Functions based on containerization, concurrency, timeout, and event-trigger constraints.