Challenge - 5 Problems
Compute Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate2:00remaining
What is the result of this command?
You run the command to list all VM instances in a project:
What will this command output?
gcloud compute instances list --filter="zone:(us-central1-a)"What will this command output?
Attempts:
2 left
💡 Hint
Think about how the filter limits the output to a specific zone.
✗ Incorrect
The filter "zone:(us-central1-a)" restricts the list to instances only in that zone. So the output shows all instances in us-central1-a with their details.
❓ Configuration
intermediate2:00remaining
Which command creates a new persistent disk of 100GB in zone us-east1-b?
You want to create a new persistent disk named 'my-disk' with size 100GB in the zone us-east1-b. Which command will do this correctly?
Attempts:
2 left
💡 Hint
Check the correct order and syntax for the create disk command.
✗ Incorrect
The correct syntax is 'gcloud compute disks create DISK_NAME --size=SIZE --zone=ZONE'. Option A matches this exactly.
❓ Architecture
advanced2:00remaining
What happens if you delete a VM instance with an attached persistent disk without specifying disk deletion?
You delete a VM instance using:
The instance has a persistent disk attached. What happens to the disk?
gcloud compute instances delete my-instance --zone=us-west1-cThe instance has a persistent disk attached. What happens to the disk?
Attempts:
2 left
💡 Hint
Think about default behavior of disks when deleting instances.
✗ Incorrect
By default, deleting an instance does not delete the attached persistent disks. They remain available for reuse.
❓ security
advanced2:00remaining
Which command correctly attaches an existing persistent disk to a running VM instance?
You have a persistent disk named 'data-disk' and a running VM instance 'web-server' in zone us-central1-b. Which command attaches the disk correctly?
Attempts:
2 left
💡 Hint
Check the correct command group and flags for attaching disks.
✗ Incorrect
The correct command is 'gcloud compute instances attach-disk INSTANCE_NAME --disk=DISK_NAME --zone=ZONE'. Option D matches this syntax.
✅ Best Practice
expert2:00remaining
What is the best practice to ensure data persistence when deleting VM instances frequently?
You have a workload where VM instances are created and deleted often. You want to keep the data safe and persistent. Which approach is best?
Attempts:
2 left
💡 Hint
Think about which storage survives instance deletion.
✗ Incorrect
Persistent disks remain after instance deletion if detached properly, ensuring data persistence. Local SSDs and ephemeral disks do not persist data after instance deletion.