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.)
- gcloud compute networks describe prod-vpcAnswer
- gcloud compute networks listAnswer
- Cgcloud compute networks update prod-vpc
- Dgsutil 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
Key Concept
Viewing and listing VPC network resources using gcloud CLI