Question 442 of 497
Implementing network securitymediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to enable firewall rule logging on the specific rule and analyze the logs in Cloud Logging. This is correct because firewall rule logging captures per-packet metadata—including source IP, destination IP, protocol, and the rule’s action (allow or deny)—directly from the VPC firewall layer, giving you the granular detail needed to trace unexpected allowed traffic. In contrast, VPC Flow Logs record network flows at the subnet or instance level but do not indicate which firewall rule permitted the traffic, making them unsuitable for this specific forensic task. On the Google Professional Cloud Network Engineer exam, this distinction tests your understanding of logging scope: firewall rule logging is rule-centric, while Flow Logs are flow-centric. A common trap is choosing VPC Flow Logs for traffic analysis, but remember the memory tip: “Rules log the why; flows log the who.”

PCNE Implementing network security Practice Question

This PCNE practice question tests your understanding of implementing 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.

A network engineer notices unexpected traffic being allowed through a VPC firewall rule. They want to analyze the logs to identify the source and destination. What is the best way to enable detailed logging for firewall rules?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

Question 1mediummultiple choice
Read the full NAT/PAT explanation →

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

Enable firewall rule logging on the specific rule and view logs in Cloud Logging.

Firewall rule logging in VPC is designed specifically to log metadata (source IP, destination IP, action, etc.) for each packet matched by a firewall rule. Enabling it on the specific rule and viewing logs in Cloud Logging provides the granular, per-rule detail needed to identify the source and destination of unexpected traffic. This is the direct and intended method for firewall rule analysis.

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.

  • Enable firewall rule logging on the specific rule and view logs in Cloud Logging.

    Why this is correct

    Firewall rule logging logs each packet that matches the rule.

    Clue confirmation

    The clue word "best" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Enable VPC Flow Logs for the subnet.

    Why it's wrong here

    VPC Flow Logs capture IP traffic metadata but not firewall rule actions directly.

  • Create a custom router with a log export.

    Why it's wrong here

    Custom router is not relevant.

  • Use Packet Mirroring to capture all traffic.

    Why it's wrong here

    Packet Mirroring is for deep packet inspection, not for logging firewall rule hits.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between VPC Flow Logs (subnet-level flow metadata) and firewall rule logging (per-rule, per-packet decision logs), and the trap here is that candidates confuse VPC Flow Logs as a substitute for firewall rule logging, but Flow Logs lack rule-specific context.

Detailed technical explanation

How to think about this question

Under the hood, VPC firewall rule logging uses the same packet processing pipeline as the firewall itself, generating a log entry for each packet that matches a rule with logging enabled. The logs include fields like `rule_tag`, `src_ip`, `dest_ip`, `src_port`, `dest_port`, `protocol`, and `action`, and are streamed to Cloud Logging via the `vpc_firewall_rules` log sink. A subtle behavior: logging is sampled at a default rate (e.g., 1 log per 10 packets for high-throughput flows) to avoid overwhelming the logging system, so in very high-traffic scenarios, some packets may not be logged.

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.

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 PCNE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PCNE 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 PCNE question test?

Implementing network security — This question tests Implementing network security — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Enable firewall rule logging on the specific rule and view logs in Cloud Logging. — Firewall rule logging in VPC is designed specifically to log metadata (source IP, destination IP, action, etc.) for each packet matched by a firewall rule. Enabling it on the specific rule and viewing logs in Cloud Logging provides the granular, per-rule detail needed to identify the source and destination of unexpected traffic. This is the direct and intended method for firewall rule analysis.

What should I do if I get this PCNE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

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.

Loading comments…

Sign in to join the discussion.

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.