GCP ACE · Question 29 · Domain 3.5: Deploying and implementing networking resources
You are setting up a custom network topology. You need to create a new VPC network that does not automatically create subnets, and then you need to manually add a subnet to it in the us-west1 region.
Which sequence of gcloud commands should you use?
Answer options:
gcloud compute networks create my-vpc --subnet-mode=custom, followed by gcloud compute networks subnets create my-subnet --network=my-vpc --region=us-west1 --range=10.0.0.0/24
gcloud compute networks create my-vpc --subnet-mode=auto, followed by gcloud compute networks subnets create my-subnet --network=my-vpc --region=us-west1
gcloud compute networks create my-vpc --subnet-mode=custom. No second command is needed as custom mode creates subnets automatically.
gcloud compute networks subnets create my-subnet --network=default --region=us-west1
50 questions · hints · full answers · grading