GCP Associate Cloud Engineer Practice Question 11: Cloud Run Scale to Zero

Google Cloud Associate Cloud Engineer · Test 2 · question 1 of 10

Cloud Runeasy

A team has a stateless HTTP service packaged as a container image. Traffic is unpredictable and often drops to zero overnight, and the team does not want to manage servers, clusters, or node pools. They want to pay only while requests are being handled.

Which deployment target should you choose?

Select one answer
Show answer and explanation

Answer:

  • B. Cloud Run, deploying the container image as a service

Cloud Run runs stateless containers that are invoked by HTTP requests or events. It scales automatically with traffic, scales to zero instances when there are no requests (the default minimum is zero), and bills for the resources used while requests are being processed. There is no infrastructure to manage.

Option A cannot scale to zero; a managed instance group needs at least one running VM to answer traffic, and you still manage images and VMs. Option C requires you to operate a cluster and node pool that keep costing money when idle, and an HPA scales pods, not nodes. Option D keeps at least one instance running at all times, so it bills continuously.

Reference: What is Cloud Run

Practice Test 2 ›

Study guides for Google Cloud Associate Cloud Engineer