Recall & Review
beginner
What command creates a new Compute Engine instance in Google Cloud?
Use
gcloud compute instances create [INSTANCE_NAME] to create a new VM instance.Click to reveal answer
beginner
How do you list all disks in your Google Cloud project?
Run
gcloud compute disks list to see all disks available in your project.Click to reveal answer
beginner
Which command deletes a Compute Engine instance?
Use
gcloud compute instances delete [INSTANCE_NAME] to remove a VM instance.Click to reveal answer
intermediate
How can you attach an existing disk to a VM instance?
Use
gcloud compute instances attach-disk [INSTANCE_NAME] --disk [DISK_NAME] to attach a disk.Click to reveal answer
intermediate
What command resizes a persistent disk in Google Cloud?
Use
gcloud compute disks resize [DISK_NAME] --size [NEW_SIZE] to increase disk size.Click to reveal answer
Which command lists all VM instances in your Google Cloud project?
✗ Incorrect
Use
gcloud compute instances list to see all VM instances.How do you delete a persistent disk in Google Cloud?
✗ Incorrect
Deleting a disk uses
gcloud compute disks delete [DISK_NAME].What flag is used to specify the disk when attaching it to an instance?
✗ Incorrect
The
--disk flag specifies which disk to attach.Which command creates a new persistent disk?
✗ Incorrect
Use
gcloud compute disks create [DISK_NAME] to create a disk.To increase the size of a disk, which command do you use?
✗ Incorrect
Resizing a disk uses
gcloud compute disks resize with the new size.Explain how to create, list, and delete a Compute Engine instance using gcloud commands.
Think about the lifecycle of a VM instance.
You got /3 concepts.
Describe the steps and commands to attach an existing disk to a VM and then resize that disk.
Focus on disk management commands.
You got /2 concepts.