JNCIS-DevOps: Juniper Networks Certified Specialist – DevOps — Question 19
In SLAX, what is the difference between the jcs:invoke () and the jcs:execute () functions?
Answer options
- A. RPCs called by jcs:execute () are executed within an existing connection
- B. RPCs called by jcs:invoke () are executed within an existing connection
- C. RPCs called by jcs:invoke () are not executed until the conclusion of the script
- D. RPCs called by jcs:execute () are not executed until the conclusion of the script
Correct answer: A
Explanation
The correct answer is A because jcs:execute() runs remote procedure calls (RPCs) within the context of the current active connection. In contrast, jcs:invoke() is designed to queue RPCs, which means they do not execute immediately and will wait until the script has finished running, making options B, C, and D incorrect.