hardMultiple ChoiceObjective-mapped
200-901 Practice Question: A Python script using ncclient to configure a…
Exhibit
Refer to the exhibit.
from ncclient import manager
with manager.connect(
host="10.0.0.1",
port=830,
username="admin",
password="secret",
hostkey_verify=False
) as m:
config = '''
<config>
<native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
<hostname>NewRouter</hostname>
</native>
</config>'''
m.edit_config(target="running", config=config)A Python script using ncclient to configure a Cisco IOS XE device fails with an error that the capability 'urn:ietf:params:xml:ns:netconf:base:1.0' is missing. What is the most likely cause?
⚠ Common exam trap
Cisco often tests the distinction between authentication/SSH errors and NETCONF capability negotiation errors, trapping candidates who confuse a missing capability with a credential or transport issue.
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 device does not have NETCONF enabled
The error indicates that the NETCONF base capability (urn:ietf:params:xml:ns:netconf:base:1.0) is not advertised by the device. This capability is mandatory for any NETCONF server; its absence means the device is not running a NETCONF server or NETCONF is not enabled. On Cisco IOS XE, NETCONF must be explicitly enabled via the 'netconf-yang' feature, and the error occurs when the ncclient client attempts to establish a session but the device does not respond with the required capability.
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 device does not have NETCONF enabled
Why this is correct
If NETCONF is not enabled on the device, it will not advertise the required capabilities.
- ✗
The username or password is incorrect
Why it's wrong here
Incorrect credentials would cause an authentication error, not a capability error.
- ✗
The edit-config operation should be on candidate instead of running
Why it's wrong here
Target datastore selection would cause a different error, not a missing capability.
- ✗
The host key verification is disabled incorrectly
Why it's wrong here
Disabling host key verification is fine; it does not affect capability negotiation.
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.