Google Associate Cloud Engineer Question 269
Single answerGoogle Cloud PlatformYou are a Google Cloud Engineer responsible for managing the network configuration for your company's cloud infrastructure. Currently, you have a VPC with a subnet in the us-central1 region using the IP range 10.0.0.0/24, but you are running out of IP addresses. What steps should you take to expand your subnet to accommodate more IP addresses?
- A
Create a new subnet in the same region with a larger CIDR range and update your resources to use the new subnet.
- B
Resize the existing subnet by updating its CIDR range to a larger one.
- C
Delete the existing subnet and create a new one with a larger CIDR range.
- D
Add another IP range to the existing subnet to expand its IP address capacity.
Show answer and explanation
Correct answer: A
Explanation
In Google Cloud, you cannot directly resize an existing subnet's CIDR range. The best practice is to create a new subnet with a larger CIDR range and migrate your resources to this new subnet. This approach avoids the disruption that deleting a subnet would cause and respects the fixed CIDR range limitation of subnets in Google Cloud.
- A. Correct.
Correct. You can create a new subnet with a larger range and update your resources to use it, which is the recommended approach.
- B. Incorrect.
Incorrect. Google Cloud does not allow resizing an existing subnet's CIDR range directly.
- C. Incorrect.
Incorrect. Deleting the subnet will disrupt any resources dependent on it, which is not ideal.
- D. Incorrect.
Incorrect. You cannot add an IP range to an existing subnet; subnets have a fixed CIDR range.