300-435 exam dumps

300-435 practice question 250 of 322

Automating Cisco Enterprise Solutions. Professional level, Cisco. Free question with the correct answer and a full explanation.

300-435 Question 250

Single answer

You are tasked with retrieving a list of all network devices in your enterprise environment using Cisco DNA Center's Inventory API. After reviewing the API documentation, you decide to use the '/dna/intent/api/v1/network-device' endpoint. Which HTTP method and authentication mechanism must you use to successfully retrieve the device data?

  1. A

    GET method with a token-based authentication

  2. B

    POST method with a token-based authentication

  3. C

    GET method with basic authentication (username and password)

  4. D

    PUT method with basic authentication (username and password)

Show answer and explanation

Correct answer: A

Explanation

The '/dna/intent/api/v1/network-device' endpoint is part of Cisco DNA Center's Inventory API and is designed to retrieve information about network devices. The HTTP GET method is used to fetch data, while POST and PUT methods are used for creating or updating resources, respectively. Additionally, Cisco DNA Center APIs require token-based authentication for enhanced security, making 'GET method with a token-based authentication' the correct choice.

  • A. Correct.

    Correct! The '/dna/intent/api/v1/network-device' endpoint is used to retrieve data, making GET the appropriate method. Cisco DNA Center APIs require token-based authentication for secure access.

  • B. Incorrect.

    Incorrect. While token-based authentication is required, the POST method is used for creating or modifying resources, not retrieving data.

  • C. Incorrect.

    Incorrect. Although the GET method is correct for retrieving data, Cisco DNA Center APIs use token-based authentication, not basic authentication.

  • D. Incorrect.

    Incorrect. The PUT method is used for updating resources, and Cisco DNA Center APIs do not use basic authentication.

Timed practice exam

Take a 300-435 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