200-901 exam dumps

200-901 practice question 35 of 204

Cisco DevNet Associate. Associate level, Cisco. Free question with the correct answer and a full explanation.

200-901 Question 35

Single answer

You are tasked with developing an application that integrates with a network device using its REST API. The API documentation specifies that you need to send a POST request to the endpoint /api/v1/config with a JSON payload containing the device configuration. After sending the request, you receive a 401 Unauthorized response. What is the most likely cause of this issue?

  1. A

    The HTTP method is not supported by the API.

  2. B

    The API endpoint URL is incorrect.

  3. C

    Authentication credentials are missing or incorrect.

  4. D

    The JSON payload format is invalid.

Show answer and explanation

Correct answer: C

Explanation

A 401 Unauthorized response specifically indicates that the request lacks valid authentication credentials. In this scenario, the most likely cause of the issue is that authentication credentials are either missing or incorrect. To resolve this, you should review the API documentation for the required authentication method (e.g., API key, token, or username/password) and ensure that the request includes the correct credentials.

  • A. Incorrect.

    The HTTP method being unsupported would typically return a 405 Method Not Allowed response, not a 401 Unauthorized.

  • B. Incorrect.

    If the API endpoint URL were incorrect, you would likely receive a 404 Not Found or similar error, not a 401 Unauthorized.

  • C. Correct.

    A 401 Unauthorized response indicates an issue with authentication, such as missing or incorrect credentials.

  • D. Incorrect.

    An invalid JSON payload would typically result in a 400 Bad Request response, not a 401 Unauthorized.

Timed practice exam

Take a 200-901 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