350-501 · Question #214
Refer to the exhibit. What does the REST API command do?
The correct answer is B. It executes the commands specified in Oescriptioos.xml.. The question asks to determine the function of a REST API command when an XML file named Descriptions.xml is involved, likely implying a data submission or configuration action.
Question
Refer to the exhibit. What does the REST API command do?
Options
- AIt displays the information identified by Descriptions.xml.
- BIt executes the commands specified in Oescriptioos.xml.
- CIt retrieves the information requested by Descriptions.xml.
- DIt removes the information identified by Descriptions.xml.
How the community answered
(30 responses)- A7% (2)
- B90% (27)
- D3% (1)
Why each option
The question asks to determine the function of a REST API command when an XML file named `Descriptions.xml` is involved, likely implying a data submission or configuration action.
"Displays the information" usually refers to a GET request, where the client retrieves data from the server, not sends an XML file for processing.
In the context of REST APIs, when an XML file like `Descriptions.xml` is sent to a server (typically via HTTP POST or PUT methods, which imply modification or creation), it means the server will process or "execute" the configurations, data, or commands specified within that XML payload to manipulate resources.
"Retrieves the information" also typically corresponds to a GET request, where the client requests data, rather than providing an XML file to be acted upon by the server.
"Removes the information" is typically performed using an HTTP DELETE request, which is a different operation from sending an XML file for execution or configuration.
Concept tested: REST API command interpretation (POST/PUT)
Source: https://developer.cisco.com/docs/ios-xe/#!restconf-api-guide/restconf-api-guide
Topics
Community Discussion
No community discussion yet for this question.