- A
Set 'Log at Session End' in the rule.
This logs when the session ends.
- B
Apply a Log Forwarding profile to the rule.
This allows sending logs to external systems.
- C
Enable 'Logging' under the rule's 'Actions' tab.
Why wrong: Logging is enabled via the rule's 'Log Setting' not an Actions tab.
- D
Configure 'Log at Rule Match' under the rule's 'Advanced' settings.
Why wrong: There is no such setting; logging is at start or end.
- E
Set 'Log at Session Start' in the rule.
This logs the beginning of a session.
Quick Answer
The answer is setting 'Log at Session End', 'Log at Session Start', and 'Log Forwarding' as the three valid methods to enable traffic logging when configuring a security rule. These options work by instructing the Palo Alto Networks firewall to generate a log entry either when a session terminates, capturing full details like bytes and duration, or when it begins, which is useful for real-time monitoring of initial connection attempts. Log Forwarding, meanwhile, is a separate profile applied to the rule that sends those generated logs to an external collector or Panorama, making it a valid method for enabling logging indirectly. On the PCNSE exam, this question tests your understanding of the rule's Logging tab versus the Log Forwarding profile—a common trap is confusing the profile with the direct per-rule toggles. Remember the mnemonic "Start, End, Send": Session Start and Session End are direct toggles, while Log Forwarding sends the logs elsewhere.
PCNSE Deploy and Configure Firewalls Practice Question
This PCNSE practice question tests your understanding of deploy and configure firewalls. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.
Which THREE of the following are valid methods to enable traffic logging when configuring a security rule?
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
Set 'Log at Session End' in the rule.
Option A is correct because setting 'Log at Session End' in a security rule explicitly instructs the firewall to generate a traffic log entry when the session terminates, capturing the complete session details including bytes transferred and duration. This is a direct method to enable logging for the rule's traffic.
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.
- ✓
Set 'Log at Session End' in the rule.
Why this is correct
This logs when the session ends.
Related concept
Read the scenario before looking for a memorised answer.
- ✓
Apply a Log Forwarding profile to the rule.
Why this is correct
This allows sending logs to external systems.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Enable 'Logging' under the rule's 'Actions' tab.
Why it's wrong here
Logging is enabled via the rule's 'Log Setting' not an Actions tab.
- ✗
Configure 'Log at Rule Match' under the rule's 'Advanced' settings.
Why it's wrong here
There is no such setting; logging is at start or end.
- ✓
Set 'Log at Session Start' in the rule.
Why this is correct
This logs the beginning of a session.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates confuse the 'Actions' tab with logging settings, or assume a 'Log at Rule Match' option exists, when in reality logging is controlled exclusively via the 'Log at Session End' checkbox and Log Forwarding profiles.
Detailed technical explanation
How to think about this question
In Palo Alto Networks firewalls, session logging is tied to the session lifecycle: 'Log at Session End' generates a log entry after the session closes, providing complete metadata like total bytes and session end reason. Log Forwarding profiles allow sending these logs to external systems (e.g., Panorama, SIEM) and can also enable logging implicitly if the profile is applied, even if 'Log at Session End' is not checked. This distinction is critical for compliance scenarios where you need to ensure all traffic is logged without manual rule-by-rule configuration.
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 small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.
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.
- →
Deploy and Configure Firewalls — study guide chapter
Learn the concepts, then practise the questions
- →
Deploy and Configure Firewalls practice questions
Targeted practice on this topic area only
- →
All PCNSE questions
516 questions across all exam domains
- →
Palo Alto Networks Certified Network Security Engineer PCNSE study guide
Full concept coverage aligned to exam objectives
- →
PCNSE practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PCNSE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Manage, Monitor and Operate practice questions
Practise PCNSE questions linked to Manage, Monitor and Operate.
Securing Traffic and App-ID practice questions
Practise PCNSE questions linked to Securing Traffic and App-ID.
Securing Users and Applications with Authentication practice questions
Practise PCNSE questions linked to Securing Users and Applications with Authentication.
Decryption and SSL Inspection practice questions
Practise PCNSE questions linked to Decryption and SSL Inspection.
Managing Troubleshooting and High Availability practice questions
Practise PCNSE questions linked to Managing Troubleshooting and High Availability.
Deploy and Configure Firewalls practice questions
Practise PCNSE questions linked to Deploy and Configure Firewalls.
Core Concepts and Architecture practice questions
Practise PCNSE questions linked to Core Concepts and Architecture.
Secure Access and VPN practice questions
Practise PCNSE questions linked to Secure Access and VPN.
Troubleshoot practice questions
Practise PCNSE questions linked to Troubleshoot.
PCNSE fundamentals practice questions
Practise PCNSE questions linked to PCNSE fundamentals.
PCNSE scenario practice questions
Practise PCNSE questions linked to PCNSE scenario.
PCNSE troubleshooting practice questions
Practise PCNSE questions linked to PCNSE troubleshooting.
Practice this exam
Start a free PCNSE 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 PCNSE question test?
Deploy and Configure Firewalls — This question tests Deploy and Configure Firewalls — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Set 'Log at Session End' in the rule. — Option A is correct because setting 'Log at Session End' in a security rule explicitly instructs the firewall to generate a traffic log entry when the session terminates, capturing the complete session details including bytes transferred and duration. This is a direct method to enable logging for the rule's traffic.
What should I do if I get this PCNSE 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 11, 2026
This PCNSE practice question is part of Courseiva's free Palo Alto Networks 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 PCNSE 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.