Medium1 markMultiple Choice
GCP ACE · Question 39 · Domain 4.5: Managing networking resources
Your company has a custom-mode VPC. A subnet in the us-east1 region was created with a /24 CIDR block (256 IP addresses). You are running out of IP addresses in this subnet and need to increase the available IPs without causing downtime for existing VMs.
What should you do?
Your company has a custom-mode VPC. A subnet in the us-east1 region was created with a /24 CIDR block (256 IP addresses). You are running out of IP addresses in this subnet and need to increase the available IPs without causing downtime for existing VMs.
What should you do?
Answer options:
A.
Use the gcloud compute networks subnets expand-ip-range command to increase the CIDR block to a /23 or larger.
B.
Create a new subnet with a larger CIDR block and migrate the VMs to the new subnet.
C.
Delete the subnet and recreate it with a larger CIDR block.
D.
Add a secondary IP range to the subnet and assign it to the VMs.
How to approach this question
Recall that GCP VPCs are software-defined and allow dynamic expansion of subnets.
Full Answer
A.Use the `gcloud compute networks subnets expand-ip-range` command to increase the CIDR block to a /23 or larger.✓ Correct
Use the gcloud compute networks subnets expand-ip-range command to increase the CIDR block to a /23 or larger.
Google Cloud VPCs are highly flexible. If you run out of IP addresses in a custom subnet, you can seamlessly expand the primary IP range using the Cloud Console or the `gcloud compute networks subnets expand-ip-range` command. You simply provide a new CIDR block (e.g., changing `/24` to `/23`) that includes the original range. This operation causes zero downtime.
Common mistakes
Applying traditional on-premises networking logic, thinking subnets are rigid and require VM migration to resize.
Practice the full GCP Associate Cloud Engineer Practice Exam 5
50 questions · hints · full answers · grading
More questions from this exam
Q01You are starting a new initiative and need to create a new Google Cloud project using the command...EasyQ02A developer on your team needs to manage App Engine applications, including deploying new version...MediumQ03You have created a new Google Cloud project. You need to allow a specific group of developers to ...MediumQ04Which statement best describes the relationship between Google Cloud projects and billing accounts?EasyQ05Your company wants to be notified immediately in their Slack channel whenever their monthly Googl...Medium
Expert