Your custom-mode VPC has a subnet named finance-subnet in region us-central1 with the primary range 10.10.4.0/24. VM creation is now failing because the subnet is running out of available IP addresses. You must enlarge the existing primary range to 10.10.4.0/21 without interrupting running workloads. Which gcloud command meets the requirement?
The gcloud compute networks subnets expand-ip-range command increases the size of an existing subnet's primary CIDR block without disruption. Supplying the subnet name, the region, and the new non-overlapping CIDR (or a larger prefix length) expands the address space while preserving all existing IP assignments. Adding a secondary range or creating a new subnet would not enlarge the primary range, and there is no resize subnets command.
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 CIDR block?
Open an interactive chat with Bash
How does the gcloud compute networks subnets expand-ip-range command work?
Open an interactive chat with Bash
When should you use secondary IP ranges in a subnet?
Open an interactive chat with Bash
What is a CIDR block in networking?
Open an interactive chat with Bash
Why is using primary versus secondary CIDR ranges important?
Open an interactive chat with Bash
What happens to active workloads when a primary CIDR range is expanded?
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 .