mediumMultiple ChoiceObjective-mapped
350-401 Practice Question: Is automating the configuration of a new VLAN on…
A network engineer is automating the configuration of a new VLAN on a Cisco Catalyst 9000 switch using RESTCONF. The engineer sends a PUT request to the URI 'https://switch/restconf/data/Cisco-IOS-XE-native:Native/VlanList' with a JSON payload containing the VLAN details. The switch responds with a 405 Method Not Allowed error. What is the most likely cause of this 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 should have used the POST method instead of PUT to create a new list entry.
The PUT method is typically used to create or replace a resource, but for list entries in RESTCONF, the POST method is used to add a new entry. The 405 error indicates that the method is not allowed for the specified URI. The engineer should use POST to add a new VLAN entry to the list. The URI originally referenced the NX-OS device model, but the Catalyst 9000 runs IOS-XE, so the correct URI uses 'Cisco-IOS-XE-native'.
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 engineer used the wrong URI; the correct URI should include a specific VLAN ID.
Why it's wrong here
Incorrect because the URI for creating a new list entry does not require a specific ID; the POST method is used to add an entry to the list.
- ✓
The engineer should have used the POST method instead of PUT to create a new list entry.
Why this is correct
Correct because RESTCONF uses POST to create a new resource in a list, while PUT is used to replace an existing resource.
- ✗
The payload format is incorrect; the engineer must use XML instead of JSON.
Why it's wrong here
Incorrect because RESTCONF supports both JSON and XML; the format is not the cause of a 405 error.
- ✗
The switch does not support RESTCONF for VLAN configuration; NETCONF must be used instead.
Why it's wrong here
Incorrect because Cisco Catalyst 9000 switches support RESTCONF for VLAN configuration; the error is method-related.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every 350-401 question from scratch — 1,175 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-401 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-401 exam.