0
0
GCPcloud~10 mins

Boot disk images 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 specify the boot disk image for a new VM instance.

GCP
gcloud compute instances create my-instance --image [1]
Drag options to blanks, or click blank then click option'
Adebian-11-bullseye-v20230606
Bmy-custom-image
Cwindows-server-2019-dc-v20230606
Dubuntu-2004-focal-v20230606
Attempts:
3 left
💡 Hint
Common Mistakes
Using a custom image name without creating it first
Using an OS name without the version or date suffix
2fill in blank
medium

Complete the code to create a boot disk from a custom image in a specific project.

GCP
gcloud compute disks create my-boot-disk --image [1] --image-project my-project
Drag options to blanks, or click blank then click option'
Adebian-11-bullseye-v20230606
Bwindows-server-2019-dc-v20230606
Ccustom-image-123
Dubuntu-2004-focal-v20230606
Attempts:
3 left
💡 Hint
Common Mistakes
Using a public image name when a custom image is required
Omitting the --image-project flag when using a custom image from another project
3fill in blank
hard

Fix the error in the command to create a VM with a boot disk image.

GCP
gcloud compute instances create vm-1 --boot-disk-image [1]
Drag options to blanks, or click blank then click option'
Adebian-11-bullseye-v20230606
B--image=debian-11-bullseye-v20230606
Cdebian-11-bullseye
Dimage=debian-11-bullseye-v20230606
Attempts:
3 left
💡 Hint
Common Mistakes
Including the flag name inside the blank
Using incomplete image names
4fill in blank
hard

Fill both blanks to create a VM instance with a boot disk from a specific image and project.

GCP
gcloud compute instances create vm-2 --image [1] --image-project [2]
Drag options to blanks, or click blank then click option'
Acustom-image-456
Bdebian-cloud
Cmy-project-123
Dubuntu-cloud
Attempts:
3 left
💡 Hint
Common Mistakes
Using public image project names with custom images
Swapping image name and project ID
5fill in blank
hard

Fill all three blanks to create a boot disk and specify the disk type.

GCP
gcloud compute disks create [1] --image [2] --type [3]
Drag options to blanks, or click blank then click option'
Aboot-disk-1
Bdebian-11-bullseye-v20230606
Cpd-ssd
Dpd-standard
Attempts:
3 left
💡 Hint
Common Mistakes
Using disk type names incorrectly
Mixing disk name with image name