GCP ACE · Question 39 · Domain 4.5: Managing networking resources
You have a custom VPC with a subnet 10.0.0.0/24. You are running out of IP addresses in this subnet and need to expand it to 10.0.0.0/20. There are running VMs in the subnet. Which command should you use?
Answer options:
gcloud compute networks subnets update ... --range=10.0.0.0/20
gcloud compute networks subnets expand-ip-range ... --prefix-length=20
You must delete the subnet and recreate it with the new range.
You must stop all VMs before expanding the subnet.
50 questions · hints · full answers · grading