mediumMultiple ChoiceObjective-mapped
350-401 Practice Question: Is using the Cisco IOS-XE REST API to configure a…
A network engineer is using the Cisco IOS-XE REST API to configure a static route. The engineer sends a PATCH request to 'https://device/restconf/data/Cisco-IOS-XE-native:native/ip/route/ip-route-interface-forwarding-list=192.168.1.0,255.255.255.0,GigabitEthernet1' with a JSON payload containing the route details. The device responds with a 204 No Content status. What does this response indicate?
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 request was successful, and the static route has been configured.
A 204 No Content response indicates that the request was successful, but there is no content to return. In RESTCONF, a successful PATCH request that updates an existing resource typically returns 204 No Content. The engineer should verify that the route was applied by retrieving the configuration.
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 request was successful, and the static route has been configured.
Why this is correct
Correct because 204 No Content indicates success with no response body; the route is configured.
- ✗
The request failed because the route already exists; the engineer must use PUT instead.
Why it's wrong here
Incorrect because 204 indicates success, not failure; a conflict would return 409.
- ✗
The device does not support PATCH; the engineer must use POST to update the route.
Why it's wrong here
Incorrect because PATCH is supported for partial updates; 204 indicates success.
- ✗
The payload was empty; the engineer must include the route parameters in the body.
Why it's wrong here
Incorrect because if the payload were empty, the request would likely fail with a 400 error.
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.