Google Associate Cloud Engineer Question 266
Single answerGoogle Cloud PlatformYou are managing a VPC network in Google Cloud and realize that the current subnet configuration will soon run out of IP addresses due to increased demand. What steps should you take to expand the subnet to accommodate more IP addresses?
- A
Create a new subnet with a larger CIDR range and migrate resources.
- B
Modify the existing subnet to increase its CIDR range.
- C
Create a new VPC and configure it with the necessary CIDR range.
- D
Add additional IP ranges to the existing VPC network.
Show answer and explanation
Correct answer: A
Explanation
In Google Cloud, once a subnet is created, its CIDR range cannot be expanded. To accommodate more IP addresses, you need to create a new subnet with a larger CIDR block and migrate your resources to this new subnet. This approach ensures that you have the necessary IP addresses available without altering the existing subnet's configuration.
- A. Correct.
Creating a new subnet with a larger CIDR range and migrating resources ensures that you have enough IP addresses, but it involves resource migration.
- B. Incorrect.
In Google Cloud, you cannot modify an existing subnet's CIDR range to make it larger. You must create a new subnet.
- C. Incorrect.
Creating a new VPC with a larger CIDR range is unnecessary and would require significant reconfiguration of resources and connectivity.
- D. Incorrect.
Adding additional IP ranges to the VPC network does not change the existing subnet's configuration but allows creation of new subnets with different ranges.