JNCIS-DevOps: Juniper Networks Certified Specialist – DevOps — Question 17

A customer has a control machine with a default Ansible installation. During execution of an Ansible module against a Junos device, the Ansible control machine generates the error. msg: unable to connect to router1.example.com: ConnectRefusedError (router1.example.com)
What is the cause for this error?

Answer options

Correct answer: B

Explanation

The correct answer is B because the error indicates that the connection attempt through NETCONF was unsuccessful. Option A is incorrect as the /etc/hosts file is not typically required for NETCONF connections, option C is wrong because the inventory file does not affect NETCONF connectivity directly, and option D is not valid since the error does not relate to authentication issues.