GCP Associate Cloud Engineer Practice Question 72: Custom Mode VPC Subnets

Google Cloud Associate Cloud Engineer · Test 8 · question 2 of 10

VPC Networkingmedium

Your company is building a new VPC network that will only ever have workloads in us-central1 and europe-west1. The network team wants full control over the subnet IP ranges in each region and does not want subnets automatically created in every other GCP region. Which approach should you take when creating the network?

Select one answer
Show answer and explanation

Answer:

  • D. Create the network in custom mode and manually create only the two subnets, in us-central1 and europe-west1, with the desired IP ranges.

A custom mode VPC starts with no subnets at all, so you create exactly the subnets you need, in the regions you need, with IP ranges you choose. This gives the network team the control the scenario asks for.

Option A works technically but is wasteful and error prone: auto mode creates one subnet per region worldwide with predetermined ranges, and you would need to delete dozens of subnets every time GCP adds a new region. Option B, a shared VPC host project, controls which projects can attach to the network, not which subnets exist in which regions, and it still starts from an auto mode network with the same regional sprawl. Option C is not how subnet IP ranges work: a subnet range cannot simply be shrunk to a single address, and this does not remove the subnets from existing.

Reference: Custom mode VPC networks

Practice Test 8 ›

Study guides for Google Cloud Associate Cloud Engineer