You need a dynamic way of provisioning VMs on Compute Engine.
The exact specifications will be in a dedicated configuration file.
You want to follow Google's recommended practices.
Which method should you use?
Click on the arrows to vote for the correct answer
A. B. C. D.C.
https://cloud.google.com/compute/docs/instances/To dynamically provision VMs on Compute Engine based on a dedicated configuration file, Google recommends using Deployment Manager.
Deployment Manager is a Google Cloud Platform (GCP) service that allows you to define and manage cloud resources using templates. These templates are written in YAML or Python and can be version controlled like any other code. Deployment Manager automates the process of creating and managing resources so that you can focus on your application rather than the underlying infrastructure.
With Deployment Manager, you can create and manage resources such as virtual machines, networks, disks, and firewall rules. You can use pre-built templates or create your own custom templates. The templates define the desired state of the resources, including their configuration, properties, and dependencies.
Deployment Manager uses a declarative model, meaning you describe what you want to create, and it handles the details of how to create it. This approach is more flexible and easier to manage than using imperative scripts.
Using Deployment Manager, you can create templates that define the exact specifications of your VMs based on a dedicated configuration file. You can also parameterize your templates to allow for different configurations and easily make changes to your resources.
In contrast, Cloud Composer is a managed service for workflow orchestration. Managed Instance Groups (MIGs) and Unmanaged Instance Groups are both options for managing groups of Compute Engine instances, but they do not provide the level of automation and flexibility offered by Deployment Manager.
Therefore, for the specific use case of dynamically provisioning VMs on Compute Engine based on a dedicated configuration file and following Google's recommended practices, the best option is Deployment Manager.