
Answer-first summary for fast verification
Answer: Create a custom VM image with all OS package dependencies. Use Deployment Manager to create the managed instance group with the VM image.
The question emphasizes minimizing VM startup time while automating the creation of a managed instance group with many OS package dependencies. Option B is optimal because creating a custom VM image with all dependencies pre-installed eliminates the need for runtime package installation, significantly reducing startup time. Deployment Manager then automates the MIG creation using this image. In contrast, options A, C, and D rely on post-boot scripts or configuration management tools (e.g., startup scripts, Puppet, Ansible) to install dependencies, which delays VM readiness and increases startup time. The community discussion strongly supports B, with high upvotes and consensus that pre-baking dependencies into a custom image is the fastest approach, aligning with Google Cloud best practices for performance-critical deployments.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You need to automate the creation of a managed instance group where the VMs have numerous OS package dependencies. Your goal is to minimize the startup time for new VMs in the group. What is the recommended approach?
A
Use Terraform to create the managed instance group and a startup script to install the OS package dependencies.
B
Create a custom VM image with all OS package dependencies. Use Deployment Manager to create the managed instance group with the VM image.
C
Use Puppet to create the managed instance group and install the OS package dependencies.
D
Use Deployment Manager to create the managed instance group and Ansible to install the OS package dependencies.
No comments yet.