Question

Difficulty: MediumPlanning and Assessing Cloud Compute Solutions

A software team is assessing compute options for an internal analytics application. The application consists of a single containerized web service that receives unpredictable, intermittent HTTP requests during business hours and no traffic overnight. The team requires a serverless solution with minimal operational overhead that automatically scales down to zero compute instances to eliminate costs when idle. Which Google Cloud compute service best satisfies these requirements?

  1. Cloud Run, because it deploys container images directly, manages underlying infrastructure automatically, and scales instances to zero during idle periods.Answer
  2. B
    Cloud Functions, because it is the only Google Cloud compute option capable of scaling execution environments down to zero when idle.
  3. C
    Google Kubernetes Engine (GKE) Standard cluster, because GKE Autopilot cannot scale workloads down to zero node instances.
  4. D
    Compute Engine Spot VMs in a Managed Instance Group, because Spot VMs provide the lowest pricing for intermittent web workloads requiring HTTP availability.

Answer

Cloud Run, because it deploys container images directly, manages underlying infrastructure automatically, and scales instances to zero during idle periods.
Cloud Run is a managed serverless platform designed for executing stateless container images. It automatically scales instances up or down based on incoming HTTP traffic, including scaling down to zero instances when idle so costs are only incurred during active request processing.

Step-by-Step Solution

1
Analyze the workload characteristics and constraints
The application is a containerized web service receiving intermittent HTTP traffic with zero traffic overnight, requiring zero infrastructure management and scale-to-zero capability.
Identifying containerization and traffic patterns narrows down the candidate compute options.
2
Evaluate Google Cloud compute options against workload criteria
Cloud Run supports standard container images, abstracts all server management, automatically scales compute instances based on request volume, and scales to zero when idle.
Cloud Run is the optimal fit for stateless containerized HTTP services seeking minimal cost during inactive periods.

Key Concept

Selecting Cloud Run for containerized web applications needing automatic scaling to zero
Rate this question