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?
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.
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.
Managed instance groups are a way to manage a group of Compute Engine instances as a single entity. If you want to automate the creation of a managed instance group, you can use tools such as Terraform, Deployment Manager, or Puppet to automate the process.
To minimize the startup time for new VMs in the instance group, you should create a custom VM image with all of the OS package dependencies pre-installed. This will allow you to create new VMs from the custom image, which will significantly reduce the startup time compared to installing the dependencies on each VM individually. You can then use Deployment Manager to create the managed instance group with the custom VM image.
Option A, using Terraform to create the managed instance group and a startup script to install the OS package dependencies, would not minimize the startup time for new VMs in the instance group.
Option C, using Puppet to create the managed instance group and install the OS package dependencies, would not minimize the startup time for new VMs in the instance group.
Option D, using Deployment Manager to create the managed instance group and Ansible to install the OS package dependencies, would not minimize the startup time for new VMs in the instance group.
As someone who works on Terraform. It may not be Googles best practice, even though it's built in just need to be initialized. But it is the easiest way to build and restructure infrastructure with a simple line of code change and a quick shell command to apply terraform. I mean B would work. But it doesn't include the start-up script for the OS dependencies to be loaded. ?>?>? Any feedback?
Start up scripts aren't need here as you're making a custom OS image with all OS package dependencies. Question is not asking for the easiest way, it's asking how to minimize VM startup times. Not having to run the startup scripts because it's baked into the image is how I understand and interpret this, therefore B.
B – create a custom VM instance image with all OS dependencies. Use Deployment Manager to create a MIG with the VM image.
Read more about Public and Custom VM Images: https://cloud.google.com/compute/docs/images
Custom images are available in your project only, they don’t add cost to your VM instances, incur image storage cost (0.085$ GB/month)
D – could be also an alternative (if to consider requirement to install dependencies in start up script). But, last sentence stresses on “minimize VM’s start up time”. So, B is fastest solution. Also, what is a point to use Ansible if you can complete same task via startup script of Deployment Manager. Ansible won’t make this faster, but just will add 3rd party dependency.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
crypt0
Highly Voted 4 years agokumarp6
3 years agoJos
3 years, 9 months agotartar
3 years, 2 months agonitinz
2 years, 8 months agoJoeShmoe
Highly Voted 3 years, 11 months agoomermahgoub
Most Recent 10 months, 2 weeks agoomermahgoub
10 months, 2 weeks agomegumin
11 months, 4 weeks agoAzureDP900
1 year agominmin2020
1 year agoDrishaS4
1 year, 3 months agoBigSteveO
1 year, 3 months agoRic350
1 year, 3 months agomv2000
1 year, 4 months agorogerlovato
1 year, 9 months agoharoldbenites
1 year, 11 months agoGodlike
1 year, 11 months agovincy2202
1 year, 11 months agoexam_war
1 year, 12 months agoMaxNRG
2 years agovictory108
2 years, 5 months agoun
2 years, 5 months ago