350-701 · Question #701
Refer to the exhibit. A network engineer must retrieve the interface configuration on a Cisco router by using the NETCONF API. The engineer uses a Python script to automate the activity. Which code…
The correct answer is B. Content-Type: application/vnd.yang.data+json. The correct Content-Type header for NETCONF over RESTCONF when using JSON-encoded YANG data is 'application/vnd.yang.data+json'. This follows the RFC 8040 RESTCONF standard, where the media type uses the format 'application/vnd.yang.data+' followed by the encoding type (json or…
Question
Refer to the exhibit. A network engineer must retrieve the interface configuration on a Cisco router by using the NETCONF API. The engineer uses a Python script to automate the activity. Which code snippet completes the script? A. B. C. D.
Exhibit
Options
- AContent-Type: applications/json/vnd.yang.data
- BContent-Type: application/vnd.yang.data+json
- CContent-Type: application/vnd.yang.data
- DContent-Type: application/vnd.yang.data+api
How the community answered
(27 responses)- A11% (3)
- B63% (17)
- C22% (6)
- D4% (1)
Explanation
The correct Content-Type header for NETCONF over RESTCONF when using JSON-encoded YANG data is 'application/vnd.yang.data+json'. This follows the RFC 8040 RESTCONF standard, where the media type uses the format 'application/vnd.yang.data+' followed by the encoding type (json or xml). The '+json' suffix explicitly specifies that the payload is JSON-encoded YANG data.
Topics
Community Discussion
No community discussion yet for this question.
