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.
Question
Exhibits
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
Community Discussion
No community discussion yet for this question.




