nerdexam
Cisco

200-901 · Question #331

200-901 Question #331: Real Exam Question with Answer & Explanation

The correct answer is D. POST /restconf/data/example-jukebox:jukebox/library HTTP/1.1 Host: example.com Content-type: application/yang-data+json { "example-jukebox:dogbreed": [ { "name" : "Australian Cattle Dog" } ] }. The exhibit displays a JSON data structure representing a dogbreed entry, which would typically be the representation of a resource that was successfully created on the server.

Understanding and Using APIs

Question

Refer to the exhibit. Which RESTCONF request results in this response? A. B. C. D.

Exhibits

200-901 question #331 exhibit 1
200-901 question #331 exhibit 2
200-901 question #331 exhibit 3
200-901 question #331 exhibit 4
200-901 question #331 exhibit 5

Options

  • AGET /restconf/data/example-jukebox:jukebox/library HTTP/1.1 Host: example.com Content-type: application/yang-data+json { "example-jukebox:dogbreed": [ { "name" : "Australian Cattle Dog" } ] }
  • BCONFIG /restconf/data/example-jukebox:jukebox/library HTTP/1.1 Host: example.com Content-type: application/yang-data+json { "example-jukebox:dogbreed": [ { "name" : "Australian Cattle Dog" } ] }
  • CPUT /restconf/data/example-jukebox:jukebox/library HTTP/1.1 Host: example.com Content-type: application/yang-data+json { "example-jukebox:dogbreed": [ { "name" : "Australian Cattle Dog" } ] }
  • DPOST /restconf/data/example-jukebox:jukebox/library HTTP/1.1 Host: example.com Content-type: application/yang-data+json { "example-jukebox:dogbreed": [ { "name" : "Australian Cattle Dog" } ] }

Explanation

The exhibit displays a JSON data structure representing a dogbreed entry, which would typically be the representation of a resource that was successfully created on the server.

Common mistakes.

  • A. A GET request is used for retrieving existing data and typically does not include a request body.
  • B. CONFIG is not a standard HTTP method used in RESTCONF for data manipulation.
  • C. A PUT request is used to either create a resource at a specified URI or replace an existing resource, but POST is generally preferred for adding new items to collections where the server assigns the identifier.

Concept tested. RESTCONF POST method for resource creation

Reference. https://datatracker.ietf.org/doc/html/rfc8040#section-3.5.2

Topics

#RESTCONF#API Requests#HTTP Methods#Network Automation

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice