mediumMultiple ChoiceObjective-mapped
200-901 Practice Question: Refer to the exhibit
Exhibit
interface GigabitEthernet0/0 description Uplink to Core ip address 192.168.1.1 255.255.255.0 no shutdown
Refer to the exhibit. A developer is writing an Ansible playbook to configure this interface on a Cisco IOS XE device. Which Ansible module should be used to set the IP address?
⚠ Common exam trap
Cisco often tests the distinction between configuration modules (`ios_config`) and operational modules (`ios_command`, `ios_facts`), leading candidates to mistakenly choose `ios_command` because they think it can send configuration commands via the CLI.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
ios_config
The `ios_config` module is the correct choice because it allows you to push raw configuration lines to Cisco IOS XE devices, including interface IP address configuration. It directly sends the `ip address` command under the interface context, which is the standard method for setting an IP address on an IOS XE interface. Other modules either lack the ability to set IP addresses or are designed for different purposes.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
ios_ip_interface
Why it's wrong here
This module does not exist in Ansible; ios_config is used.
- ✗
ios_command
Why it's wrong here
ios_command is for executing show commands, not configuration.
- ✗
ios_facts
Why it's wrong here
ios_facts gathers device information, does not configure.
- ✓
ios_config
Why this is correct
ios_config allows sending configuration commands like 'ip address'.
Go deeper
Related to this question
About these practice questions
One of 989 original 200-901 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.