A VM deployment in the prod-ops project fails because the template refers to an image called webapp-base-v1. From Cloud Shell you want to list every custom image in the same project whose name starts with "webapp-" and see each image's family and deprecation status in a compact table. Which single gcloud command meets this need?
gcloud compute images list --project=prod-ops --filter="name~'webapp-*'" --format="table(name,family,deprecation.status)"
gcloud compute disks list --project=prod-ops --filter="name~'webapp-*'" --format="table(name,family,deprecation.status)"
gcloud compute snapshots list --project=prod-ops --filter="name~'webapp-*'" --format="table(name,family,deprecation.status)"
The gcloud compute images list command displays all custom and public images visible to the project. Adding the --project flag scopes the request, --filter with a regular-expression match (name~'webapp-*') narrows the results to images whose names start with webapp-, and --format="table(name,family,deprecation.status)" restricts the output columns. Snapshots list shows snapshot resources, not images; images describe requires an exact image name and produces verbose JSON per image; disks list shows persistent disks, not images.
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 the purpose of the --filter flag in gcloud commands?
Open an interactive chat with Bash
What information does the --format flag customize in the output?
Open an interactive chat with Bash
What is an image family, and why is it important in GCP?
Open an interactive chat with Bash
What is the purpose of the `--filter` flag in the gcloud command?
Open an interactive chat with Bash
What does the `--format` flag do in gcloud commands?
Open an interactive chat with Bash
What is the significance of the `deprecation.status` field in 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 .