0
0
GCPcloud~10 mins

Instance templates in GCP - Interactive Code Practice

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

Complete the code to create an instance template with a specified machine type.

GCP
gcloud compute instance-templates create my-template --machine-type=[1]
Drag options to blanks, or click blank then click option'
Azone
Bus-central1-a
Cmy-instance
Dn1-standard-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a zone name instead of a machine type.
Using an instance name instead of a machine type.
2fill in blank
medium

Complete the code to specify the boot disk image when creating an instance template.

GCP
gcloud compute instance-templates create my-template --image=[1]
Drag options to blanks, or click blank then click option'
Adebian-11
Bn1-standard-1
Cus-central1-a
Dmy-instance
Attempts:
3 left
💡 Hint
Common Mistakes
Using a machine type instead of an image name.
Using a zone name instead of an image.
3fill in blank
hard

Fix the error in the command to create an instance template with a network tag.

GCP
gcloud compute instance-templates create my-template --tags=[1]
Drag options to blanks, or click blank then click option'
Aweb-server
Bn1-standard-1
Cus-central1-a
Dmy-instance
Attempts:
3 left
💡 Hint
Common Mistakes
Using a zone or machine type as a tag.
Using an instance name instead of a tag.
4fill in blank
hard

Fill both blanks to create an instance template with a specific machine type and network tag.

GCP
gcloud compute instance-templates create my-template --machine-type=[1] --tags=[2]
Drag options to blanks, or click blank then click option'
An1-standard-2
Bweb-server
Cus-central1-a
Dmy-instance
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping machine type and tag values.
Using zone names instead of machine types or tags.
5fill in blank
hard

Fill all three blanks to create an instance template with a machine type, boot image, and network tag.

GCP
gcloud compute instance-templates create my-template --machine-type=[1] --image=[2] --tags=[3]
Drag options to blanks, or click blank then click option'
Ae2-medium
Bubuntu-2004-lts
Cbackend
Dus-central1-a
Attempts:
3 left
💡 Hint
Common Mistakes
Using zone names instead of machine types or images.
Mixing up the order of flags.