Soru

Zorluk: KolayDeploying Virtual Private Cloud (VPC) Networks, Subnets, and Firewall Rules

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?

  1. --subnet-mode=customCevap
  2. B
    --subnet-mode=auto
  3. C
    --no-auto-subnets
  4. D
    --disable-default-subnets

Cevap

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.

Adım Adım Çözüm

1
Identify the deployment requirement for VPC network creation.
The requirement calls for a network without automatically generated subnets, requiring manual creation of subnets.
Google Cloud VPC networks operate in either auto mode or custom mode.
2
Evaluate the flags available in the `gcloud compute networks create` CLI command.
Setting `--subnet-mode=custom` ensures that zero subnets are auto-created upon network instantiation.
Auto mode creates one subnet per region by default, whereas custom mode starts with zero subnets.

Anahtar Kavram

VPC Network Subnet Modes (Auto Mode vs. Custom Mode)
Bu soruyu puanla