Question 1
Topic: Designing highly scalable, secure, and reliable cloud-native applications
Skill tested: Selects a compute platform based on workload scaling, operational, and networking requirements.
A media company is moving a stateless image-resizing API to Google Cloud. Traffic is highly variable, requests complete in seconds, and the service must scale to zero when idle. The team wants to deploy an application container without managing a cluster or virtual machines. It does not require privileged containers, host-level access, or a continuously running worker. Which platform is the best fit?
Cloud Run is designed to run containerized, request-driven services without requiring the team to manage a cluster or virtual machines. It can scale instances in response to requests and scale to zero when there is no demand, matching the stateless, short-lived workload. GKE provides greater orchestration control but adds cluster operations and is unnecessary here. A managed instance group can autoscale VMs but does not remove VM management and typically cannot scale the service to zero in the same way. A single VM neither meets the scaling requirement nor avoids infrastructure management.