nerdexam
Cisco

200-901 · Question #323

Refer to the exhibit. Which HTTP code is returned after the RESTCONF query is executed?

The correct answer is A. 201. The RESTCONF query uses a POST method to create a new network interface resource.

Understanding and Using APIs

Question

Refer to the exhibit. Which HTTP code is returned after the RESTCONF query is executed?

Exhibit

200-901 question #323 exhibit

Options

  • A201
  • B204
  • C302
  • D304

How the community answered

(22 responses)
  • A
    91% (20)
  • B
    5% (1)
  • D
    5% (1)

Why each option

The RESTCONF query uses a POST method to create a new network interface resource.

A201Correct

A POST request that successfully creates a new resource on the server typically returns an HTTP status code 201 Created. This code indicates that the request has been fulfilled and resulted in the creation of a new resource.

B204

204 No Content indicates that the server successfully processed the request but is not returning any content.

C302

302 Found is a redirection status code indicating that the resource has been temporarily moved to a different URI.

D304

304 Not Modified indicates that the resource has not been modified since the version specified by the request headers.

Concept tested: RESTCONF HTTP status codes for resource creation

Source: https://datatracker.ietf.org/doc/html/rfc8040#section-6.6

Topics

#RESTCONF#HTTP Status Codes#API Responses#Network Automation

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice