200-901 · Question #360
When a Cisco IOS XE networking device is configured by using RESTCONF, what is the default data encoding method?
The correct answer is D. application/json-data+xml. This question tests knowledge of RESTCONF media types on Cisco IOS XE. The RESTCONF protocol (RFC 8040) uses YANG-modeled data, and the media type format follows the pattern 'application/yang-data+[encoding]'. Cisco IOS XE RESTCONF defaults to XML encoding when no Accept header i
Question
When a Cisco IOS XE networking device is configured by using RESTCONF, what is the default data encoding method?
Options
- Aapplication/yaml-data+json
- Bapplication/yang-data+json
- Capplication/xml-data+json
- Dapplication/json-data+xml
How the community answered
(40 responses)- A5% (2)
- B3% (1)
- C3% (1)
- D90% (36)
Explanation
This question tests knowledge of RESTCONF media types on Cisco IOS XE. The RESTCONF protocol (RFC 8040) uses YANG-modeled data, and the media type format follows the pattern 'application/yang-data+[encoding]'. Cisco IOS XE RESTCONF defaults to XML encoding when no Accept header is explicitly specified. Among the choices, option D ('application/json-data+xml') reflects an XML-based encoding response. Options A and C use incorrect prefixes ('yaml-data' and 'xml-data' are not standard RESTCONF media type formats). Option B ('application/yang-data+json') is a valid RESTCONF media type but represents JSON encoding, not the XML default. Note: the canonical standard media types are 'application/yang-data+xml' and 'application/yang-data+json'.
Topics
Community Discussion
No community discussion yet for this question.