
Answer-first summary for fast verification
Answer: Use gcloud to expand the IP range of the current subnet.
The correct answer is A: Use gcloud to expand the IP range of the current subnet. Expanding the primary IPv4 address range of a subnet does not cause a break or gap in network connectivity. Existing DHCP leases are not broken, and the IP addresses of running VMs do not change. This solution allows you to add the required additional IP addresses without disrupting the existing setup or needing additional routes. Expanding the subnet is also a permanent solution and fits within the scenario's requirement to keep existing and new VMs interconnected.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your virtual machines (VMs) are currently operating within a subnet that utilizes a subnet mask of 255.255.255.240. This specific subnet is fully allocated, leaving no available IP addresses for new instances. You need to provision an additional 10 IP addresses to accommodate new VMs. It is crucial that both the existing VMs and the new VMs can communicate with each other seamlessly, without the necessity of creating additional routes. How should you proceed to achieve this?
A
Use gcloud to expand the IP range of the current subnet.
B
Delete the subnet, and recreate it using a wider range of IP addresses.
C
Create a new project. Use Shared VPC to share the current network with the new project.
D
Create a new subnet with the same starting IP but a wider range to overwrite the current subnet.