300-435 exam dumps

300-435 practice question 251 of 322

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

300-435 Question 251

Single answer

You are tasked with creating a Python script to retrieve the hostname and serial number of all devices managed by Cisco DNA Center using the Inventory API. Which API endpoint and method should you use to achieve this?

  1. A

    GET /dna/intent/api/v1/network-device

  2. B

    POST /dna/intent/api/v1/network-device

  3. C

    GET /dna/intent/api/v1/topology/site-topology

  4. D

    GET /dna/intent/api/v1/device-health

Show answer and explanation

Correct answer: A

Explanation

The Cisco DNA Center Inventory API provides device-level information using the 'GET /dna/intent/api/v1/network-device' endpoint. This endpoint is designed to retrieve detailed records of all network devices in the inventory, including information such as hostname, serial number, management IP, and more. The other options either utilize the wrong HTTP method or target endpoints that do not provide the requested inventory data.

  • A. Correct.

    Correct: This is the appropriate endpoint and method to use when retrieving detailed information about network devices, including hostname and serial number.

  • B. Incorrect.

    Incorrect: POST is used to create resources or trigger actions, not retrieve data. A GET method is required for fetching device details.

  • C. Incorrect.

    Incorrect: This endpoint is used for retrieving site topology information, not device-specific data such as hostname or serial number.

  • D. Incorrect.

    Incorrect: This endpoint provides device health metrics, not inventory details like hostname or serial number.

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