Question

Difficulty: HardPlanning Virtual Private Cloud (VPC) Networks and Subnets

An enterprise architecture team is designing a Virtual Private Cloud (VPC) network in Google Cloud to establish a hybrid connection with an on-premises data center via Cloud VPN. The on-premises network uses the private IP block 172.16.0.0/16. The cloud workload requires deploying standard Compute Engine virtual machines in us-central1 and a Google Kubernetes Engine (GKE) private cluster in us-east1. Which TWO subnet design and IP address planning requirements must be met to ensure valid network routing and prevent IP address collisions?

  1. Create the VPC network in custom mode to explicitly define regional subnets and avoid IP address overlap with the on-premises 172.16.0.0/16 range.Answer
  2. B
    Deploy the VPC in auto-mode so that default regional subnets automatically expand their primary CIDR blocks into 172.16.0.0/16 when IP capacity limits are reached.
  3. Allocate disjoint CIDR blocks for the primary subnet range and the GKE secondary ranges (Pods and Services) in us-east1 that do not overlap each other or the on-premises network.Answer
  4. D
    Define secondary IP ranges for GKE Pods within the existing primary subnet CIDR block to conserve overall private IP address space.

Answer

The correct requirements are creating the VPC in custom mode to prevent IP overlap with on-premises address spaces, and allocating disjoint CIDR blocks for the primary subnet range and GKE secondary ranges in us-east1.
Custom mode VPCs are necessary when integrating with hybrid networks because they allow administrators to explicitly define subnet CIDRs, avoiding collisions with on-premises ranges such as 172.16.0.0/16. Additionally, GKE private clusters mandate that secondary IP ranges assigned to Pods and Services must be non-overlapping, distinct CIDR blocks separate from the primary subnet CIDR and any hybrid connected networks.

Step-by-Step Solution

1
Evaluate VPC creation mode for hybrid network integration.
Custom mode VPC network must be selected.
Auto-mode VPCs automatically generate subnets in every region using fixed IP ranges (10.128.0.0/9), which can conflict with on-premises RFC 1918 ranges such as 172.16.0.0/16.
2
Plan IP address allocation for GKE workloads and Compute Engine instances.
Distinct IP ranges are assigned for primary subnets and GKE alias IP secondary ranges.
GKE private clusters require separate secondary IP ranges for Pods and Services. These secondary ranges must be non-overlapping with each other, the primary subnet CIDR, and connected on-premises IP space.

Key Concept

Custom Mode VPC Design and GKE Secondary IP Range Allocation
Rate this question