Skip to main content

Associate Cloud Engineer practice question · Ensuring the successful operation of a cloud solution

A team needs a point-in-time snapshot of an existing Compute Engine persistent disk.

A team needs a point-in-time snapshot of an existing Compute Engine persistent disk. They will keep it as a backup and may later create new disks from it. Which gcloud command should they run?

  • Agcloud compute disks snapshot DISK_NAME --zone=ZONE
  • Bgcloud compute images create IMAGE_NAME --source-disk=DISK_NAME
  • Cgcloud compute disks create NEW_DISK --source-disk=DISK_NAME
  • Dgcloud compute machine-images create NAME --source-instance=VM
Show the answer and explanation

Correct answer: A) gcloud compute disks snapshot DISK_NAME --zone=ZONE

gcloud compute disks snapshot (or gcloud compute snapshots create --source-disk) creates a point-in-time snapshot of a persistent disk. Images, disk clones and machine images are different resources.

Why each option is right or wrong

  • A) Correct. This command creates a snapshot of the named persistent disk. The snapshot can be kept for backup and used later to create new disks. (gcloud compute snapshots create --source-disk does the same thing.)
  • B) Incorrect. This creates a custom image, which is used for creating boot disks for VMs. It is not a disk snapshot.
  • C) Incorrect. This clones the disk into a new disk. It doesn't create a snapshot resource to keep as a backup.
  • D) Incorrect. A machine image captures a whole VM instance, including its configuration and all attached disks. It is not a snapshot of a single persistent disk.
Exam domain
Ensuring the successful operation of a cloud solution · ~30% of Associate Cloud Engineer
Question type
Multiple choice (one answer)

Practise the full Associate Cloud Engineer exam

This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.