Complete the code to specify an E2 machine type in a GCP VM instance configuration.
machine_type = "zones/us-central1-a/machineTypes/[1]"
The E2 machine family offers cost-effective general purpose VMs. Here, e2-medium is a valid E2 machine type.
Complete the code to select a high-performance N2 machine type for a VM instance.
machine_type = "zones/us-west1-b/machineTypes/[1]"
The N2 family provides balanced performance and is suitable for many workloads. n2-standard-8 is a valid N2 machine type with 8 vCPUs.
Fix the error in the machine type string to correctly specify a C2 machine type.
machine_type = "zones/europe-west1-c/machineTypes/[1]"
The C2 family is optimized for compute-intensive workloads. The correct machine type string for C2 is c2-standard-4.
Fill both blanks to create a VM instance configuration with an N2 machine type and a zone in us-east1.
instance_config = {
"zone": "[1]",
"machine_type": "zones/[2]/machineTypes/n2-standard-4"
}The zone must be consistent in both the zone field and the machine type path. Here, us-east1-b is used for both.
Fill all three blanks to define a VM instance with a C2 machine type, in europe-west1-b zone, and with a custom machine type suffix.
instance = {
"zone": "[1]",
"machine_type": "zones/[2]/machineTypes/c2-[3]"
}The zone is europe-west1-b for both fields, and the machine type suffix standard-4 completes the C2 machine type.