Question

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

Your development team has developed a stateless HTTP web application packaged inside a custom Docker container image. You need to deploy this application to Google Cloud using a fully managed serverless platform that automatically scales up with traffic and scales down to zero when idle. Which Google Cloud service should you choose?

  1. Cloud RunAnswer
  2. B
    Cloud Functions
  3. C
    Google Kubernetes Engine (GKE) Autopilot
  4. D
    Compute Engine Managed Instance Groups (MIGs)

Answer

Cloud Run is the optimal choice for deploying custom stateless Docker container images on a fully managed serverless compute platform that scales to zero.
Cloud Run is Google Cloud's serverless platform for deploying arbitrary stateless containers over HTTP. It handles scaling automatically, including scaling down to zero instances when no requests are being processed.

Step-by-Step Solution

1
Identify the application requirements
The application is packaged as a custom Docker container, is stateless, handles HTTP web requests, and requires automatic scaling down to zero.
Determining architectural constraints narrows down serverless compute options in Google Cloud.
2
Compare serverless compute options in Google Cloud
Cloud Run directly accepts custom container images and scales HTTP requests serverlessly, whereas Cloud Functions relies on source code snippets.
Cloud Run is designed specifically to run arbitrary stateless containers in a serverless environment.

Key Concept

Selecting serverless compute services based on containerization and scaling requirements
Rate this question