300-435 exam dumps

300-435 practice question 91 of 322

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

300-435 Question 91

Single answer

You are tasked with configuring an IOS XE device using Ansible to apply a new interface configuration. The playbook must ensure idempotency and verify the configuration after applying it. Which Ansible module should you use to achieve this?

  1. A

    ios_config

  2. B

    ios_command

  3. C

    ios_facts

  4. D

    ios_template

Show answer and explanation

Correct answer: A

Explanation

The ios_config module is the appropriate choice for configuring IOS XE devices using Ansible when idempotency and configuration verification are required. It allows you to define configuration changes declaratively and ensures they are applied only if the device's current state does not match the desired state.

  • A. Correct.

    The ios_config module is designed specifically for managing configurations on IOS devices. It ensures idempotency by only applying configurations that differ from the current device state.

  • B. Incorrect.

    The ios_command module is used for running operational commands on IOS devices but does not apply configurations or enforce idempotency.

  • C. Incorrect.

    The ios_facts module is used to gather information about the IOS device, such as software version and hardware details, but cannot manage configurations.

  • D. Incorrect.

    The ios_template module allows for the use of Jinja2 templates for configuration, but it does not inherently ensure idempotency or verify the configuration post-application.

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