- A
Only the first packet of each session will be logged
Why wrong: That would be 'logtraffic=utm' or similar.
- B
Only traffic that triggers a security profile will be logged
Why wrong: That is not what 'all' indicates.
- C
Only traffic that is denied by the policy will be logged
Why wrong: 'all' includes both allowed and denied.
- D
All traffic matching the policy will be logged, regardless of action
'logtraffic=all' logs both permitted and denied sessions.
Quick Answer
The correct answer is that logtraffic=all means all traffic matching the policy will be logged, regardless of action. This is because the FortiGate firewall records every packet belonging to a session that hits this policy, whether the action is set to accept or deny, ensuring a complete audit trail for every connection attempt. On the Fortinet NSE 4 Network Security Professional exam, this setting tests your understanding of logging granularity—a common trap is confusing logtraffic=all with logtraffic=utm, which only logs traffic processed by UTM profiles, or with logtraffic=disable, which logs nothing. The exam often presents a policy output and asks you to interpret the logging behavior, so remember that "all" means no exceptions: every single matching session is recorded. A useful memory tip is to think of "all" as "always log everything"—if you see logtraffic=all, the firewall is writing a log entry for every packet in every matching session, no matter what action the policy takes.
NSE4 Firewall Policies and NAT Practice Question
This NSE4 practice question tests your understanding of firewall policies and nat. 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.
You execute 'get firewall policy 5' and see the following output: policyid=5 name="test" status=enable schedule="always" logtraffic=all What does 'logtraffic=all' mean?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"always"Why it matters: Absolute qualifier. An answer using 'always' is only correct if there are genuinely no exceptions — absolute statements are often wrong in networking.
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
All traffic matching the policy will be logged, regardless of action
Option D is correct because 'logtraffic=all' in FortiGate firewall policy configuration means that every packet belonging to a session matching this policy will be logged, regardless of whether the action is accept or deny. This is distinct from other log settings like 'logtraffic=utm' or 'logtraffic=disable', and it ensures full audit trail for all traffic handled by the policy.
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.
- ✗
Only the first packet of each session will be logged
Why it's wrong here
That would be 'logtraffic=utm' or similar.
- ✗
Only traffic that triggers a security profile will be logged
Why it's wrong here
That is not what 'all' indicates.
- ✗
Only traffic that is denied by the policy will be logged
Why it's wrong here
'all' includes both allowed and denied.
- ✓
All traffic matching the policy will be logged, regardless of action
Why this is correct
'logtraffic=all' logs both permitted and denied sessions.
Clue confirmation
The clue word "always" in the question point toward this answer.
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 often confuse 'logtraffic=all' with 'logtraffic=session-start' or think it only logs denied traffic, but FortiGate's granular log options require precise understanding of each keyword's behavior.
Trap categories for this question
Similar concept trap
That would be 'logtraffic=utm' or similar.
Detailed technical explanation
How to think about this question
When 'logtraffic=all' is set, FortiGate generates a log entry for every packet in the session, which can generate a very large volume of logs. This setting is typically used for troubleshooting or compliance scenarios where complete packet-level audit is required, but it should be used sparingly to avoid overwhelming the log storage or impacting performance. The log includes details such as source/destination IP, port, protocol, and timestamp for each packet.
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 security administrator must allow nursing staff to reach a patient records server while blocking access from the guest Wi-Fi VLAN. After applying an extended ACL, traffic is still blocked from nursing workstations. The ACL was applied outbound instead of inbound on the wrong interface. Questions like this test ACL direction and placement 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.
- →
Firewall Policies and NAT — study guide chapter
Learn the concepts, then practise the questions
- →
Firewall Policies and NAT practice questions
Targeted practice on this topic area only
- →
All NSE4 questions
1,000 questions across all exam domains
- →
Fortinet NSE 4 Network Security Professional NSE4 study guide
Full concept coverage aligned to exam objectives
- →
NSE4 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related NSE4 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
System and Network Administration practice questions
Practise NSE4 questions linked to System and Network Administration.
Firewall Policies and NAT practice questions
Practise NSE4 questions linked to Firewall Policies and NAT.
Authentication and VPN practice questions
Practise NSE4 questions linked to Authentication and VPN.
Security Profiles practice questions
Practise NSE4 questions linked to Security Profiles.
High Availability and Diagnostics practice questions
Practise NSE4 questions linked to High Availability and Diagnostics.
NSE4 fundamentals practice questions
Practise NSE4 questions linked to NSE4 fundamentals.
NSE4 scenario practice questions
Practise NSE4 questions linked to NSE4 scenario.
NSE4 troubleshooting practice questions
Practise NSE4 questions linked to NSE4 troubleshooting.
Practice this exam
Start a free NSE4 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 NSE4 question test?
Firewall Policies and NAT — This question tests Firewall Policies and NAT — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: All traffic matching the policy will be logged, regardless of action — Option D is correct because 'logtraffic=all' in FortiGate firewall policy configuration means that every packet belonging to a session matching this policy will be logged, regardless of whether the action is accept or deny. This is distinct from other log settings like 'logtraffic=utm' or 'logtraffic=disable', and it ensures full audit trail for all traffic handled by the policy.
What should I do if I get this NSE4 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: "always". Absolute qualifier. An answer using 'always' is only correct if there are genuinely no exceptions — absolute statements are often wrong in networking.
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 NSE4 practice questions
- Drag and drop the steps to capture traffic on a FortiGate interface using the CLI into the correct order.
- Drag and drop the steps to configure HA (High Availability) on a FortiGate pair into the correct order.
- Drag and drop the steps to perform a factory reset on FortiGate via CLI into the correct order.
- Refer to the exhibit. A network administrator configured an IPsec VPN between the main office and a branch office. Remot…
- Given the exhibit, a user in the internal network tries to SSH to a public server (203.0.113.10). What will happen and w…
- An administrator is configuring web filtering on a FortiGate. Which TWO statements about web filtering profiles are corr…
Last reviewed: Jun 24, 2026
This NSE4 practice question is part of Courseiva's free Fortinet 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 NSE4 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.