nerdexam
Cisco

300-910 · Question #71

Refer to the exhibit. A developer is creating a health check monitoring script that queries information from the Cisco DNA Center platform. The script must trigger an alert if a site health statistic

This question tests the ability to construct a Python health monitoring script that authenticates with Cisco DNA Center and evaluates site health (accessGoodCount < 80) and network health (latestHealthScore <= 95) using the DNAC REST API.

Monitoring and Logging

Question

Refer to the exhibit. A developer is creating a health check monitoring script that queries information from the Cisco DNA Center platform. The script must trigger an alert if a site health statistic named accessGoodCount drops below 80 and if a network statistic named latestHealthScore is 95 or less. Drag and drop the code snippets from the bottom onto the blanks in the code to monitor the site and network health on a Cisco DNA Center platform instance. Options may be used more than once. Not all options are used.

Explanation

This question tests the ability to construct a Python health monitoring script that authenticates with Cisco DNA Center and evaluates site health (accessGoodCount < 80) and network health (latestHealthScore <= 95) using the DNAC REST API.

Approach. The correct approach requires four key components: (1) Authenticating against DNAC using a POST to /dna/system/api/v1/auth/token with Basic Auth to retrieve an X-Auth-Token; (2) Querying site health via GET /dna/intent/api/v1/site-health and iterating the response list to check if site['accessGoodCount'] < 80; (3) Querying network health via GET /dna/intent/api/v1/network-health and checking if network['latestHealthScore'] <= 95 (note: 'drops below 80' uses strict less-than <, while '95 or less' uses less-than-or-equal <=); (4) All requests must include the X-Auth-Token header returned from the auth step, and the JSON response is accessed via .json()['response'].

Concept tested. Cisco DNA Center REST API usage in Python - specifically token-based authentication, correct health API endpoint paths (/site-health vs /network-health), JSON response traversal, and precise conditional logic (strict < vs <=) matching the alert thresholds described in the scenario.

Reference. Cisco DevNet DEVASC (200-901) - Cisco DNA Center Intent API; DNAC Platform API docs: GET /dna/intent/api/v1/site-health and GET /dna/intent/api/v1/network-health

Topics

#Cisco DNA Center API#Network Monitoring#Python Scripting#Alerting Logic

Community Discussion

No community discussion yet for this question.

Full 300-910 Practice