nerdexam
Cisco

350-501 · Question #526

Refer to the exhibit. The networking team recently identified a folder of archived scripts in an internal repository. A junior engineer must determine whether any of the scripts are useful in the…

The correct answer is D. collecting information about network devices. The primary purpose of the script is to collect information about network devices using the Cisco DNA Center API. Here's how the script works: Authentication: It retrieves a token by calling the get_token() function and using the DNA Center authentication endpoint. API Request…

Automation and Assurance

Question

Refer to the exhibit. The networking team recently identified a folder of archived scripts in an internal repository. A junior engineer must determine whether any of the scripts are useful in the current network environment. What is the primary purpose of this script?

Exhibit

350-501 question #526 exhibit

Options

  • Aprovisioning a new device with a hostname and device ID
  • Busing a function loop to configure a group of network devices
  • Cstoring a token to the local device repository
  • Dcollecting information about network devices

How the community answered

(44 responses)
  • A
    5% (2)
  • B
    2% (1)
  • D
    93% (41)

Explanation

The primary purpose of the script is to collect information about network devices using the Cisco DNA Center API. Here's how the script works: Authentication: It retrieves a token by calling the get_token() function and using the DNA Center authentication endpoint. API Request: It sends a GET request to the DNA Center's network-device API endpoint to retrieve details about network devices. Data Parsing: It processes the API response, extracts device details (e.g., type, hostname, and serial number), and prints this information in a formatted output.

Topics

#Network Automation#Data Collection#Script Analysis#Device Information

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice