Courseiva
Implementing a Virtual Private CloudmediumMultiple SelectObjective-mapped

PCNE Implementing a Virtual Private Cloud Practice Question

A company wants to establish a VPC peering connection between two VPCs in different projects. Which two steps are mandatory to create the peering connection?

⚠ Common exam trap

Google Cloud often tests the misconception that firewall rules are mandatory for creating a VPC peering connection, but in reality, the peering is a network-layer connectivity setup that can exist without any firewall rules, which are only needed to allow traffic after the peering is active.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Ensure the VPCs have non-overlapping subnet IP address ranges.

VPC peering relies on private IP routing between the two VPCs. If the IP address ranges overlap, the VPC route tables cannot distinguish which VPC a packet belongs to, causing routing conflicts and preventing the peering connection from being established. Google Cloud requires that the VPCs have non-overlapping subnet CIDR blocks for successful peering.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Assign a public IP to the VMs in both VPCs.

    Why it's wrong here

    VPC peering uses private IPs; public IPs are not required for peering communication.

  • Ensure the VPCs have non-overlapping subnet IP address ranges.

    Why this is correct

    Overlapping ranges cause routing conflicts and are not allowed in VPC peering.

  • Create a peering connection from each project's VPC to the other.

    Why this is correct

    Peering is bidirectional; each side must initiate or accept the connection.

  • Create a firewall rule allowing all traffic between the VPCs.

    Why it's wrong here

    Firewall rules are not mandatory to create the peering connection, only to allow specific traffic after the connection is established.

  • Configure a Cloud Router with BGP sessions.

    Why it's wrong here

    Cloud Router with BGP is used for Cloud VPN or Dedicated Interconnect, not for VPC peering.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

About these practice questions

This PCNE question is part of Courseiva's 961-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCNE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCNE exam.