Complete the code to specify the machine type for the VM instance.
gcloud compute instances create my-vm --machine-type=[1] --zone=us-central1-aThe machine type n1-standard-1 is a valid GCP machine type for VM instances. Other options are invalid names.
Complete the code to specify the image family for the VM instance.
gcloud compute instances create my-vm --image-family=[1] --image-project=debian-cloud --zone=us-central1-aThe debian-11 image family is a valid Debian image family in GCP. The others are either incorrect or duplicates.
Fix the error in the command to create a VM instance with a startup script.
gcloud compute instances create my-vm --metadata startup-script=[1] --zone=us-central1-aThe startup script must be passed as a string with the script content, properly quoted. Option A shows a valid inline script.
Fill both blanks to create a VM instance with a specific network and subnetwork.
gcloud compute instances create my-vm --network=[1] --subnet=[2] --zone=us-central1-a
To specify a custom network and subnet, use their exact names. Here, 'custom-network' and 'custom-subnet' are valid placeholders.
Fill all three blanks to create a VM instance with a specific machine type, image family, and zone.
gcloud compute instances create my-vm --machine-type=[1] --image-family=[2] --zone=[3]
The machine type 'n1-standard-2', image family 'debian-11', and zone 'us-west1-b' are valid and commonly used values.