nerdexam
Google

PROFESSIONAL-CLOUD-ARCHITECT · Question #145

You want to automate the creation of a managed instance group. The VMs have many OS package dependencies. You want to minimize the startup time for new VMs in the instance group. What should you do?

The correct answer is B. Create a custom VM image with all OS package dependencies. Use Deployment Manager to. Custom images are more deterministic and start more quickly than instances with startup scripts. However, startup scripts are more flexible and let you update the apps and settings in your instances more easily…

Submitted by the_admin· Mar 30, 2026Managing and provisioning cloud solution infrastructure

Question

You want to automate the creation of a managed instance group. The VMs have many OS package dependencies. You want to minimize the startup time for new VMs in the instance group. What should you do?

Options

  • AUse Terraform to create the managed instance group and a startup script to install the OS
  • BCreate a custom VM image with all OS package dependencies. Use Deployment Manager to
  • CUse Puppet to create the managed instance group and install the OS package dependencies.
  • DUse Deployment Manager to create the managed instance group and Ansible to install the OS

How the community answered

(42 responses)
  • A
    14% (6)
  • B
    76% (32)
  • C
    7% (3)
  • D
    2% (1)

Explanation

Custom images are more deterministic and start more quickly than instances with startup scripts. However, startup scripts are more flexible and let you update the apps and settings in your instances more easily. https://cloud.google.com/compute/docs/instance-templates/create-instance- templates#using_custom_or_public_images_in_your_instance_templates

Topics

#custom VM images#managed instance groups#startup time optimization#image baking

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice