350-401 exam dumps

350-401 practice question 327 of 631

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

350-401 Question 327

Select 2

You are using Cisco DNA Center's REST API to retrieve network device information. Upon making a GET request to the /network-device endpoint, you receive a response with the following details: Status Code: 200, Payload: { "response": [{ "id": "device1", "hostname": "router1", "managementIpAddress": "192.168.1.1" }, { "id": "device2", "hostname": "router2", "managementIpAddress": "192.168.1.2" }] }. Based on this response, which statements are correct?

  1. A

    The request was successful, and the response contains a list of network devices.

  2. B

    The status code indicates a client-side error occurred, and no devices were returned.

  3. C

    The payload provides device information such as hostname and management IP address.

  4. D

    The status code suggests that the server is unreachable or experiencing issues.

  5. E

    The response indicates the API call was unauthorized.

Show answer and explanation

Correct answers: A, C

Explanation

The status code 200 confirms that the GET request to the Cisco DNA Center REST API was successful. The payload contains a list of devices with their respective details, such as hostname and management IP address. Understanding REST API response codes and payloads is essential for interpreting API interactions when working with Cisco DNA Center and RESTCONF.

  • A. Correct.

    This is correct because the status code 200 indicates a successful request, and the payload contains a list of network devices.

  • B. Incorrect.

    This is incorrect because a status code of 200 does not indicate a client-side error; it signifies a successful request.

  • C. Correct.

    This is correct because the payload contains details such as hostname and managementIpAddress for each network device.

  • D. Incorrect.

    This is incorrect because the status code 200 does not imply server issues. Codes in the 5xx range would indicate server-side problems.

  • E. Incorrect.

    This is incorrect because a 401 status code (not 200) would indicate an unauthorized API call.

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