350-501 practice question 8 of 35

Which module refers to the network automation using Ansible?

Full set: 549 questions

Domain Architecture

Answer options
A:

A. the iosxr_system module to collect facts from remote devices

B:

B. the iosxr_user module to manage banners for users in the local database

C:

C. the losxr_logging module to run debugging for seventy levels 2 to 5

D:

D. the iosxr_command module to issue run commands on remote devices

Correct answer
Correct Answer:
D. D. the iosxr_command module to issue run commands on remote devices
Explanation

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.

Why Incorrect

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).

References

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)

Scroll to Top