300-435 exam dumps

300-435 practice question 90 of 322

Automating Cisco Enterprise Solutions. Professional level, Cisco. Free question with the correct answer and a full explanation.

300-435 Question 90

Single answer

You are tasked with automating the configuration of an IOS XE device using Ansible. You have written a playbook that uses the 'ios_config' module to deploy new interface configurations. However, upon execution, the playbook fails with the error: 'Authentication failed'. Which step should you take to resolve this issue?

  1. A

    Verify that the correct username and password are specified in the Ansible inventory file or playbook.

  2. B

    Ensure that the 'gather_facts' option is set to 'yes' in the playbook.

  3. C

    Check if the Ansible control node can successfully ping the IOS XE device.

  4. D

    Enable NETCONF/YANG on the IOS XE device as it is required for Ansible to work.

Show answer and explanation

Correct answer: A

Explanation

The error 'Authentication failed' directly points to an issue with the credentials provided to Ansible. The correct action is to verify and correct the username and password in your inventory or playbook. Other options, such as enabling NETCONF/YANG or ensuring connectivity, are unrelated to this specific issue.

  • A. Correct.

    The error 'Authentication failed' indicates an issue with the credentials used to connect to the device. Verifying and correcting the username and password in the inventory file or playbook is the appropriate step.

  • B. Incorrect.

    The 'gather_facts' option is used to collect device facts for Ansible playbooks, but it is unrelated to authentication issues. This would not resolve the error.

  • C. Incorrect.

    While ensuring connectivity like pinging the device is important, the error specifically states 'Authentication failed', which is unrelated to basic network connectivity.

  • D. Incorrect.

    Ansible does not require NETCONF/YANG for communicating with IOS XE devices when using the 'ios_config' module. This is not relevant to resolving the authentication issue.

Timed practice exam

Take a 300-435 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam