A subnet using mask 255.255.255.240 is out of free IPs. You need 10 more IPs and all existing and new VMs must reach each other without extra routes. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Use gcloud to expand the subnet's IP range..
Why this is the answer
Expanding the subnet's IP range using gcloud is the correct solution because it directly addresses the need for more IPs within the existing subnet, preserving connectivity. This operation modifies the CIDR block of the current subnet, adding more available IP addresses without changing its identity. Deleting and recreating the subnet would cause downtime and require reconfiguring existing VMs. Creating a new project with Shared VPC is an overly complex solution for simply adding IPs and doesn't directly solve the subnet IP exhaustion. Creating a new subnet with the same starting IP and a wider range is not possible; subnet CIDR blocks cannot overlap within the same VPC network, and you cannot "overwrite" an existing subnet this way.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed