200-901 Infrastructure and Automation Practice Question
An engineer is automating the configuration of SNMP on Cisco routers using Ansible. Which two modules are commonly used for this purpose? (Select TWO)
⚠ Common exam trap
Cisco often tests the distinction between general-purpose modules like ios_config and purpose-built modules like ios_snmp_server, expecting candidates to recognize that both can configure SNMP but the dedicated module is more appropriate for structured automation.
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
✓
cisco.ios.ios_config
The cisco.ios.ios_config module is correct because it allows you to push raw CLI configuration lines to Cisco IOS devices, including SNMP-related commands like 'snmp-server community' or 'snmp-server host'. The cisco.ios.ios_snmp_server module is correct because it is a dedicated Ansible module that provides structured, idempotent management of SNMP server settings (e.g., communities, hosts, traps) without requiring raw CLI lines.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
cisco.ios.ios_interface
Why it's wrong here
ios_interface configures Layer 2/3 interface parameters such as IP addresses and VLANs, not SNMP community strings, traps or contact details. It tempts because it is a core cisco.ios module, but ios_config with snmp-server lines or ios_snmp_server is required here.
- ✓
cisco.ios.ios_config
Why this is correct
The cisco.ios.ios_config module pushes arbitrary configuration lines, including SNMP commands such as snmp-server community and snmp-server host, to Cisco IOS devices. It satisfies the automation constraint by applying raw CLI snippets idempotently over SSH, letting Ansible configure SNMP without a dedicated SNMP-specific module.
- ✓
cisco.ios.ios_snmp_server
Why this is correct
The cisco.ios.ios_snmp_server module manages SNMP server configuration on IOS devices, satisfying the stem's Cisco router constraint. It provides declarative parameters for communities, hosts, and trap sources, letting Ansible push idempotent SNMP settings without raw CLI commands. This makes it a standard choice alongside cisco.ios.ios_config.
- ✗
cisco.ios.ios_command
Why it's wrong here
ios_command runs arbitrary show commands and returns output for parsing; it makes no configuration changes, so it cannot set SNMP parameters. It tempts because it verifies SNMP state after configuration, but the task requires ios_snmp_server or ios_config to apply settings.
- ✗
cisco.ios.ios_banner
Why it's wrong here
ios_banner manages login, MOTD and exec banner text on Cisco IOS devices, unrelated to SNMP community strings, trap hosts or system contact. It tempts as a familiar cisco.ios module, yet SNMP configuration needs ios_snmp_server or ios_config with snmp-server commands.
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.