Medium1 markMultiple Choice
GCP ACE · Question 29 · Domain 3.5: Deploying and implementing networking resources
You are setting up the network foundation for a new project. You need to create a custom-mode Virtual Private Cloud (VPC) network named 'prod-vpc' using the command line.
Which gcloud command should you use?
You are setting up the network foundation for a new project. You need to create a custom-mode Virtual Private Cloud (VPC) network named 'prod-vpc' using the command line.
Which gcloud command should you use?
Answer options:
A.
gcloud compute networks create prod-vpc --subnet-mode=auto
B.
gcloud compute vpc create prod-vpc --mode=custom
C.
gcloud compute networks create prod-vpc --subnet-mode=custom
D.
gcloud network vpc create prod-vpc --custom
How to approach this question
Identify the correct gcloud component (compute), resource (networks), and the flag for custom mode (--subnet-mode=custom).
Full Answer
C.gcloud compute networks create prod-vpc --subnet-mode=custom✓ Correct
gcloud compute networks create prod-vpc --subnet-mode=custom
VPC networks are considered part of the Compute Engine networking infrastructure, so they are managed using the `gcloud compute networks` command group. To create a custom-mode VPC (where you manually define the subnets and IP ranges), you use the command `gcloud compute networks create [NETWORK_NAME] --subnet-mode=custom`. If you omit the flag or use `--subnet-mode=auto`, GCP will automatically create a subnet in every region.
Common mistakes
Using `--subnet-mode=auto` or guessing that the resource name is `vpc` instead of `networks`.
Practice the full GCP Associate Cloud Engineer Practice Exam 6
50 questions · hints · full answers · grading
More questions from this exam
Q01What is the primary purpose of a Google Cloud project?EasyQ02Your development team needs to manage Compute Engine instances in a specific project. They need t...MediumQ03You are automating the setup of a new Google Cloud project using a bash script. You need to enabl...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...MediumQ05Your finance team wants to perform granular analysis of your Google Cloud spending using SQL. The...Hard
Expert