Your custom VPC has a regional subnet named prod-subnet with primary range 10.10.0.0/24 in us-central1. The subnet is almost out of addresses, and you must enlarge its primary range to a /20 without stopping any running workloads or creating a new subnet. Which single gcloud command, using only supported flags, accomplishes this expansion?
The expand-ip-range command is the only gcloud command that can grow the primary CIDR of an existing subnetwork. Supplying --prefix-length=20 tells Google Cloud to enlarge the subnet to a /20, and the change is applied in place without disrupting resources that already use the subnet. The update command cannot modify a subnet's primary range, creating a new subnet would require migrating resources, and reserving a regional address block has no effect on the subnet's allocation.
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 does prefix-length mean in the context of subnets?
Open an interactive chat with Bash
What distinguishes the expand-ip-range command from other commands like update or create in gcloud?
Open an interactive chat with Bash
Why can't the range be updated using gcloud compute networks subnets update?
Open an interactive chat with Bash
What is a CIDR block in networking?
Open an interactive chat with Bash
Why use the expand-ip-range command instead of update or create?
Open an interactive chat with Bash
What is the difference between regional and global subnets in GCP?
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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .