Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Fortinet NSE7_SOC_AR-7.6 Exam - Topic 4 Question 3 Discussion

Actual exam question for Fortinet's NSE7_SOC_AR-7.6 exam
Question #: 3
Topic #: 4
[All NSE7_SOC_AR-7.6 Questions]

You are trying to create a playbook that creates a manual task showing a list of public IPv6 addresses. You were successful in extracting all IP addresses from a previous action into a variable called ip_list, which contains both private and public IPv4 and IPv6 addresses. You must now filter the results to display only public IPv6 addresses. Which two Jinja expressions can accomplish this task? (Choose two answers)

Show Suggested Answer Hide Answer
Suggested Answer: B, D

Comprehensive and Detailed Explanation From FortiSOAR 7.6., FortiSIEM 7.3 Exact Extract study guide:

In FortiSOAR 7.6, the playbook engine utilizes the powerful ipaddr family of Jinja filters (derived from the Ansible netaddr library) to manipulate network data. To isolate public IPv6 addresses from a mixed list, the order of operations in the filter chain ensures the correct data is extracted:

Double Filtering Sequence (B): In the expression {{ vars.ip_list | ipaddr('public') | ipv6 }}, the first filter ipaddr('public') processes the entire list and retains only public addresses, including both IPv4 and IPv6 versions. The second filter in the pipe, | ipv6, then takes that subset of public addresses and filters them again to keep only those that conform to the IPv6 standard. The final result is a list containing only public IPv6 addresses.

Why other options are incorrect:

A (ipv6addr 'public'): While ipv6addr is a valid filter in many Ansible environments, FortiSOAR's standard documentation for manual task creation and data manipulation primarily emphasizes the use of the generic ipaddr filter with specific flags or chained version filters (like | ipv6) to ensure cross-compatibility with the underlying Python libraries used by the SOAR engine.

C (!private syntax): The ipaddr filter utilizes specific keywords for classification. While 'not private' is the logical requirement, the filter expects positive assertions such as 'public', 'private', or 'multicast'. The !private syntax is not a supported or documented operator for this filter within the Fortinet SOC ecosystem.


Contribute your Thoughts:

0/2000 characters
Royal
3 days ago
Pretty sure A is the only correct one here.
upvoted 0 times
...
Gianna
9 days ago
Wow, I didn't know filtering could be this tricky!
upvoted 0 times
...
Stefan
14 days ago
C is definitely not it, it filters out private but doesn't specify public.
upvoted 0 times
...
Kimbery
19 days ago
I think B could work too, but not sure.
upvoted 0 times
...
Ligia
24 days ago
A and D are the right choices!
upvoted 0 times
...
Alexia
29 days ago
I thought we could use the 'ipv6addr' filter directly, but now I'm second-guessing if B is the right choice instead.
upvoted 0 times
...
Elouise
1 month ago
I recall that we used Jinja filters for IP addresses, but I'm confused about the order. Could D be correct?
upvoted 0 times
...
Bettina
1 month ago
I'm not entirely sure, but I feel like option A sounds familiar. Didn't we practice something similar in class?
upvoted 0 times
...
Sena
1 month ago
I think I remember that we need to filter out private addresses first, so maybe option C could work?
upvoted 0 times
...

Save Cancel