350-401 exam dumps

350-401 practice question 326 of 631

Implementing Cisco Enterprise Network Core Technologies. Professional level, Cisco. Free question with the correct answer and a full explanation.

350-401 Question 326

Select 2

You are using Cisco DNA Center's REST API to retrieve a list of network devices in your organization. The API response returns the HTTP status code '200' and a JSON payload containing device details. Which of the following statements about this response are correct?

  1. A

    The HTTP status code '200' indicates that the request was successfully processed by the server.

  2. B

    The JSON payload contains details about the error encountered during the API request.

  3. C

    The response payload can include information such as the device hostname, IP address, and platform type.

  4. D

    A status code of '200' indicates that authentication to the Cisco DNA Center API failed.

  5. E

    The REST API response follows the RESTCONF data model.

Show answer and explanation

Correct answers: A, C

Explanation

When interpreting REST API responses from Cisco DNA Center, the HTTP status code provides insight into the success or failure of the API request. A '200 OK' indicates a successful request, and the payload in this case contains the requested network device details. Understanding the HTTP status codes and the structure of the JSON payload is essential for troubleshooting and utilizing the API effectively.

  • A. Correct.

    The HTTP status code '200' indicates a successful request and response cycle, meaning the server processed the request correctly.

  • B. Incorrect.

    A JSON payload with device details does not indicate an error. Error responses typically include status codes in the 4xx or 5xx range and may contain error descriptions.

  • C. Correct.

    The JSON payload in this scenario contains device details such as hostname, IP address, and platform type, as returned by Cisco DNA Center.

  • D. Incorrect.

    A status code of '200' does not indicate authentication failure. Authentication failures are usually indicated by a '401 Unauthorized' status code.

  • E. Incorrect.

    While Cisco DNA Center supports REST APIs, it does not strictly adhere to the RESTCONF data model. RESTCONF is a protocol used for network device configuration and management, whereas Cisco DNA Center uses a more general REST API approach.

Timed practice exam

Take a 350-401 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam