Your company's custom-mode VPC named corp-vpc currently has only subnets in us-central1. You must provision a new subnet called europe-web with primary CIDR 10.10.0.0/20 in the europe-west1 region so that new VMs can be launched there. Which gcloud command meets the requirement without modifying existing subnets?
To add a brand-new subnet to an existing VPC you use the gcloud compute networks subnets create command, supplying the subnet name, the parent VPC, the primary IP range, and the target region. This creates the subnet independently of any existing ones. The other commands are for different tasks: gcloud compute networks create would create an entirely new VPC, subnets expand-ip-range enlarges the primary range of an existing subnet, and subnets add-ip-ranges is used to add secondary ranges, not to create a subnet.
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 VPC in GCP?
Open an interactive chat with Bash
Why would you use a custom-mode VPC instead of auto-mode?
Open an interactive chat with Bash
What does the CIDR 10.10.0.0/20 mean?
Open an interactive chat with Bash
Why does a subnet need a primary CIDR range, and what does it define?
Open an interactive chat with Bash
What does the `gcloud compute networks subnets create` command do?
Open an interactive chat with Bash
What is the difference between a primary and secondary range in a subnet?
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 .