QuestionQ277

Designing scalable, available, and reliable cloud-native applications

You are building a single-player mobile game backend with unpredictable traffic patterns as users interact with the game during the day and night. You want to optimize costs by ensuring sufficient resources are available to handle requests while minimizing over-provisioning. You also need the system to efficiently handle traffic spikes. Which compute platform should you use?

  • A Cloud Run
  • B Compute Engine with managed instance groups
  • C Compute Engine with unmanaged instance groups
  • D Google Kubernetes Engine using cluster autoscaling
Explanation

Cloud Run automatically scales service instances in response to incoming request demand and removes idle instances when demand falls, including scaling to zero by default. Its request-based billing avoids charges for idle instances, making it well suited to unpredictable traffic and sudden request spikes while minimizing over-provisioning.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!