nerdexam
CiscoCisco

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.

Device-Level Network Automation

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_command module 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_config module is used for pushing raw configuration blocks to the device, which, like ios_command, is less structured and idempotent for managing specific interface properties compared to ios_l3_interfaces.
  • D. The ios_vrf module 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

#Ansible Modules#IOS XE Configuration#Interface Management#Network Automation

Community Discussion

No community discussion yet for this question.

Full 300-435 PracticeBrowse All 300-435 Questions