easyMultiple ChoiceObjective-mapped
200-901 Practice Question: When designing a RESTful API for a network…
When designing a RESTful API for a network automation tool, which status code indicates that a resource has been created successfully?
⚠ Common exam trap
Cisco often tests the distinction between 201 Created and 204 No Content. A common trap is to think that 204 No Content is appropriate for creation if the API returns no body, but the standard HTTP semantics require 201 for successful resource creation. 204 should be used for operations like DELETE that do not return a body.
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
✓
201 Created
(201 Created). According to HTTP semantics and RESTful API best practices, a successful POST request that creates a new resource should return the 201 Created status code. This indicates that the request has been fulfilled and a new resource has been created, often with a Location header pointing to the resource's URI. 204 No Content (option A) is used for successful requests that have no response body, such as DELETE or when an update returns no content, but not for creation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
204 No Content
Why it's wrong here
Incorrect. 204 No Content is used for successful requests that return no body, such as a DELETE operation. It is not the standard status for resource creation.
- ✗
200 OK
Why it's wrong here
Incorrect. 200 OK is used for successful GET requests or other operations that return a body, but not specifically for creation.
- ✓
201 Created
Why this is correct
Correct. 201 Created is the standard HTTP status code for a successful creation of a resource.
- ✗
202 Accepted
Why it's wrong here
Incorrect. 202 Accepted indicates that the request has been accepted for processing but not yet completed, often used for asynchronous operations.
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.