0
0
GCPcloud~10 mins

Creating a VM instance in GCP - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the machine type for the VM instance.

GCP
gcloud compute instances create my-vm --machine-type=[1] --zone=us-central1-a
Drag options to blanks, or click blank then click option'
Afast-machine
Bsmall-vm
Clarge-instance
Dn1-standard-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid machine type names like 'fast-machine'.
2fill in blank
medium

Complete the code to specify the image family for the VM instance.

GCP
gcloud compute instances create my-vm --image-family=[1] --image-project=debian-cloud --zone=us-central1-a
Drag options to blanks, or click blank then click option'
Aubuntu-1804-lts
Bdebian-10
Cdebian-11
Attempts:
3 left
💡 Hint
Common Mistakes
Using image names instead of image families.
3fill in blank
hard

Fix the error in the command to create a VM instance with a startup script.

GCP
gcloud compute instances create my-vm --metadata startup-script=[1] --zone=us-central1-a
Drag options to blanks, or click blank then click option'
A"#!/bin/bash echo Hello"
Bstartup-script.sh
Cstartup_script.sh
Dstartup.sh
Attempts:
3 left
💡 Hint
Common Mistakes
Passing a filename instead of script content.
4fill in blank
hard

Fill both blanks to create a VM instance with a specific network and subnetwork.

GCP
gcloud compute instances create my-vm --network=[1] --subnet=[2] --zone=us-central1-a
Drag options to blanks, or click blank then click option'
Adefault
Bcustom-network
Cdefault-subnet
Dcustom-subnet
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing default and custom names incorrectly.
5fill in blank
hard

Fill all three blanks to create a VM instance with a specific machine type, image family, and zone.

GCP
gcloud compute instances create my-vm --machine-type=[1] --image-family=[2] --zone=[3]
Drag options to blanks, or click blank then click option'
Ae2-medium
Bdebian-11
Cus-west1-b
Dn1-standard-2
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid or mismatched values.