Which two can be used to create and apply an export policy that advertises static routes to RIP neighbors? (Choose two)
A.
set protocols rip export demo
B.
edit policy-options policy-statement demo set term 1 from protocol static set term 1 then accept
C.
edit policy-options policy-statement demo set term 1 from protocol static
D.
set policy-options policy-statement demo
Answers are A & D
A & B
Option B should be 3 lines though for easier read
edit policy-options policy-statement demo
set term 1 from protocol static
set term 1 then accept
set protocols rip export demo
# Line D will not be accepted and will ask you for a term
I also would say A & D. This because option B and C are single lined and would not work in Junos.
Also the question is “Which two can be used…” so it doesn’t mean that the policy should complete. So “I can use option D, I need to finish it, but it can be used”