mediumMultiple Choice
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
No such module exists in the Cisco IOS collection, so the task fails at parse time. The name resembles the real ios_l3_interface module, which is what actually sets IPv4 addresses on IOS XE interfaces; the plausible-sounding naming is the only reason it tempts.
- ✗
ios_command
Why it's wrong here
ios_command runs show commands and returns their output; it cannot change device configuration, so it cannot set an interface IP address. It is tempting because it is the module for gathering facts or verifying state after changes, and would be correct for a read-only task such as confirming the address took effect.
- ✗
ios_facts
Why it's wrong here
ios_facts only gathers read-only device information such as interfaces, hardware and configuration state; it cannot modify an interface. Configuring an IP address requires a declarative configuration module, typically ios_l3_interfaces. Gathering facts would be the right choice when auditing existing device state before generating configuration.
- ✓
ios_config
Why this is correct
The ios_config module pushes raw Cisco IOS XE configuration lines, so it can set an interface IP address by supplying the relevant interface and ip address commands. It satisfies the scenario's requirement to configure a Cisco IOS XE device, unlike declarative modules that manage higher-level intent rather than device-specific CLI.
Go deeper
Related to this question
About these practice questions
One of 975 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.