Bitzu

Associate Cloud Engineer ยท Compute Engine: choosing, launching and scaling

Instance templates and managed instance groups

Instance templates (immutable), zonal vs regional MIGs, autoscaling policies (CPU, load balancing, schedule), autohealing health checks, rolling updates.

Key points

  • Instance template: immutable blueprint for VMs; to change settings, create a new template.
  • Managed instance group (MIG): identical VMs from a template, zonal (one zone) or regional (across zones, better for resilience).
  • Autoscaling: adds or removes VMs based on CPU, load balancer capacity or a schedule.
  • Autohealing: recreates VMs that fail a health check.
  • Rolling updates: move the group to a new template gradually.

Practice questions

Single choice

Which statement describes an instance template?

  1. An immutable definition used to create VMs
  2. A running group of VMs that can be edited live
  3. A snapshot schedule for boot disks
  4. A load balancer rule that routes to VMs
Show answer

Answer: A. An immutable definition used to create VMs

Templates are immutable, so a change means creating a new template and updating the group. They are not editable in place and they do not hold running VMs.

Select all that apply

Which signals can drive MIG autoscaling?

  1. Average CPU utilization
  2. Load balancer serving capacity
  3. A time-based schedule
  4. Number of disks attached
  5. The project billing budget
Show answer

Answer: A. Average CPU utilization, B. Load balancer serving capacity, C. A time-based schedule

CPU utilization, load balancing serving capacity and schedules are autoscaling inputs. Disk count and billing budget are not.

True or false

True or false: autoscaling and autohealing are the same feature.

Show answer

Answer: False

False. Autoscaling changes the number of VMs to match load. Autohealing recreates a VM that fails its health check.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module