Courseiva
easyMultiple ChoiceObjective-mapped

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 indicates the resource does not exist on the server.

  • 201 Created

    Why this is correct

    201 Created indicates the resource was successfully created.

  • 200 OK

    Why it's wrong here

    200 OK is used for successful GET requests, not for creation.

  • 204 No Content

    Why it's wrong here

    204 No Content is used when the server successfully processes the request but returns no content.

About these practice questions

This 200-901 question is part of Courseiva's 989-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.