Complete the code to specify the machine type for a VM instance.
machine_type = "zones/us-central1-a/machineTypes/[1]"
The correct machine type format includes the prefix 'n1-standard-1' to specify the VM size.
Complete the code to create a custom VM with specific CPU and memory.
custom_machine = f"custom-[1]" # CPUs and memory in MB
Custom machine types use a dash '-' to separate CPU count and memory size in MB.
Fix the error in the code to set the number of CPUs for a custom VM.
custom_cpu = int([1]) # Number of CPUs as integer
The number of CPUs must be converted from a string to an integer using int("4").
Fill both blanks to create a VM instance with a custom machine type and zone.
instance_config = {
"machineType": "zones/[1]/machineTypes/custom-4-8192",
"zone": "[2]"
}The machine type and zone must match; here both use 'us-central1-a' for consistency.
Fill all three blanks to define a VM instance with custom CPU, memory, and zone.
vm_instance = {
"machineType": "zones/[1]/machineTypes/custom-[2]-[3]",
"name": "custom-vm-1"
}The zone is 'us-east1-b', CPU count is 6, and memory is 12288 MB for this custom VM.