Google Associate Cloud EngineerEnsuring successful operation of a cloud solutionHard

A developer is constantly deploying new versions of an application on Compute Engine instances. To ensure the application remains stable and performs optimally after each deployment, they need to implement automated checks that verify application health and automatically roll back to a previous version if issues are detected. Which Compute Engine feature should the developer leverage?

  1. AManaged instance groups with autohealing
  2. BCustom instance images
  3. CStartup scripts
  4. DSole-tenant nodes
Show answer & explanation

Correct answer: A. Managed instance groups with autohealing

Managed instance groups (MIGs) with autohealing automatically maintain the health of instances. By configuring health checks, the MIG can detect application failures (e.g., HTTP 5xx errors) and automatically replace unhealthy instances or roll back deployments, ensuring stability and optimal performance.

Why the other options are wrong

  • B. Custom instance images are used to create VMs with pre-installed software, but they don't provide automated health checks or rollback capabilities.
  • C. Startup scripts run once when an instance starts and are not designed for continuous health monitoring or automated rollback of application versions.
  • D. Sole-tenant nodes provide dedicated physical servers for VMs, primarily for licensing or isolation, and do not offer features for application health monitoring or automated rollbacks.

Managed Instance Groups (MIGs) with Autohealing

A Compute Engine feature that automatically maintains the health and availability of a group of instances, replacing unhealthy instances based on configured health checks.

  • Automatically maintains instance health
  • Uses health checks to detect failures
  • Enables automated rollbacks for deployments

Memory trick: MIGs heal your instances, keeping your app alive and well.

More Ensuring successful operation of a cloud solution questions