GCP ACE · Question 28 · Domain 3.5: Deploying and implementing networking resources
You are setting up a custom-mode Virtual Private Cloud (VPC) network. You need to create a subnet in the 'us-west1' region with the CIDR block '10.0.1.0/24'.
Which TWO gcloud commands must you run to achieve this? (Select TWO)
You are setting up a custom-mode Virtual Private Cloud (VPC) network. You need to create a subnet in the 'us-west1' region with the CIDR block '10.0.1.0/24'.
Which TWO gcloud commands must you run to achieve this? (Select TWO)
Answer options:
gcloud compute networks create my-vpc --subnet-mode=custom
gcloud compute networks create my-vpc --subnet-mode=auto
gcloud compute networks subnets create my-subnet --network=my-vpc --region=us-west1 --range=10.0.1.0/24
gcloud compute subnets create my-subnet --vpc=my-vpc --zone=us-west1-a --cidr=10.0.1.0/24
gcloud compute networks add-subnet my-subnet --region=us-west1 --range=10.0.1.0/24
How to approach this question
Full Answer
Common mistakes
Practice the full GCP Associate Cloud Engineer Practice Exam 2
50 questions · hints · full answers · grading
Expert