200-901 Infrastructure and Automation Practice Question
Exhibit
Refer to the exhibit.
---
- name: Configure interface description
hosts: cisco_devices
gather_facts: no
tasks:
- name: Set description
ios_config:
lines:
- description Configured by Ansible
parents: interface GigabitEthernet0/1Refer to the exhibit. An Ansible playbook is intended to set the description on GigabitEthernet0/1. However, the playbook fails because the device does not have that interface. What is the most likely reason?
⚠ Common exam trap
Cisco often tests the distinction between a syntactically correct playbook and a playbook that fails due to device-specific constraints, such as a non-existent interface, to see if candidates confuse configuration syntax errors with device state issues.
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
✓
The specified interface does not exist on the device
The playbook explicitly targets GigabitEthernet0/1 using the `interface` attribute under `lines`, and the error indicates the device does not have that interface. Ansible's ios_config module will fail if the specified interface does not exist on the device, as it cannot apply configuration to a non-existent logical or physical interface.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The module requires gather_facts to be yes
Why it's wrong here
gather_facts is not required for ios_config.
- ✗
The hosts group is incorrect
Why it's wrong here
If hosts were incorrect, the playbook would not run on any device, but the error is likely interface-specific.
- ✗
The lines attribute is misconfigured
Why it's wrong here
The lines syntax is correct for setting description.
- ✓
The specified interface does not exist on the device
Why this is correct
If the interface is not present, the module cannot apply configuration under it.
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.