Google Associate Cloud Engineer Question 260
Select 3Google Cloud PlatformYou are tasked with adding a new subnet to an existing VPC in Google Cloud Platform. The VPC already has one regionally defined subnet. Which of the following steps must you take to successfully add a new subnet in a different region?
- A
Navigate to the VPC network in the Google Cloud Console and select 'Add subnet'.
- B
Specify the region where the new subnet will be created.
- C
Assign a CIDR range to the new subnet that overlaps with the existing subnet.
- D
Configure any necessary firewall rules to allow traffic to and from the new subnet.
- E
Enable VPC Peering to allow the new subnet to communicate with the existing subnet.
Show answer and explanation
Correct answers: A, B, D
Explanation
To add a new subnet to an existing VPC in Google Cloud Platform, you need to navigate to the VPC, specify the region for the subnet, ensure non-overlapping CIDR ranges, and configure firewall rules. VPC Peering is not necessary as the subnets are within the same VPC.
- A. Correct.
To add a subnet, you start by navigating to the VPC network details and selecting the option to add a subnet.
- B. Correct.
When creating a new subnet, you must specify the region because subnets are regional resources in Google Cloud.
- C. Incorrect.
Subnets must have non-overlapping CIDR ranges within the same VPC. Overlapping ranges will cause configuration errors.
- D. Correct.
After creating a subnet, configuring firewall rules is necessary to manage traffic and ensure proper communication.
- E. Incorrect.
VPC Peering is not required for communication within subnets of the same VPC. It is used for connecting different VPCs.