GCP ACE · Question 39 · Domain 4.5: Managing networking resources
You have a custom VPC with a subnet in the us-east1 region using the CIDR block 10.0.0.0/24. You have run out of IP addresses in this subnet and need to expand it to accommodate more VMs. You want to do this without recreating the subnet or disrupting existing VMs.
Which command should you use?
Answer options:
gcloud compute networks subnets update [SUBNET_NAME] --add-secondary-range=10.0.1.0/24
gcloud compute networks subnets expand-ip-range [SUBNET_NAME] --prefix-length=20
gcloud compute networks subnets expand-ip-range [SUBNET_NAME] --prefix-length=28
You cannot expand a subnet. You must create a new one and migrate the VMs.
50 questions · hints · full answers · grading