mediumMultiple ChoiceObjective-mapped
200-901 Practice Question: Refer to the exhibit
Exhibit
---
- name: Configure VLAN
hosts: switches
tasks:
- name: Create VLAN 10
cisco.ios.ios_vlan:
vlan_id: 10
name: voice
state: presentRefer to the exhibit. What will be the result of running this Ansible playbook against the 'switches' group?
⚠ Common exam trap
Cisco often tests the misconception that `state: merged` only modifies existing objects, but in reality, it also creates objects that do not exist, leading candidates to incorrectly choose 'modify' or 'show only' options.
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
✓
VLAN 10 will be created if it does not already exist
The playbook uses the `cisco.ios.ios_vlans` module with `state: merged`. In Ansible's `ios_vlans` module, the `merged` state ensures the VLAN configuration is present on the device. If VLAN 10 does not exist, it will be created with the specified parameters (`vlan_id 10` and `name 'voice'`). The `merged` state does not delete VLANs; it only adds or updates to match the desired state. Therefore, VLAN 10 will be created if it does not already exist.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
VLAN 10 will be deleted
Why it's wrong here
Deletion requires 'state: absent'.
- ✗
VLAN 10 will be modified to have the name 'voice'
Why it's wrong here
Modification will happen if VLAN exists, but the primary action is creation; the wording 'will be modified' is not the best description for a 'present' state.
- ✗
The playbook will only show the running configuration of VLAN 10
Why it's wrong here
The task does not include any show command; it directly configures the device.
- ✓
VLAN 10 will be created if it does not already exist
Why this is correct
The 'state: present' parameter ensures the VLAN is present; Ansible will create it if missing.
Visual reference
Go deeper
Related to this question
About these practice questions
This 200-901 question is part of Courseiva's 989-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.