Medium1 markMultiple Choice

GCP ACE · Question 29 · Domain 3.5: Deploying and implementing networking resources

You are creating a new Virtual Private Cloud (VPC) network for your organization. You want complete control over the IP address ranges used in every region, and you do not want GCP to automatically create any subnets for you.

Which gcloud command should you use to create the VPC?

Answer options:

A.

gcloud compute networks create my-vpc --subnet-mode=auto

B.

gcloud compute networks create my-vpc --subnet-mode=custom

C.

gcloud compute vpc create my-vpc --type=manual

D.

gcloud compute networks create my-vpc --no-subnets

How to approach this question

Identify the VPC creation mode that provides manual control over subnets.

Full Answer

B.gcloud compute networks create my-vpc --subnet-mode=custom✓ Correct
When creating a VPC network, you can choose between 'auto' mode (which creates a subnet in every GCP region automatically) and 'custom' mode. Custom mode creates an empty network, giving you full control to create subnets only in the regions you need, with the specific IP CIDR ranges you define.

Common mistakes

Using auto mode, which can lead to overlapping IP ranges if you connect to on-premises networks later.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam