Your organization requires a new Virtual Private Cloud (VPC) network where network administrators manually define subnets and IP ranges per region rather than having subnets created automatically. Which gcloud CLI command flag must you specify when executing `gcloud compute networks create` to achieve this outcome?
- --subnet-mode=customAnswer
- B--subnet-mode=auto
- C--no-auto-subnets
- D--disable-default-subnets
Answer
The correct command flag is `--subnet-mode=custom`.
When deploying a Google Cloud Virtual Private Cloud network via the gcloud CLI, setting `--subnet-mode=custom` creates a custom mode VPC network. Custom mode VPCs do not automatically create subnets, giving administrators complete manual control over subnet names, regions, and IP address ranges.
Step-by-Step Solution
Key Concept
VPC Network Subnet Modes (Auto Mode vs. Custom Mode)