NSE7 Advanced Threat Protection Practice Question
A FortiGate administrator wants to use automation stitches to respond to a detected threat. The trigger is 'event' and the action is to quarantine the source IP. Which TWO actions can be used in FortiGate automation stitches to achieve IP quarantine?
⚠ Common exam trap
Watch out — candidates often think only the 'diagnose user quarantine add' command is valid for IP quarantine, overlooking that creating a firewall address object and policy is also a supported and effective method in FortiGate automation stitches.
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
✓
CLI script that runs 'diagnose user quarantine add'
The 'diagnose user quarantine add' command is the native FortiGate CLI command to add an IP address to the quarantine list, which is a valid action in an automation stitch. Option C is also correct because executing a CLI script that creates a firewall address object and a corresponding policy to block the IP effectively achieves IP quarantine by preventing traffic from that source, which is a common alternative method.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Send an email to the administrator
Why it's wrong here
Email notification does not quarantine.
- ✓
CLI script that runs 'diagnose user quarantine add'
Why this is correct
This command adds an IP to the quarantine list.
- ✓
Execute a CLI script that adds a firewall address object and policy to block the IP
Why this is correct
This is a valid method to quarantine via automation.
- ✗
Use the 'execute fortishield' command in a CLI script
Why it's wrong here
FortiShield is not related to IP quarantine.
- ✗
Log the event to FortiAnalyzer
Why it's wrong here
Logging does not quarantine.
Go deeper
Related to this question
About these practice questions
Courseiva writes every NSE7 question from scratch — 940 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This NSE7 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 NSE7 exam.