Medium1 markMultiple Choice
Domain 4.5: Managing networking resourcesDomain 4.5VPCNetworkingSubnets

GCP ACE · Question 39 · Domain 4.5: Managing networking resources

You have a custom-mode VPC with a subnet in 'us-west1' using the CIDR range 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.

What is the impact of running the gcloud compute networks subnets expand-ip-range command?

Answer options:

A.

All VMs in the subnet will be rebooted to receive new IP addresses.

B.

The subnet is expanded immediately without any downtime for existing VMs.

C.

You must delete and recreate the subnet with the new CIDR range.

D.

The operation will fail because you cannot change a /24 to a /20.

How to approach this question

Understand the operational impact of expanding a VPC subnet in GCP.

Full Answer

B.The subnet is expanded immediately without any downtime for existing VMs.✓ Correct
The subnet is expanded immediately without any downtime for existing VMs.
In Google Cloud, you can expand the IP range of an existing subnet (e.g., from /24 to /20) without any downtime. Existing VMs retain their current IP addresses and do not need to be restarted. The new IP addresses simply become available for new resources.

Common mistakes

Assuming network changes require downtime or VM recreation, which is common in traditional on-premises networking.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam