DNA Center Script Retrieves All Devices and Serial Numbers

Cisco Platforms and Development
Answer Correct answer: A — the Python script queries the Cisco DNA Center API to retrieve all devices and their serial numbers.

Refer to the exhibit. A developer created a Python script that is used by network engineers to retrieve information from Cisco DNA Center by using the Cisco DNA Center API. Which workflow does the Python script execute? - image

  1. Retrieve all the devices and serial numbers in Cisco DNA Center. Correct Answer
  2. Provision a new device in Cisco DNA Center.
  3. Retrieve all network information in Cisco DNA Center.
  4. Retrieve a specific device from Cisco DNA Center by using a serial number.

Community Votes

A
100%

100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The tell is the absence of a device-ID or serial-number parameter in the request: the script enumerates the whole device inventory rather than provisioning or targeting one device.

The exhibit's Python script calls the Cisco DNA Center API and lists the network devices, reading their serial numbers without filtering to a single device. Retrieving all devices and their serial numbers is the workflow it performs.

Reading 'serial number' and assuming the script retrieves one specific device; the script applies no per-device filter, so it returns the full device list with serial numbers.

Community Discussion (3 comments)

dexcript 👍 2 Selected: A
I think the answer is A, however should be "Retrieve all device serial numbers... "
kymoni 👍 1 Selected: A
A. Retrieve all the devices and serial numbers in Cisco DNA Center.
liketopass 👍 3 Selected: A
no selection on a specific serial number: all devices are retrieved

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

The script sends a request to the DNA Center API that returns the device inventory, and it supplies no device identifier or serial-number filter, so the call enumerates all devices together with their serial numbers. That read-only inventory workflow is exactly 'retrieve all the devices and serial numbers', matching option A.

Why the Other Options Are Wrong

Option B, provisioning a new device, would require a create call that writes configuration in DNA Center, but the script only reads data and changes nothing. Option C, retrieving all network information, overstates the scope: the call targets the device inventory, not every object type such as sites, templates or interfaces. Option D, retrieving a specific device by serial number, would require a query parameter or path value naming that serial number, which the script does not provide.

Community Comment Notes

Voters unanimously chose the option that retrieves all devices and serial numbers, and one comment noted that because no specific serial number is selected, all devices are returned. Another comment observed that fetching the device list and serial numbers is a fair description of the call.

Official Reference

Exam Strategy

Read the exhibit for parameters: a request without a device ID or serial-number filter returns the whole inventory. Match the verb (GET equals retrieve) and the absence of a specific identifier to 'retrieve all devices and serial numbers'.

Frequently Asked Questions

How do you tell that the script retrieves all devices rather than one?

The request contains no device ID or serial-number parameter that would narrow the result, so the DNA Center API returns the entire device inventory with serial numbers.

Does the script provision a new device in DNA Center?

No. It only issues a read request to list devices; provisioning would require a create call that writes new configuration, which the script does not make.

Related Analysis

Practice All 200-901 Questions

Access 105 questions with complete answers and detailed explanations.

View Full 200-901 Practice Test →

← Back to 200-901 Study Guide