300-435 · Question #108
300-435 Question #108: Real Exam Question with Answer & Explanation
The correct answer is A: ios_l3_interfaces. To automate the removal of IP addresses from loopback interfaces on Cisco IOS XE devices using Ansible, the ios_l3_interfaces module is the correct choice as it manages Layer 3 interface configurations idempotently.
Question
Refer to the exhibit. A network engineer creates an Ansible playbook execution task that automates the removal of unnecessary IP addresses from the loopback interfaces of Cisco IOS XE devices. Which code snippet must be added to the box in the code?
Options
- Aios_l3_interfaces
- Bios_command
- Cios_config
- Dios_vrf
Explanation
To automate the removal of IP addresses from loopback interfaces on Cisco IOS XE devices using Ansible, the ios_l3_interfaces module is the correct choice as it manages Layer 3 interface configurations idempotently.
Common mistakes.
- B. The
ios_commandmodule is used for executing arbitrary CLI commands on the device, which is less idempotent and structured than using a dedicated module for interface configuration. - C. The
ios_configmodule is used for pushing raw configuration blocks to the device, which, likeios_command, is less structured and idempotent for managing specific interface properties compared toios_l3_interfaces. - D. The
ios_vrfmodule is used for managing Virtual Routing and Forwarding (VRF) instances, not for configuring IP addresses on individual interfaces.
Concept tested. Ansible ios_l3_interfaces module
Reference. https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_l3_interfaces_module.html
Topics
Community Discussion
No community discussion yet for this question.