Question

Difficulty: EasyManaging Networking Resources

A Cloud Engineer needs to inspect the Virtual Private Cloud (VPC) network configurations in a Google Cloud project using the command-line tool. Which of the following commands can be used to view or list VPC network information? (Select TWO.)

  1. gcloud compute networks describe prod-vpcAnswer
  2. gcloud compute networks listAnswer
  3. C
    gcloud compute networks update prod-vpc
  4. D
    gsutil networks describe prod-vpc

Answer

The commands 'gcloud compute networks describe prod-vpc' and 'gcloud compute networks list' are used to view VPC network details and list project networks.
To inspect VPC networks using the gcloud CLI, 'gcloud compute networks describe' provides detailed parameters of a specific network resource, while 'gcloud compute networks list' outputs a tabulated summary of all networks in the active GCP project.

Step-by-Step Solution

1
Identify the CLI tool required for managing Google Cloud VPC networking resources.
Networking resources in GCP are managed using the gcloud CLI under the 'gcloud compute' group.
VPC networks, subnets, firewall rules, and routes fall under Compute Engine networking services.
2
Select the correct command flags for retrieving and listing information.
'gcloud compute networks describe [NAME]' retrieves full configuration details of a specific network, and 'gcloud compute networks list' displays all project networks.
Read-only inspection tasks use 'describe' and 'list' subcommands in gcloud.

Key Concept

Viewing and listing VPC network resources using gcloud CLI
Rate this question