Courseiva
easyMultiple Choice

200-901 Practice Question: A developer is writing a Python script to…

A developer is writing a Python script to interact with a Cisco device using RESTCONF. The script sends a PUT request to modify an interface configuration. Which HTTP response code indicates that the resource was successfully created?

⚠ Common exam trap

Cisco often tests the subtle difference between 200 OK (successful operation with response body) and 201 Created (successful creation of a new resource), leading candidates to mistakenly choose 200 OK when the question explicitly asks about resource creation.

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

In RESTCONF, a successful PUT request that creates a new resource returns HTTP 201 Created. This aligns with RFC 8040, where PUT can be used for both creation and replacement; the 201 response specifically indicates the resource did not exist before and was created by the request.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    404 Not Found

    Why it's wrong here

    404 Not Found reports that the target URI does not exist, so the configuration was not applied at all. It is tempting when a request references an incorrect path, but here the resource was created successfully, which RESTCONF reports with 201 Created.

  • ✓

    201 Created

    Why this is correct

    A 201 Created response confirms the PUT resulted in a new resource, and RESTCONF returns it when the target datastore node did not previously exist. This satisfies the stem's requirement for the code signalling successful resource creation rather than mere modification.

  • ✗

    200 OK

    Why it's wrong here

    200 OK reports success for an existing resource being replaced or returned, not creation of a new one; RESTCONF returns 201 Created when PUT instantiates a previously absent resource. 200 is correct when PUT updates an already-existing interface configuration.

  • ✗

    204 No Content

    Why it's wrong here

    204 No Content confirms success but signals that no body is returned; it is the standard response when a PUT updates an existing resource without creating one. It is tempting because it does indicate success, yet creation is signalled by 201 Created instead.

About these practice questions

This 200-901 question is part of Courseiva's 975-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.