Question

Difficulty: MediumPlanning Serverless Compute Options (Cloud Run and Cloud Functions)

A financial technology enterprise is planning the serverless compute architecture for a financial statement rendering microservice on Google Cloud. The microservice must execute a proprietary, custom-compiled Linux binary packaged inside a container, and it must process up to 80 concurrent HTTP requests per instance to optimize compute costs and minimize cold starts. Which serverless compute option should the cloud engineering team select to meet these requirements?

  1. Cloud Run, because it supports running custom container images with arbitrary compiled binaries and allows configuring request concurrency per instance.Answer
  2. B
    Cloud Functions, because it automatically routes up to 80 concurrent HTTP requests into a single function execution context without containers.
  3. C
    Cloud Functions, because custom compiled Linux binaries can only be executed using standard Cloud Functions language buildpacks.
  4. D
    App Engine Standard Environment, because it is the only serverless service in Google Cloud capable of executing custom system binaries with concurrency.

Answer

Cloud Run, because it supports running custom container images with arbitrary compiled binaries and allows configuring request concurrency per instance.
Cloud Run allows developers to deploy any container image, making it the ideal choice for workloads requiring custom-compiled Linux binaries. Furthermore, Cloud Run natively supports multi-concurrency, enabling a single container instance to serve multiple concurrent HTTP requests up to user-defined limits, satisfying both operational requirements efficiently.

Step-by-Step Solution

1
Identify architectural requirements from the scenario
The application requires executing a custom-compiled Linux binary packaged in a container and handling high per-instance concurrency (80 simultaneous requests).
Analyzing runtime requirements and concurrency needs narrows down the suitable serverless execution environment.
2
Compare Cloud Run against other serverless offerings
Cloud Run is a fully managed serverless platform that executes stateless OCI-compliant containers, allowing custom binaries and configurable per-instance concurrency settings.
Cloud Functions is designed for lightweight, event-driven functions and standard language runtimes, whereas Cloud Run provides complete container flexibility and explicit multi-concurrency control.

Key Concept

Choosing Cloud Run for serverless container workloads requiring custom binaries and multi-request concurrency.
Rate this question