What should you do?

Your VMs are running in a subnet that has a subnet mask of 255.255.255.240. The current subnet has no more free IP addresses and you require an additional 10 IP addresses for new VMs. The existing and new VMs should all be able to reach each other without additional routes.

What should you do?
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.

Answer: A

Explanation:

https://cloud.google.com/sdk/gcloud/reference/compute/networks/subnets/expand-ip-range

gcloud compute networks subnets expand-ip-range – expand the IP range of a Compute Engine subnetwork gcloud compute networks subnets expand-ip-range NAME –prefix-length=PREFIX_LENGTH [–region=REGION] [GCLOUD_WIDE_FLAG …]

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments