Your team regularly spins up new Compute Engine VMs for short-lived batch jobs. To standardize their configuration, you need a reusable custom image created directly from an existing snapshot named prod-app-snap. The image must belong to the image family appserver and store its data in the europe-west1 image storage location. Which single gcloud command meets these requirements?
The gcloud compute images create command is used to build custom images. When the source is a snapshot you must supply the --source-snapshot flag, not --source-disk. The --family flag assigns the image to an image family, and --storage-location defines the geographic location where the image file is kept. Therefore the command that uses gcloud compute images create with --source-snapshot prod-app-snap, --family appserver, and --storage-location europe-west1 is correct. The other options either use the wrong gcloud resource (snapshots instead of images), specify an invalid flag such as --region or --source-disk, or omit the required --storage-location flag.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a snapshot in GCP Compute Engine?
Open an interactive chat with Bash
What is the purpose of an image family in GCP?
Open an interactive chat with Bash
What is the benefit of specifying a storage location in the gcloud command?
Open an interactive chat with Bash
What is an image family in GCP?
Open an interactive chat with Bash
What is the difference between a snapshot and an image in GCP?
Open an interactive chat with Bash
Why is the --storage-location flag important when creating images?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .