Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Cloud Network Engineer practice bank has an additional 2,437 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
You are designing a backend architecture in us-central1 for a stateless HTTP API whose responses complete in under 200 milliseconds. Your design must meet the following requirements:
Which load balancer and Managed Instance Group (MIG) configuration should you deploy?
ANY target distribution shape. Configure the backend service with the CONNECTION balancing mode and max-connections-per-instance set to 150, and configure an autoscaler using load balancing serving capacity with coolDownPeriodSec set to 90.An external proxy Network Load Balancer terminates Layer 4 TCP connections at Google's edge and proxies them to backends using the CONNECTION balancing mode, which tracks active or new TCP connections via max-connections-per-instance. Meanwhile, the ANY target distribution shape instructs a regional MIG to acquire VMs in whichever zones have available capacity or matching reservations, regardless of cross-zone balance.
CONNECTION mode measures TCP connections per instance rather than HTTP requests per second (RPS). Because HTTP/1.1 keep-alive and HTTP/2 multiplex many HTTP requests over a single TCP connection, limiting connections to 150 does not enforce a 150 RPS target.ANY distribution shape does not enforce multi-zone balance and can deploy most or all VMs into a single zone, causing a severe capacity loss or complete outage if that zone fails.ANY shape use case: Optimized for batch workloads that prioritize hardware acquisition and zonal reservation consumption over high availability.CONNECTION support: While regional MIGs do support max-connections-per-instance under CONNECTION mode, that combination cannot drive load-balancer-capacity autoscaling.You were load balancing a non-HTTP TCP service that required limiting concurrent TCP connections per VM, scaled via CPU utilization or Cloud Monitoring metrics rather than load balancer capacity, and ran batch or fault-tolerant jobs where multi-zone symmetry was unnecessary.
EVEN target distribution shape. Configure the backend service with the RATE balancing mode and max-rate set to 450, and configure an autoscaler using load balancing serving capacity with coolDownPeriodSec set to 90.max-rate doesIn Google Cloud Load Balancing, the max-rate target capacity parameter defines a static target HTTP request rate per backend zone for the RATE balancing mode. When applied to a zonal instance group or zonal network endpoint group (NEG), the load balancer uses max-rate to cap the total requests per second directed to that specific zone before spilling traffic to other zones.
max-rate parameter in RATE or UTILIZATION balancing modes. Attempting to attach a regional MIG to an Application Load Balancer backend service using max-rate results in a configuration error.max-rate were supported, specifying a fixed group-wide rate (such as 450 RPS) does not scale dynamically per VM as the autoscaler adds or removes instances, breaking the requirement to target 150 RPS per VM.max-rate scope: Applies strictly to an entire single-zone backend (X requests per second total, yielding X / h average RPS across h healthy instances).max-rate-per-instance scope: Required for regional MIGs; Google Cloud multiplies the per-instance target by the total instances K in each constituent zone (K * X) to compute per-zone target capacity dynamically.max-rate.You were deploying multiple separate zonal MIGs (one per zone) instead of a regional MIG and wanted to enforce a fixed, group-wide RPS ceiling per zone rather than a per-instance RPS target that scales with group size.
BALANCED target distribution shape and proactive redistribution disabled. Configure the backend service with the RATE balancing mode and max-rate-per-instance set to 150, and configure an autoscaler using load balancing serving capacity with coolDownPeriodSec set to 90.A stateful Managed Instance Group (MIG) preserves unique per-instance state—such as VM instance names, persistent disks, and custom metadata—across disruptive lifecycle events including VM recreation, autohealing, and rolling updates. Using the BALANCED target distribution shape with proactive instance redistribution disabled prevents the MIG from automatically deleting stateful VMs in larger zones just to rebalance across zones.
RECREATE replacement method rather than opportunistic replacement.NONE to protect stateful instances from automatic cross-zone deletion.Your workload required preserving per-VM persistent disks or instance-specific metadata—such as stateful database nodes or legacy monolithic servers—and did not require autoscaling or load-balancing capacity-driven elasticity.
Stateless HTTP APIs should store any required session or application state externally (for example, in Cloud SQL, Memorystore, or Cloud Storage) so the compute tier can remain a stateless MIG capable of full autoscaling and automatic zone rebalancing.
EVEN target distribution shape. Configure the backend service with the RATE balancing mode and max-rate-per-instance set to 150, and configure an autoscaler using load balancing serving capacity with coolDownPeriodSec set to 90.This architecture pairs an external Application Load Balancer with a stateless regional Managed Instance Group (MIG) spanning three zones in us-central1, using HTTP request rate (RATE) balancing and load balancing serving capacity autoscaling.
EVEN target distribution shape automatically spreads VMs equally across three selected zones and enables proactive instance redistribution by default. If a single zone fails, VMs in the two remaining healthy zones continue serving traffic while the load balancer shifts requests away from the failed zone and the autoscaler scales out in healthy zones with available capacity.SHORT traffic duration), RATE balancing mode is optimal. Regional MIGs require max-rate-per-instance rather than max-rate; setting it to 150 enables the load balancer to compute each zone's target capacity as K * 150 (where K is the number of instances in that zone) and compute average load per healthy instance as (K * 150) / h.coolDownPeriodSec to 90 instructs the autoscaler to wait 90 seconds after VM startup before including that instance's load metrics in scaling calculations.K * 150 target capacity, the Application Load Balancer directs new requests to zones or regions with remaining capacity.Unlike zonal MIGs, a regional MIG with EVEN distribution avoids manual multi-group management across zones. Unlike CONNECTION or IN_FLIGHT modes, RATE with max-rate-per-instance directly enforces HTTP RPS targets for fast (<1 second) requests and integrates natively with Application Load Balancer capacity-based autoscaling.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated