Google Cloud

Compute Engine and Managed Instance Groups

Operate Compute Engine through VM configuration, images, instance templates, managed instance groups, autoscaling, autohealing, and health evidence.

Intermediate14 min read
Google Cloud lessonCloud foundationsLearn

Operate Compute Engine through VM configuration, images, instance templates, managed instance groups, autoscaling, autohealing, and health evidence.

What you will be able to do

  • Explain the five core cloud decisions involved in compute engine and managed instance groups.
  • Choose a cloud resource or configuration that matches a stated workload requirement.
  • Interpret provider state, workload behavior, and operational evidence before changing broader cloud state.
  • Apply an inventory, select, configure, verify, recover, and document workflow to a realistic cloud decision.

01

Build the Cloud Decision Map

Operate Compute Engine through VM configuration, images, instance templates, managed instance groups, autoscaling, autohealing, and health evidence.

Cloud services combine provider-managed layers with customer-controlled configuration. A useful design keeps workload need, resource scope, identity, network path, data, health, cost, and recovery visible instead of relying on a product name.

Start with an inventory and read-only evidence. Record the account or project, location, resource identifier, owner, configuration source, dependencies, expected behavior, and current observation before changing state.

02

Compute Engine VM

A Compute Engine VM combines machine type, image, disks, network interfaces, identity, metadata, and location settings. It answers one distinct architecture or operating question within compute engine and managed instance groups.

Choose capacity and location from measured workload and availability needs. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Do not use VM running state as the only application health signal. The expected evidence is the vm and application both report expected health.

03

Instance template

An instance template records reusable VM settings for managed instance groups and repeatable creation. It answers one distinct architecture or operating question within compute engine and managed instance groups.

Version templates and connect each rollout with its image and configuration source. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Do not edit around an unmanaged drift instead of creating a reviewed template version. The expected evidence is managed instances converge on the approved template.

04

Managed instance group

A managed instance group operates similar VMs as one group and can support updates, autoscaling, autohealing, and regional placement. It answers one distinct architecture or operating question within compute engine and managed instance groups.

Use a MIG when instances can be created and replaced from a common model. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Do not store unique unmanaged state on replaceable group members. The expected evidence is group members serve consistently from the intended template.

05

Group scaling

A MIG can adjust instance count from configured signals and capacity boundaries. It answers one distinct architecture or operating question within compute engine and managed instance groups.

Test scale-out readiness, downstream capacity, and safe scale-in behavior. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Do not scale from a signal caused by a saturated shared dependency. The expected evidence is capacity changes and stabilizes without losing required state.

06

Autohealing check

MIG autohealing can recreate instances that fail the configured application health check. It answers one distinct architecture or operating question within compute engine and managed instance groups.

Use a health check that represents application readiness and allows realistic startup time. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Stop when recreation would destroy unprotected local data. The expected evidence is a failed member is replaced and the application returns healthy.

07

Verify One Cloud Change

Before changing cloud state, name the exact resource, required authorization, user impact, expected signal, cost effect, and recovery path. Preview the scope with an inventory or policy view and protect data or configuration that cannot be recreated safely.

Make one narrow change and stop. If the provider response, location, identity, dependency, or effective configuration differs from the plan, preserve that evidence and reassess instead of adding unrelated changes.

A successful API response or portal notification proves only that an operation was accepted. Repeat the original workload path, inspect health and security signals, verify the resulting resource state independently, and remove temporary access or test resources.

08

Recap Before Practice and Prove

Start with compute engine vm. Choose capacity and location from measured workload and availability needs. Confirm that the vm and application both report expected health.

Keep instance template separate. Version templates and connect each rollout with its image and configuration source. Respect this boundary: do not edit around an unmanaged drift instead of creating a reviewed template version.

Use managed instance group as its own decision. Use a MIG when instances can be created and replaced from a common model. Preserve the resulting evidence.

Before a broader change, review group scaling. Test scale-out readiness, downstream capacity, and safe scale-in behavior. Stop when do not scale from a signal caused by a saturated shared dependency.

Finish with autohealing check. Use a health check that represents application readiness and allows realistic startup time. Record the final state, health signal, recovery boundary, owner, and next decision.

NEXT STEP

Turn reading into recall

Practice the concepts without a timer, with coaching and retry available after every answer.

Open guided practice