350-601 Automation Practice Question
Exhibit
Refer to the exhibit. interface Eth1/1 description Server-Connection switchport mode access switchport access vlan 100 spanning-tree port type edge no shutdown interface Eth1/2 description Trunk-to-Core switchport mode trunk switchport trunk allowed vlan 10,20,30 spanning-tree port type network no shutdown
Refer to the exhibit. An automation script is used to configure a new VLAN 40 on Eth1/2 trunk. The script sends the following NX-API command: 'switchport trunk allowed vlan add 40'. After execution, the engineer runs 'show running-config interface eth1/2' and sees that the trunk allowed VLAN list shows '10,20,30'. The automation script logs indicate success for adding VLAN 40, but the running config does not show the change. What is the most likely issue?
⚠ Common exam trap
Cisco often tests the candidate's ability to distinguish between a command that fails silently versus a command that succeeds but the result is not visible due to environmental factors (e.g., wrong device, configuration rollback), rather than a syntax or interface error.
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 engineer is viewing a different switch or the configuration was reverted by another process.
The running config output shows that VLAN 40 is not included in the allowed list (10,20,30), indicating the command did not take effect on this device. The script logs showing success suggest the command was executed successfully on some device, but likely not the one the engineer is viewing. This could be due to a configuration rollback or the engineer viewing a different switch. Therefore, option B is correct.
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 command syntax is incorrect; 'add' is not a valid keyword.
Why it's wrong here
The 'add' keyword is valid in NX-OS for adding VLANs to a trunk allowed list; syntax is not the issue.
- ✓
The engineer is viewing a different switch or the configuration was reverted by another process.
Why this is correct
If the script succeeded but the running config on the inspected device lacks the change, the most likely cause is that the engineer is viewing a different switch or the configuration was reverted after the script completed.
- ✗
The script actually removed the existing VLANs and replaced them with only VLAN 40.
Why it's wrong here
The 'add' keyword appends VLANs to the existing allowed list; it does not remove or replace current VLANs.
- ✗
The NX-API command was sent to the wrong interface.
Why it's wrong here
While sending the command to the wrong interface is possible, the script would still have applied the change to the specified interface. However, the logs indicate success, and the engineer is checking the specific interface Eth1/2; if the interface is correct, a mismatch between expected and actual result points to a device-level discrepancy rather than an interface misconfiguration.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every 350-601 question from scratch — 984 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 350-601 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 350-601 exam.