PROFESSIONAL-CLOUD-DEVELOPER · Question #161
You are developing a single-player mobile game backend that has unpredictable traffic patterns as users interact with the game throughout the day and night. You want to optimize costs by ensuring…
The correct answer is A. Cloud Run. Cloud Run is purpose-built for unpredictable, variable workloads. It scales automatically from zero to thousands of container instances based on incoming requests, and scales back down to zero when idle - eliminating costs during quiet periods. This directly satisfies the goals…
Question
You are developing a single-player mobile game backend that has unpredictable traffic patterns as users interact with the game throughout the day and night. You want to optimize costs by ensuring that you have enough resources to handle requests, but minimize over-provisioning. You also want the system to handle traffic spikes efficiently. Which compute platform should you use?
Options
- ACloud Run
- BCompute Engine with managed instance groups
- CCompute Engine with unmanaged instance groups
- DGoogle Kubernetes Engine using cluster autoscaling
How the community answered
(51 responses)- A80% (41)
- B10% (5)
- C6% (3)
- D4% (2)
Explanation
Cloud Run is purpose-built for unpredictable, variable workloads. It scales automatically from zero to thousands of container instances based on incoming requests, and scales back down to zero when idle - eliminating costs during quiet periods. This directly satisfies the goals of minimizing over-provisioning and handling traffic spikes efficiently. Compute Engine with managed instance groups (B) can autoscale but requires a minimum number of instances running at all times and has slower scale-out response times. Unmanaged instance groups (C) require manual scaling. GKE with cluster autoscaling (D) is more appropriate for complex microservice architectures with stateful workloads; it also maintains minimum node counts and has higher operational overhead than Cloud Run for a simple mobile game backend.
Topics
Community Discussion
No community discussion yet for this question.