- A
Remove the default allow egress rule that allows all outbound traffic
Why wrong: Removing the default egress rule would block all outbound traffic, which could break other communications. The specific egress rule will take precedence due to higher priority if needed, but actually the default egress rule allows all, and our specific rule allows additional traffic; it doesn't conflict. We don't need to remove it.
- B
Create an egress firewall rule that allows TCP 4444 from target tag 'app-tier' to source tag 'app-tier'
This rule allows outbound traffic on port 4444 from instances with the tag 'app-tier' to instances with the same tag.
- C
Create a VPC firewall rule to deny all egress traffic from the VPC
Why wrong: This would block all outbound traffic, including necessary communications. The default allow egress rule can remain; we just need to ensure specific allow rules for the required traffic.
- D
Create an ingress firewall rule that allows TCP 4444 from source tag 'app-tier' to target tag 'app-tier'
This rule allows inbound traffic on port 4444 between instances with the tag 'app-tier'.
- E
Apply the 'app-tier' tag to all instances that need to communicate
Tags are used to select instances for firewall rules. Without the tag, the rules won't apply.
Quick Answer
The answer is to apply the 'app-tier' tag to all instances that need to communicate, then create an egress firewall rule allowing TCP 4444 with the source tag set to 'app-tier' and the destination tag set to 'app-tier'. This works because firewall rules with tags restrict inter-instance communication by evaluating the tags on the source and destination instances, ensuring that only tagged instances can send or receive traffic on that port. On the Google Professional Cloud Security Engineer exam, this scenario tests your understanding of how VPC firewall rules leverage network tags for micro-segmentation, a common trap being that candidates mistakenly apply an ingress rule instead of the egress rule, which would not control which instances can initiate the outbound connection. Remember that egress rules govern who can send traffic, while ingress rules govern who can receive it; a useful memory tip is "egress enforces the source, ingress inspects the destination."
PCSE Configuring network security Practice Question
This PCSE practice question tests your understanding of configuring network security. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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.
Your company has a VPC with multiple subnets. You have deployed a set of Compute Engine instances that must communicate with each other over TCP port 4444. The instances are tagged with 'app-tier'. You need to ensure that only these instances can communicate on this port. Which THREE of the following steps are necessary to achieve this?
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
Create an egress firewall rule that allows TCP 4444 from target tag 'app-tier' to source tag 'app-tier'
Option B is correct because egress firewall rules control outbound traffic from instances. By creating an egress rule allowing TCP 4444 from source tag 'app-tier' to destination tag 'app-tier', you ensure that only instances with the 'app-tier' tag can send traffic on that port to other 'app-tier' instances, while all other outbound traffic is implicitly denied by the default deny egress rule (unless overridden by a higher-priority allow rule). This restricts communication to the intended group.
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.
- ✗
Remove the default allow egress rule that allows all outbound traffic
Why it's wrong here
Removing the default egress rule would block all outbound traffic, which could break other communications. The specific egress rule will take precedence due to higher priority if needed, but actually the default egress rule allows all, and our specific rule allows additional traffic; it doesn't conflict. We don't need to remove it.
- ✓
Create an egress firewall rule that allows TCP 4444 from target tag 'app-tier' to source tag 'app-tier'
Why this is correct
This rule allows outbound traffic on port 4444 from instances with the tag 'app-tier' to instances with the same tag.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Create a VPC firewall rule to deny all egress traffic from the VPC
Why it's wrong here
This would block all outbound traffic, including necessary communications. The default allow egress rule can remain; we just need to ensure specific allow rules for the required traffic.
- ✓
Create an ingress firewall rule that allows TCP 4444 from source tag 'app-tier' to target tag 'app-tier'
Why this is correct
This rule allows inbound traffic on port 4444 between instances with the tag 'app-tier'.
Related concept
Read the scenario before looking for a memorised answer.
- ✓
Apply the 'app-tier' tag to all instances that need to communicate
Why this is correct
Tags are used to select instances for firewall rules. Without the tag, the rules won't apply.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the misconception that egress rules are unnecessary for restricting inter-instance communication, but in GCP, both ingress and egress rules are required to fully control traffic flow, as egress rules govern outbound packets from the source instance.
Detailed technical explanation
How to think about this question
In Google Cloud VPC, firewall rules are stateful and evaluated in order of priority (lower number = higher priority). The default egress rule (priority 65535) allows all outbound traffic, but a higher-priority rule (e.g., priority 1000) can deny or allow specific traffic. The use of target tags and source tags allows granular control based on instance metadata, enabling micro-segmentation without relying on IP addresses. This is similar to security group rules in AWS but with explicit priority ordering.
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 media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
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.
- →
Configuring network security — study guide chapter
Learn the concepts, then practise the questions
- →
Configuring network security practice questions
Targeted practice on this topic area only
- →
All PCSE questions
500 questions across all exam domains
- →
Google Professional Cloud Security Engineer study guide
Full concept coverage aligned to exam objectives
- →
PCSE practice test guide
How to use practice tests most effectively before exam day
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 network security practice questions
Practise PCSE questions linked to Configuring network security.
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.
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?
Configuring network security — This question tests Configuring network security — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create an egress firewall rule that allows TCP 4444 from target tag 'app-tier' to source tag 'app-tier' — Option B is correct because egress firewall rules control outbound traffic from instances. By creating an egress rule allowing TCP 4444 from source tag 'app-tier' to destination tag 'app-tier', you ensure that only instances with the 'app-tier' tag can send traffic on that port to other 'app-tier' instances, while all other outbound traffic is implicitly denied by the default deny egress rule (unless overridden by a higher-priority allow rule). This restricts communication to the intended group.
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 →
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.