300-435 Question 118
Single answerA network engineer is automating the configuration of an enterprise network using Cisco DNA Center. The engineer wants to trigger a Python script to collect interface statistics only when a specific change occurs, such as an interface's operational status changing from 'up' to 'down'. Which feature of Cisco DNA Center should the engineer use to achieve this?
- A
Event Notifications with On-Change Subscription
- B
Periodic Polling via REST API
- C
Webhooks with On-Demand Requests
- D
SNMP Traps for Interface Monitoring
Show answer and explanation
Correct answer: A
Explanation
The On-Change subscription feature in Cisco DNA Center allows network engineers to efficiently monitor specific network changes without relying on continuous polling. By subscribing to On-Change events, the engineer ensures that the script is triggered only when the desired condition is met, such as an interface's status changing from 'up' to 'down'. This event-driven approach is both resource-efficient and precise for automation tasks.
- A. Correct.
Event Notifications with On-Change Subscription is the correct choice because it allows the engineer to subscribe to events that trigger only when specific changes occur, such as an interface's operational status change.
- B. Incorrect.
Periodic Polling via REST API is incorrect because it involves regularly polling the network for data, which is not event-driven and lacks the efficiency of On-Change mechanisms.
- C. Incorrect.
Webhooks with On-Demand Requests is incorrect because webhooks are typically used to send real-time updates but require an external trigger, which is not equivalent to an On-Change subscription.
- D. Incorrect.
SNMP Traps for Interface Monitoring is incorrect because SNMP traps provide notifications for changes but do not integrate seamlessly with Cisco DNA Center's On-Change subscription model.