350-501 practice question 8 of 35
Which module refers to the network automation using Ansible?
Full set: 549 questionsDomain Architecture
The iosxrcommand module, part of the cisco.iosxr Ansible collection, is specifically designed to execute arbitrary CLI commands on remote devices running Cisco IOS XR. This module is essential for automation tasks where a dedicated, idempotent module does not exist for a specific configuration or operational command. It allows administrators to run commands like show version or show running-config and capture the output for verification, troubleshooting, or reporting within an Ansible playbook, making it a versatile tool for network automation.
A. The iosxrsystem module manages global system settings like hostname and domain name. Fact collection is primarily handled by the iosxrfacts module.
B. The iosxruser module is used to manage user accounts and their properties (e.g., password, roles), not for configuring system banners. The iosxrbanner module manages banners.
C. The iosxrlogging module configures logging parameters. The description of "seventy levels 2 to 5" is nonsensical; logging levels are standardized (0-7), and the module name has a typo (losxr).
1. Ansible Documentation for Cisco IOS XR Modules. The official documentation for the cisco.iosxr.iosxrcommand module explicitly states its purpose: "Run commands on remote devices running Cisco IOSXR." This directly validates the correct answer.
Source: Ansible Documentation
cisco.iosxr.iosxrcommandmodule. (Accessed via docs.ansible.com)
2. Cisco IOS XR Programmability Configuration Guide. This official Cisco guide details the use of Ansible for managing IOS XR devices. It describes the iosxrcommand module as the method for sending CLI commands to the device.
Source: Cisco IOS XR Programmability Configuration Guide
Release 7.3.x
Chapter: "Using Ansible"
Section: "Ansible for Cisco IOS XR Software Modules".
3. Ansible Documentation for Incorrect Modules. The official Ansible documentation confirms the incorrectness of the other options by defining the specific functions of their respective modules:
cisco.iosxr.iosxrsystem: "Manages system attributes on Cisco IOSXR devices."
cisco.iosxr.iosxruser: "Manages user accounts on Cisco IOSXR devices."
cisco.iosxr.iosxrbanner: "Manage multiline banners on Cisco IOSXR devices."
Source: Ansible Documentation
cisco.iosxr collection. (Accessed via docs.ansible.com)
Keep practicing
Take the free 350-501 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 350-501 practice questions
- Question 1Egress PE NAT is being used via a single centralized router to provide Internet access to…
- Question 2Which control plane protocol is used between Cisco SD-WAN routers and vSmart controllers?
- Question 3An engineer implemented LDP protocol on the ISP network. The engineer must ensure that th…
- Question 4Which two tasks must you perform when you implement LDP NSF on your network? (Choose two.)
- Question 9Which feature describes the adjacency SID?
- Question 12Which statement describes the advantage of a Multi-Layer control plane?
