Soru

Zorluk: ZorPlanning Virtual Private Cloud (VPC) Networks and Subnets

A financial services organization is managing a custom-mode Virtual Private Cloud (VPC) network in Google Cloud. The primary subnet in `europe-west1` is configured with the IP block 10.40.16.0/2210.40.16.0/22 (10.40.16.010.40.19.25510.40.16.0 - 10.40.19.255). Two other regional subnets in the same VPC use 10.40.0.0/2110.40.0.0/21 (10.40.0.010.40.7.25510.40.0.0 - 10.40.7.255) and 10.40.8.0/2210.40.8.0/22 (10.40.8.010.40.11.25510.40.8.0 - 10.40.11.255). Due to rapid scaling, the architecture team must expand the primary IP range of the `europe-west1` subnet to support at least 3,500 internal compute instances without recreating the subnet or causing downtime for existing workloads. Which CIDR modification plan accomplishes this expansion without creating an IP range collision?

  1. Expand the primary subnet CIDR block in `europe-west1` from 10.40.16.0/2210.40.16.0/22 to 10.40.16.0/2010.40.16.0/20.Cevap
  2. B
    Expand the primary subnet CIDR block in `europe-west1` from 10.40.16.0/2210.40.16.0/22 to 10.40.0.0/1910.40.0.0/19.
  3. C
    Expand the primary subnet CIDR block in `europe-west1` from 10.40.16.0/2210.40.16.0/22 to 10.40.16.0/2110.40.16.0/21.
  4. D
    Reassign the primary subnet IP range in `europe-west1` from 10.40.16.0/2210.40.16.0/22 to a new contiguous range of 10.40.32.0/2010.40.32.0/20.

Cevap

Expand the primary subnet CIDR block in europe-west1 from 10.40.16.0/2210.40.16.0/22 to 10.40.16.0/2010.40.16.0/20.
Expanding the primary subnet to 10.40.16.0/2010.40.16.0/20 provides 4,096 IP addresses (10.40.16.010.40.31.25510.40.16.0 - 10.40.31.255), satisfying the 3,500 instance requirement. It fully contains the original 10.40.16.0/2210.40.16.0/22 IP range (10.40.16.010.40.19.25510.40.16.0 - 10.40.19.255) without overlapping existing subnets (10.40.0.0/2110.40.0.0/21 and 10.40.8.0/2210.40.8.0/22).

Adım Adım Çözüm

1
Determine the required IP address capacity.
To support at least 3,500 instances, a /20/20 subnet mask (23220=4,0962^{32-20} = 4,096 IP addresses) is required, whereas a /21/21 mask provides only 2,048 addresses.
Google Cloud VPC subnets require sufficient contiguous IP space for compute instances and reserved network addresses.
2
Evaluate GCP VPC subnet expansion constraints.
The new expanded CIDR range must be a broader netmask (smaller prefix number), and the original subnet range (10.40.16.0/2210.40.16.0/22) must be fully contained inside the new range.
GCP permits zero-downtime subnet expansion only when the base address alignment retains existing workloads inside the expanded range.
3
Check for IP address overlap across existing VPC subnets.
The block 10.40.16.0/2010.40.16.0/20 spans 10.40.16.010.40.16.0 through 10.40.31.25510.40.31.255. It contains 10.40.16.0/2210.40.16.0/22 (10.40.16.010.40.19.25510.40.16.0 - 10.40.19.255) and does not conflict with 10.40.0.0/2110.40.0.0/21 (10.40.0.010.40.7.25510.40.0.0 - 10.40.7.255) or 10.40.8.0/2210.40.8.0/22 (10.40.8.010.40.11.25510.40.8.0 - 10.40.11.255).
Subnet ranges within a single VPC network must be strictly non-overlapping.

Anahtar Kavram

VPC Subnet Expansion and CIDR Planning
Tahmini Süre:2m 0s
Bu soruyu puanla