Configuring Distribution VPC to Peer with Retail VPC | PCNE Exam Answer

Configure Distribution VPC for Peering with Retail VPC

Question

You created a VPC network named Retail in auto mode.

You want to create a VPC network named Distribution and peer it with the Retail VPC.

How should you configure the Distribution VPC?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

https://cloud.google.com/vpc/docs/using-vpc

To create a VPC network named Distribution and peer it with the Retail VPC, we need to consider certain factors, such as the mode of the VPC and the CIDR range to be used.

In Google Cloud Platform (GCP), there are two modes of creating a VPC network: auto mode and custom mode.

Auto mode creates the VPC network with a pre-defined subnet and IP address range. This is suitable for small-scale deployments where the user does not require many subnets.

Custom mode allows the user to define the IP address range and the subnets within the VPC network. This is suitable for large-scale deployments where the user requires multiple subnets.

Option A suggests creating the Distribution VPC in auto mode and then peering both the VPCs via network peering. This is not recommended as auto mode only provides a single subnet and IP address range, which might not be sufficient for large-scale deployments.

Option D suggests renaming the default VPC as "Distribution" and then peering it via network peering. This is not recommended as the default VPC already has a pre-defined IP address range and subnet, which might not be suitable for the user's deployment.

Option B suggests creating the Distribution VPC in custom mode using the CIDR range 10.0.0.0/9 and creating the necessary subnets, and then peering them via network peering. This is a valid option as custom mode allows the user to define the IP address range and subnets according to their deployment requirements.

Option C suggests creating the Distribution VPC in custom mode using the CIDR range 10.128.0.0/9 and creating the necessary subnets, and then peering them via network peering. This is not recommended as the CIDR range 10.128.0.0/9 is already in use by Google Cloud Platform for its internal services, and using this range for the user's deployment might cause conflicts.

Therefore, the correct option to create a VPC network named Distribution and peer it with the Retail VPC is option B, which suggests creating the Distribution VPC in custom mode using the CIDR range 10.0.0.0/9 and creating the necessary subnets, and then peering them via network peering.