350-401 · Question #1310
Refer to the exhibit. An engineer is creating a Python script to fetch the BGP configuration from a device using RESTCONF. What does the output indicate?
The correct answer is D. The BGP data resource identifier in the URI is incorrect.. Explanation Option D is correct because when a RESTCONF GET request returns an HTTP 400 Bad Request response, it specifically indicates that the URI (Uniform Resource Identifier) used in the request is malformed or contains an incorrect resource identifier - in this case, the BGP
Question
Refer to the exhibit. An engineer is creating a Python script to fetch the BGP configuration from a device using RESTCONF. What does the output indicate?
Exhibits
Options
- AThe HTTPS connection to the device could not be established.
- BRESTCONF is not enabled on the device.
- CThere is no BGP process running on the device.
- DThe BGP data resource identifier in the URI is incorrect.
How the community answered
(62 responses)- A11% (7)
- B3% (2)
- C5% (3)
- D81% (50)
Explanation
Explanation
Option D is correct because when a RESTCONF GET request returns an HTTP 400 Bad Request response, it specifically indicates that the URI (Uniform Resource Identifier) used in the request is malformed or contains an incorrect resource identifier - in this case, the BGP data model path or module name is likely misspelled or referencing a non-existent YANG node.
- Option A is wrong because a failed HTTPS connection would produce a connection error or timeout exception in Python, not an HTTP 400 status code.
- Option B is wrong because if RESTCONF were disabled entirely, the engineer would receive an HTTP 404 or a connection refused error, not a 400.
- Option C is wrong because the absence of a BGP process would return an HTTP 404 Not Found (resource not found), not a 400 error.
Memory Tip: Think of HTTP status codes in groups - 4xx = client-side errors. Specifically, 400 = "you asked wrong" (bad URI/syntax), 404 = "doesn't exist" (no BGP process or RESTCONF disabled). If your request itself is malformed, you get 400; if the resource simply isn't there, you get 404.
Topics
Community Discussion
No community discussion yet for this question.

