exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 148 discussion

Actual exam question from Cisco's 200-901
Question #: 148
Topic #: 1
[All 200-901 Questions]


Refer to the exhibit. A network engineer wants to use an API to update information about device interfaces. The network devices are deployed in a Cisco DevNet
Sandbox and have running interfaces. Which line of code needs to be placed in the snippet where the code is missing?

  • A. {'Content-Type': 'application/yang.data+xml', 'Accept': 'application/yang.data+xml'}
  • B. {'Content-Type': 'application/yang.data+yaml', 'Accept': 'application/yang.data+yaml'}
  • C. {'Content-Type': 'application/restconf.data+json', 'Accept': 'application/restconf.data+json'}
  • D. {'Content-Type': 'application/yang.data+utf8', 'Accept': 'application/restconf.data+utf8'}
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
joephx08
Highly Voted 1 year, 6 months ago
I think it is A https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2019/pdf/5eU6DfQV/LTRCTR-2700.pdf
upvoted 8 times
Frivax
1 year, 5 months ago
Slide 44 shows A would be correct for NETCONF. C would be the correct answer as we are using RESTCONF.
upvoted 3 times
Frivax
1 year, 5 months ago
A is the correct answer
upvoted 1 times
...
...
Ema_25
1 year, 5 months ago
Normative Accept header example: application/yang-data+xml,application/yang-data+json;q=0.9
upvoted 1 times
...
...
brunorpacheco
Most Recent 9 months, 1 week ago
Selected Answer: A
should be A, as in learning LABs from CISCO https://developer.cisco.com/learning/labs/intro-restconf/ RESTCONF Headers and MIME Types One of the major advantages RESTCONF has over NETCONF is its ability to use JSON as a data format. Many developers prefer JSON (over XML) because of its readability and lower overhead. When crafting a RESTCONF request, you specify the data format being sent and requested by the agent. This is done in a typical HTTP way; using request headers: Content-Type: Specify the type of data being sent from the client Accept: Specify the type of data being requested by the client RESTCONF describes the following MIME types to be used in these headers to indicate the format being requested. application/yang-data+json application/yang-data+xml
upvoted 2 times
...
mellohello
10 months ago
Selected Answer: A
The correct MIME type for data transmitted using the RESTCONF protocol is application/yang.data+json, which indicates that the data is in JSON format and follows the YANG data model. Alternatively, if the data is transmitted in XML format, the MIME type would be application/yang.data+xml. Therefore, the correct line of code to place in the snippet where it is missing would be either {'Content-Type': 'application/yang.data+json', 'Accept': 'application/yang.data+json'} or {'Content-Type': 'application/yang.data+xml', 'Accept': 'application/yang.data+xml'}, depending on the format of the data being transmitted.
upvoted 1 times
...
nfvexpert
1 year, 4 months ago
There is no such media type as application/restconf and as per the RFC of Restconf it can use application/xml or application/json
upvoted 2 times
...
macxsz
1 year, 4 months ago
Selected Answer: A
A has the only correcto syntax to retrieve on XML format
upvoted 1 times
...
ThePokemonNuzlockingMaster
1 year, 5 months ago
Selected Answer: A
It's definitely A. RESTCONF supports JSON and XML, but option C says "restconf.data-json", which is incorrect syntax as "restconf" isn't a data type.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago