D2: Managed Instance Groups & Autoscaling
Google Cloud Associate Cloud Engineer exam practice questions · 13 flashcards
Question
What is an instance template?
1 / 13
Tip: Space flips the card, ← / → navigate.
Show all 13 Managed Instance Groups & Autoscaling practice questions and answers
- What is an instance template?A resource defining VM configuration (machine type, image, disks, metadata) used to create VMs.
- Can an instance template be edited?No; create a new template and update the MIG.
- What is a managed instance group (MIG)?A group of identical VMs from a template with autoscaling, autohealing and rolling updates.
- Zonal vs regional MIG?Regional MIG spreads VMs across zones for higher availability.
- Autoscaling signals?CPU utilization, load balancer serving capacity, Cloud Monitoring metrics and schedules.
- What is the initialization period?Time the autoscaler waits for a new VM to start before using its metrics.
- What is autohealing?Recreating VMs that fail an application health check.
- How do you create a MIG?gcloud compute instance-groups managed create NAME --template=TEMPLATE --size=N --zone/--region.
- How do you enable autoscaling?gcloud compute instance-groups managed set-autoscaling NAME --max-num-replicas=N --target-cpu-utilization=0.6.
- What are maxSurge and maxUnavailable?Rolling update controls for extra and unavailable instances during updates.
- Proactive vs opportunistic updates?Proactive: apply immediately. Opportunistic: apply only when VMs are recreated.
- What is a canary update?Updating a subset of instances to a new template first.
- Unmanaged vs managed instance groups?Unmanaged: heterogeneous VMs, no autoscaling/autohealing.