Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An organization runs a stateless API service on a Google Cloud Compute Engine Managed Instance Group (MIG). The application exhibits predictable daily traffic surges and requires approximately 4 minutes to warm up local caches and initialize runtime dependencies during scale-out events. During sudden load increases, end users observe increased latency because the active VMs become heavily saturated while newly provisioned instances are still starting up.
The MIG currently uses real-time CPU-based autoscaling with a target CPU utilization of 80% and a default initialization period of 60 seconds.
Which configuration change should the DevOps engineer implement to prevent latency degradation during peak traffic cycles while balancing infrastructure costs?
Predictive autoscaling is an advanced feature of Compute Engine autoscalers that leverages historical load patterns to forecast future capacity needs and proactively scale out VM instances ahead of anticipated traffic spikes. The initialization period (configured via coolDownPeriodSec or --cool-down-period) informs the autoscaler of the exact duration an application requires from VM creation until it is fully ready to serve live traffic without skewing metric collection.
coolDownPeriodSec: 240 ensures the autoscaler ignores incomplete initialization metrics and accurately accounts for VM readiness.Reactive autoscaling inherently lags behind traffic surges when applications take multiple minutes to boot. Combining predictive autoscaling with an accurate 240-second initialization period addresses the root cause of the latency spikes while avoiding excessive static capacity.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.