A digital asset management platform needs to deploy an image resizing service on Google Cloud. The service requires a custom-compiled C++ graphic library dependency, processes incoming HTTP POST requests with payloads up to 20 MB, and must handle multiple concurrent requests per container instance to reduce operational cost. The solution must scale to zero instances when idle. Which Google Cloud compute option should you recommend?
- Cloud Run, because it allows packaging custom system binaries into container images and supports multi-concurrency per instance.Answer
- BCloud Functions (1st gen), because it automatically compiles system-level C++ binaries upon deployment and scales per request.
- CCompute Engine unmanaged instance group, because serverless services cannot process HTTP requests containing binary payloads.
- DCloud Functions (2nd gen), because it provides dedicated node isolation without support for custom system libraries.
Answer
Cloud Run, because it allows packaging custom system binaries into container images and supports multi-concurrency per instance.
The correct choice highlights Cloud Run's ability to run custom container images containing any compiled binaries (such as C++ graphics libraries) while serving multiple concurrent HTTP requests per instance, making it both technically compatible and cost-efficient.
Step-by-Step Solution
Key Concept
Evaluating serverless compute options based on runtime customization, binary dependencies, and concurrency model.