
Answer-first summary for fast verification
Answer: Extend the IP range of the existing subnet using the gcloud command-line tool.
Option C is the correct choice because expanding the primary IP range of the subnet with the gcloud tool allows for the accommodation of additional VMs without disrupting existing connections or requiring extra routes. This method ensures that the subnet can support the new VMs while maintaining uninterrupted connectivity. For example, to expand the IP range of a subnet named SUBNET to /16, you would execute: `gcloud compute networks subnets expand-ip-range SUBNET –region=us-central1 –prefix-length=16`. Options A, B, and D are incorrect as they either cause unnecessary downtime, do not address the IP shortage in the existing subnet, or involve overly complex solutions that don't meet the requirement for seamless connectivity.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company, established in 2001, is gradually moving its workloads from on-premises to Google Cloud Platform (GCP) VMs. A group of already migrated VMs operates in a subnet with a subnet mask of 255.255.255.220, which has exhausted its available IP addresses. You plan to migrate an additional 15 VMs to the same subnet, requiring seamless connectivity among all VMs without the need for extra routes. What is the best approach to achieve this?
A
Delete the subnet and recreate it with a broader IP address range.
B
Establish a new GCP project and utilize shared VPC to share the current network with the new project.
C
Extend the IP range of the existing subnet using the gcloud command-line tool.
D
Create a new subnet with the same starting IP but a wider range to replace the current one.
No comments yet.