- A
Add an ingress firewall rule in VPC-B allowing traffic from 10.0.0.0/16 on port 443.
Ingress rule on the target network is required; default egress allows outbound from source.
- B
Add an ingress firewall rule in VPC-A allowing traffic from 172.16.0.0/16 on port 443.
Why wrong: Ingress rule on VPC-A would allow traffic from VPC-B to VPC-A, not the reverse.
- C
Add a single firewall rule in the project with source 10.0.0.0/16 and destination 172.16.0.0/16 on port 443.
Why wrong: Firewall rules apply to a single VPC network; cannot apply to both networks in one rule.
- D
Add an egress firewall rule in VPC-A allowing traffic to 172.16.0.0/16 on port 443.
Why wrong: Default egress rule already allows all outbound traffic, so no egress rule is needed unless you have a deny egress rule.
VPC Peering Firewall Rules: Ingress Rule Only for Initiated Communication
This PCSE practice question tests your understanding of pcse exam topics. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company has two VPC networks in the same project: VPC-A (10.0.0.0/16) and VPC-B (172.16.0.0/16). They have established VPC peering between them. An instance in VPC-A needs to communicate with an instance in VPC-B on TCP port 443. What is the minimal firewall configuration needed?
Quick Answer
The answer is to add an ingress firewall rule in VPC-B allowing traffic from 10.0.0.0/16 on TCP port 443. This is correct because VPC peering does not automatically permit traffic between peered networks; firewall rules must explicitly authorize the communication. Since the instance in VPC-A initiates the connection to VPC-B, only the destination VPC’s ingress needs to be opened—egress rules in VPC-A are implicitly permissive by default in Google Cloud, making this the minimal configuration. On the Google Professional Cloud Security Engineer exam, this scenario tests your understanding that VPC peering is a connectivity mechanism, not a security boundary, and that firewall rules are evaluated at the destination. A common trap is assuming both ingress and egress rules are needed, or that peering alone grants access. Remember the memory tip: “Peering opens the door, but firewalls decide who walks through—only the destination’s ingress matters for initiated traffic.”
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
Add an ingress firewall rule in VPC-B allowing traffic from 10.0.0.0/16 on port 443.
Option A is correct because VPC peering does not automatically allow traffic; firewall rules must explicitly permit the desired communication. Since the instance in VPC-A initiates the connection to VPC-B, VPC-B's firewall must have an ingress rule allowing traffic from VPC-A's CIDR (10.0.0.0/16) on TCP port 443. This is the minimal configuration because egress rules in VPC-A are implicitly permissive by default in Google Cloud, and only the destination VPC's ingress needs to be opened.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Add an ingress firewall rule in VPC-B allowing traffic from 10.0.0.0/16 on port 443.
Why this is correct
Ingress rule on the target network is required; default egress allows outbound from source.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Add an ingress firewall rule in VPC-A allowing traffic from 172.16.0.0/16 on port 443.
Why it's wrong here
Ingress rule on VPC-A would allow traffic from VPC-B to VPC-A, not the reverse.
- ✗
Add a single firewall rule in the project with source 10.0.0.0/16 and destination 172.16.0.0/16 on port 443.
Why it's wrong here
Firewall rules apply to a single VPC network; cannot apply to both networks in one rule.
- ✗
Add an egress firewall rule in VPC-A allowing traffic to 172.16.0.0/16 on port 443.
Why it's wrong here
Default egress rule already allows all outbound traffic, so no egress rule is needed unless you have a deny egress rule.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the misconception that VPC peering automatically opens all traffic between the peered networks, leading candidates to think no firewall rules are needed, or that egress rules must be added on the source side.
Detailed technical explanation
How to think about this question
In Google Cloud VPC, firewall rules are stateful, meaning that if an ingress rule allows incoming traffic, the corresponding return traffic is automatically permitted without an egress rule. However, the initial inbound connection must be explicitly allowed by an ingress rule on the destination network. VPC peering does not imply any firewall rule changes; it only establishes routing between the networks. A common real-world scenario is when an application in VPC-A needs to reach a database in VPC-B on a specific port, and only the database's VPC needs an ingress rule for the application's CIDR.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A healthcare organisation deploys an application with a public-facing web tier and a private database tier. The database subnet has no public IP and only accepts connections from the web tier's security group. Questions like this test whether you can design cloud network isolation using VNets/VPCs, subnets, and security group rules.
Visual reference
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Related practice questions
Related PCSE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Configuring Access Within a Cloud Solution Environment practice questions
Practise PCSE questions linked to Configuring Access Within a Cloud Solution Environment.
Ensuring Data Protection practice questions
Practise PCSE questions linked to Ensuring Data Protection.
Managing Operations in a Cloud Solution Environment practice questions
Practise PCSE questions linked to Managing Operations in a Cloud Solution Environment.
Configuring Network Security practice questions
Practise PCSE questions linked to Configuring Network Security.
Supporting Compliance Requirements practice questions
Practise PCSE questions linked to Supporting Compliance Requirements.
PCSE fundamentals practice questions
Practise PCSE questions linked to PCSE fundamentals.
PCSE scenario practice questions
Practise PCSE questions linked to PCSE scenario.
PCSE troubleshooting practice questions
Practise PCSE questions linked to PCSE troubleshooting.
Practice this exam
Start a free PCSE practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PCSE question test?
Read the scenario before looking for a memorised answer.
What is the correct answer to this question?
The correct answer is: Add an ingress firewall rule in VPC-B allowing traffic from 10.0.0.0/16 on port 443. — Option A is correct because VPC peering does not automatically allow traffic; firewall rules must explicitly permit the desired communication. Since the instance in VPC-A initiates the connection to VPC-B, VPC-B's firewall must have an ingress rule allowing traffic from VPC-A's CIDR (10.0.0.0/16) on TCP port 443. This is the minimal configuration because egress rules in VPC-A are implicitly permissive by default in Google Cloud, and only the destination VPC's ingress needs to be opened.
What should I do if I get this PCSE question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More PCSE practice questions
- Match each encryption scope to its description.
- Drag and drop the steps to set up a Private Google Access for on-premises hosts using Private Service Connect in the cor…
- A company is designing a CI/CD pipeline using Cloud Build. Security requirements mandate that the pipeline deploy only t…
- A company must implement data residency requirements that prohibit storing data outside the European Union. They are usi…
- A company wants to allow employees to access a web application running on Google Kubernetes Engine (GKE) using their cor…
- A company is deploying a multi-tier application on Google Cloud. The web tier must be accessible from the internet, whil…
Last reviewed: Jun 30, 2026
This PCSE 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 PCSE exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.