GCP Associate Cloud Engineer Practice Question

You need to create a reusable Compute Engine custom image of your production VM instance without shutting it down. The instance is running in zone us-central1-a and has the Linux guest environment installed so it can flush the file system before imaging. Which single gcloud command meets the requirement while keeping the VM online and capturing a consistent image?

  • gcloud compute images create prod-image --source-disk vm-prod --source-disk-zone us-central1-a --guest-flush

  • gcloud compute instances stop vm-prod --zone us-central1-a && gcloud compute images create prod-image --source-disk vm-prod --source-disk-zone us-central1-a

  • gcloud compute images create prod-image --source-disk vm-prod --source-disk-zone us-central1-a

  • gcloud compute disks snapshot vm-prod --zone us-central1-a --snapshot-names vm-snap && gcloud compute images create prod-image --source-snapshot vm-snap

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot