Medium1 markMultiple Choice

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

Your custom-mode VPC has a subnet in 'us-east1' with the CIDR range 10.0.0.0/24. You have run out of IP addresses in this subnet and need to add more capacity. You want to do this without recreating the subnet or disrupting existing VMs.

What should you do?

Answer options:

A.

Create a new subnet in 'us-east1' and migrate half the VMs to it.

B.

Expand the subnet's primary IP range to 10.0.0.0/23 using the Cloud Console or gcloud.

C.

Change the VPC routing mode from Regional to Global.

D.

Add a secondary IP range to the subnet.

How to approach this question

Know that GCP subnets can be expanded dynamically.

Full Answer

B.Expand the subnet's primary IP range to 10.0.0.0/23 using the Cloud Console or gcloud.✓ Correct
Expand the subnet's primary IP range to 10.0.0.0/23 using the Cloud Console or gcloud.
In Google Cloud, you can expand the IP range of an existing subnet without downtime. You simply update the subnet with a new, larger CIDR block (e.g., changing a /24 to a /23). The new range must encompass the old range.

Common mistakes

Thinking subnets are immutable and must be recreated, which is true in some other clouds but not GCP.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam