JNCIA-DevOps: Juniper Networks Certified Associate – Automation and DevOps — Question 13
You need to retrieve the last_reboot_reason value from a Junos device.
Which Ansible Galaxy library module is used to accomplish this task?
Answer options
- A. juniper_junos_rpc
- B. juniper_junos_config
- C. juniper_junos_command
- D. juniper_junos_facts
Correct answer: B
Explanation
The correct answer is B, juniper_junos_config, as it is specifically designed to manage and gather configuration data from Junos devices, including retrieving the last_reboot_reason. The other options do not focus on configuration management; juniper_junos_rpc is for RPC calls, juniper_junos_command is for executing commands, and juniper_junos_facts is for gathering facts but not specific configuration data.