Your organization already uses a custom VPC named "corp-vpc" that spans several regions. You have been asked to add a new subnet called "europe-backend" in the europe-west3 region with the primary IP range 10.80.0.0/16. You are working in Cloud Shell and must create the subnet with a single gcloud command, without changing any existing subnets. Which command satisfies the requirement?
The gcloud compute networks subnets create command is the supported way to add a subnet to a custom VPC. It requires the subnet name, the VPC network, the primary IP range, and the region:
The correct choice follows this syntax exactly by supplying the subnet name (europe-backend), the target VPC (corp-vpc) with --network, the primary range 10.80.0.0/16 using --range, and the region europe-west3 using --region.
Each incorrect choice fails for at least one of the following reasons:
Uses a non-existent gcloud subcommand.
Refers to the wrong resource collection.
Employs invalid flag names such as --vpc, --cidr, or --ip-range.
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.
Why are subnets used within a VPC?
Open an interactive chat with Bash
What is the significance of CIDR notation in defining the IP range?
Open an interactive chat with Bash
How does the gcloud compute networks subnets create command work?
Open an interactive chat with Bash
How does a subnet differ from a VPC?
Open an interactive chat with Bash
What is the CIDR format used in IP ranges?
Open an interactive chat with Bash
What is the purpose of the gcloud command `gcloud compute networks subnets create`?
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 .