0
0
GCPcloud~5 mins

Compute commands (instances, disks) in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Agcloud compute disks list
Bgcloud compute instances list
Cgcloud compute instances create
Dgcloud compute disks create
How do you delete a persistent disk in Google Cloud?
Agcloud compute disks resize [DISK_NAME]
Bgcloud compute instances delete [INSTANCE_NAME]
Cgcloud compute disks detach [DISK_NAME]
Dgcloud compute disks delete [DISK_NAME]
What flag is used to specify the disk when attaching it to an instance?
A--attach
B--instance
C--disk
D--name
Which command creates a new persistent disk?
Agcloud compute disks create [DISK_NAME]
Bgcloud compute instances create [INSTANCE_NAME]
Cgcloud compute disks list
Dgcloud compute disks resize [DISK_NAME]
To increase the size of a disk, which command do you use?
Agcloud compute disks resize [DISK_NAME] --size [NEW_SIZE]
Bgcloud compute disks create [DISK_NAME]
Cgcloud compute instances resize [INSTANCE_NAME]
Dgcloud compute disks delete [DISK_NAME]
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.