Soru

Zorluk: KolayManaging Networking Resources

An administrator needs to list all existing Virtual Private Cloud (VPC) subnets across all regions in a Google Cloud project using the command-line interface. Which of the following commands or actions will accomplish this requirement? (Select TWO)

  1. Run gcloud compute networks subnets listCevap
  2. In the Google Cloud Console, navigate to VPC network > SubnetsCevap
  3. C
    Run gcloud compute networks list --show-subnets
  4. D
    Run gcloud compute subnets list

Cevap

Executing 'gcloud compute networks subnets list' via the CLI and viewing the Subnets page under VPC network in the Google Cloud Console are both valid methods to list all VPC subnets in a project.
Listing VPC subnets can be performed via the gcloud CLI using 'gcloud compute networks subnets list' or graphically in the GCP Console by navigating to VPC network > Subnets.

Adım Adım Çözüm

1
Identify the standard CLI syntax for managing subnets in GCP Compute Engine.
The correct command structure under gcloud CLI is 'gcloud compute networks subnets list'.
gcloud CLI commands for VPC subnets are grouped under the 'compute networks subnets' command group.
2
Identify the standard Cloud Console navigation path for VPC subnets.
Navigating to VPC network > Subnets displays the full inventory of subnets in the current project.
The Cloud Console provides administrative views for all subnets under the VPC network service menu.

Anahtar Kavram

Managing VPC networks and listing subnets using gcloud CLI and Google Cloud Console
Bu soruyu puanla