Medium1 markMultiple Choice

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

You have a custom-mode VPC network. One of your subnets, 'subnet-app', was created with a primary IP range of 10.0.1.0/24. You are running out of IP addresses in this subnet and need to expand it to accommodate more VMs.

What is the correct way to handle this?

Answer options:

A.

Delete the subnet and recreate it with a larger CIDR block.

B.

Create a new subnet in the same region and bridge the two subnets together.

C.

Use the gcloud compute networks subnets expand-ip-range command to change the CIDR block to 10.0.0.0/23.

D.

Change the VPC from custom-mode to auto-mode.

How to approach this question

Know that GCP subnets can be expanded dynamically without downtime.

Full Answer

C.Use the gcloud compute networks subnets expand-ip-range command to change the CIDR block to 10.0.0.0/23.✓ Correct
In Google Cloud, you can expand the primary IP range of an existing subnet without any downtime or disruption to the resources currently using it. You use the `expand-ip-range` command (or the Console) to specify a new, larger CIDR block. The new block must completely contain the old block (e.g., expanding /24 to /23) and must not overlap with any other subnets in the VPC.

Common mistakes

Assuming you have to delete the subnet and recreate it, which is a limitation in some older on-premises networking environments but not in GCP.

Practice the full GCP Associate Cloud Engineer Practice Exam 6

50 questions · hints · full answers · grading

More questions from this exam