
Google Professional Cloud Architect
Get started today
Ultimate access to all questions.
You are tasked with setting up a managed instance group on Google Cloud Platform. The virtual machines (VMs) that will be part of this group have numerous operating system (OS) package dependencies that need to be installed. To ensure efficient scaling and faster availability of resources, you want to minimize the startup time for new VMs added to this instance group. What approach should you take to achieve this goal?
You are tasked with setting up a managed instance group on Google Cloud Platform. The virtual machines (VMs) that will be part of this group have numerous operating system (OS) package dependencies that need to be installed. To ensure efficient scaling and faster availability of resources, you want to minimize the startup time for new VMs added to this instance group. What approach should you take to achieve this goal?
Explanation:
The correct answer is B: Create a custom VM image with all OS package dependencies. Use Deployment Manager to create the managed instance group with the VM image. By pre-installing all OS package dependencies into a custom VM image, you ensure that new VMs can be started with minimal delay, as they won't need to spend time installing these packages during their initialization. This approach significantly reduces the startup time compared to using scripts or configuration management tools like Terraform, Puppet, or Ansible, which install dependencies after the VMs have been created.