350-501 · Question #526
350-501 Question #526: Real Exam Question with Answer & Explanation
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: I
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?
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
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
Community Discussion
No community discussion yet for this question.