nse8_812 Exam QuestionsBrowse all questions from this exam

nse8_812 Exam - Question 6


Refer to the exhibit.

FortiManager is configured with the Jinja Script under CLI Templates shown in the exhibit.

Which two statements correctly describe the expected behavior when running this template? (Choose two.)

Show Answer
Correct Answer: ACD

The expected behavior when running this template is that the template will work if you change the variable format to the correct Jinja syntax {{ WAN }}. Jinja templates use double curly braces {{ }} to enclose variables, which is the recognized syntax for variable substitution in Jinja. Additionally, the administrator must first manually map the interface for each device with a meta field. The meta fields are used to define specific values or interfaces that the Jinja template will use during execution. Therefore, for the given Jinja template to work properly, it must correctly reference these pre-defined meta fields.

Discussion

6 comments
Sign in to comment
Viewable8041Options: CD
Sep 4, 2023

Has to be C and D. A is not correct, as the mapping is only done by variables and meta fields, not by Interface roles B is not a jinja syntax C could be but jinja should also understand the variable without spaces, so this is my best guess D is correct E is wrong

ama6Options: DE
Sep 4, 2023

D and E are correct D. The administrator must first manually map the interface for each device with a meta field. The Jinja template in the exhibit is expecting a meta field called WAN to be set on the managed FortiGate. This meta field will specify which interface on the FortiGate should be assigned the "WAN" role. If the meta field is not set, then the template will fail. E. The template will fail because this configuration can only be applied with a CLI or TCL script. The Jinja template in the exhibit is trying to configure the interface role on the managed FortiGate. This type of configuration can only be applied with a CLI or TCL script. The Jinja template will fail because it is not a valid CLI or TCL script.

DavidrichardOptions: AD
Sep 3, 2023

A and D seems correct https://docs.fortinet.com/document/fortimanager/7.2.0/new-features/761880/jinja2-template-sample-scripts

ama6Options: DE
Sep 12, 2023

still going with D and E

ac89lOptions: DE
Jan 22, 2024

I will go with DE This script cannot be used as jinja https://docs.fortinet.com/document/fortimanager/7.2.0/new-features/761880/jinja2-template-sample-scripts

node345Options: CD
Feb 28, 2024

C and D are correct.