Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 158
A custom dashboard of the network health must be created by using Cisco DNA Center APIs. An existing dashboard is a RESTful API that receives data from
Cisco DNA Center as a new metric every time the network health information is sent from the script to the dashboard.
Which set of requests creates the custom dashboard?
Answer options
- A. POST request to Cisco DNA Center to obtain the network health information, and then a GET request to the dashboard to publish the new metric
- B. GET request to Cisco DNA Center to obtain the network health information, and then a PUT request to the dashboard to publish the new metric
- C. GET request to Cisco DNA Center to obtain the network health information, and then a POST request to the dashboard to publish the new metric
- D. PUT request to Cisco DNA Center to obtain the network health information, and then a POST request to the dashboard to publish the new metric
Correct answer: C
Explanation
The correct answer is C because a GET request is needed to retrieve the network health information from Cisco DNA Center, and a POST request is required to send this new metric to the dashboard for publication. Options A and B are incorrect as they use the wrong request types, while option D incorrectly uses a PUT request for obtaining information.