nerdexam
Cisco

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…

Submitted by satoshi_tk· Mar 30, 2026Network Automation and Programmability - Understanding API interactions (NETCONF/RESTCONF) and proper HTTP headers for programmatic network device configuration retrieval, typically mapped to Cisco ENCOR/DevNet certification domains.

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

350-701 question #701 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)
  • A
    11% (3)
  • B
    63% (17)
  • C
    22% (6)
  • D
    4% (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

#NETCONF#RESTCONF#Python Automation#YANG Data Models

Community Discussion

No community discussion yet for this question.

Full 350-701 Practice