350-901 · Question #81
350-901 Question #81: Real Exam Question with Answer & Explanation
This question tests knowledge of the correct Ansible parameter name used to configure DNS name servers on a Cisco IOS device using the ios_system module. The key distinction is between the valid Ansible parameter and a distractor term.
Question
Drag and drop the code from the bottom onto the box where the code is missing on the Ansible task to configure DNS on an IOS device. Not all options are used. The available options to drag are `name-server` and `dns-address`.
Explanation
This question tests knowledge of the correct Ansible parameter name used to configure DNS name servers on a Cisco IOS device using the ios_system module. The key distinction is between the valid Ansible parameter and a distractor term.
Approach. The correct option to drag is name-server. When configuring DNS on a Cisco IOS device via Ansible, the cisco.ios.ios_system module uses a parameter that maps directly to the IOS CLI command ip name-server <address>. In the Ansible task YAML, this appears as name_servers (or hyphenated as name-server in some module representations), which accepts a list of DNS server IP addresses. The term dns-address is not a valid parameter in any standard Ansible IOS module - it is a distractor with no functional mapping to IOS DNS configuration.
Concept tested. Ansible network automation for Cisco IOS - specifically, the correct parameter name within the cisco.ios.ios_system module used to define DNS name servers, and its relationship to the underlying IOS CLI command ip name-server.
Reference. Ansible documentation: cisco.ios.ios_system module - name_servers parameter; Cisco IOS CLI: ip name-server global configuration command.
Topics
Community Discussion
No community discussion yet for this question.