A startup is building a lightweight public-facing webhook receiver that must process incoming HTTP POST requests, perform a small data transformation, and write results to Firestore. Expected traffic is roughly 50 requests per second on average with occasional bursts to 500 requests per second. The team wants to minimize operational overhead and pay only for actual execution time. Which compute option is most appropriate?
- A. Cloud Run, configured to allow scaling to the required concurrency.✓ Correct
- B. A GKE Autopilot cluster with a single-replica deployment.
- C. Cloud Functions (2nd gen) triggered by HTTP.
- D. A single Compute Engine n2-standard-4 instance with a custom HTTP server.
Explanation
Cloud Run is the best fit because it is a fully managed serverless container platform that scales automatically from zero to hundreds of instances, charges only for request processing time, and handles HTTP traffic natively. It is well-suited for stateless HTTP services with variable traffic. Cloud Functions (2nd gen) is also serverless and pay-per-execution, but Cloud Run is preferred for HTTP microservices that may have longer execution times or need container-level control — both are viable, but Cloud Run is the more architecturally idiomatic choice for a persistent HTTP endpoint at this traffic level. A single Compute Engine instance does not scale automatically and would be a single point of failure. GKE Autopilot reduces node management but still requires cluster-level management, persistent costs, and is overengineered for this simple stateless HTTP use case.