An engineer tests RESTCONF against a Catalyst 9300 with a JSON-encoded client. Which four conclusions about the responses are valid? (Choose four.)
Choose 4 answers
Show the answer
Correct answersA. A 201 Created on a POST means the new resource was created in the configuration datastore.C. A 401 Unauthorized means the credentials were missing or not accepted.D. A 409 Conflict on a POST can mean the target resource already exists.E. A 204 No Content on a PUT or DELETE means the request succeeded and the body is intentionally empty.
AWhy this is right: 201 Created is the RESTCONF success code when a POST creates a new data resource.
BWhy not this: 200 OK on a GET returns the requested data in the body immediately; nothing is queued.
CWhy this is right: 401 Unauthorized indicates authentication failed or was absent, not a data problem.
DWhy this is right: 409 Conflict is returned when a create collides with existing data or the datastore state.
EWhy this is right: 204 No Content signals success with no response body, common for PUT and DELETE.
FWhy not this: Malformed request content returns 400 Bad Request; 500 reports an error on the server side.
RESTCONF returns 201 for a created resource, 204 for success with no body, 409 for conflicts such as duplicate data, and 401 for failed authentication. 200 on a GET means the data is already in the payload, not queued for later. Malformed JSON from the client returns 400 Bad Request, not 500.