An organization operates a custom-mode Virtual Private Cloud (VPC) network connected to an on-premises data center. A critical application deployed in the `us-east4` region resides within a primary subnet using the IP range . Due to an influx of new microservice instances, the cloud engineering team needs to double the IP capacity of this primary subnet without recreating the subnet, causing service downtime, or altering the IP addresses of running Virtual Machines (VMs). Which primary subnet expansion configuration meets these requirements?
- Expand the primary IP address range of the existing subnet to .Answer
- BExpand the primary IP address range of the existing subnet to .
- CAdd a secondary IP range of to the subnet and assign it as the primary interface network for new VM deployments.
- DConvert the VPC network from custom mode to auto mode to allow Google Cloud to automatically resize the subnet.
Answer
Expand the primary IP address range of the existing subnet to .
Expanding the primary IP address range to adheres to Google Cloud's subnet expansion rules. A subnet contains 2,048 addresses spanning to . Because this range fully includes the original range ( to ) and starts on a valid CIDR boundary (), the expansion can be performed online without modifying existing instance IPs.
Step-by-Step Solution
Key Concept
GCP VPC Primary Subnet Expansion CIDR Boundary Alignment