300-435 Question 116
Single answerYou are automating a Cisco SD-WAN environment and need to monitor changes in the device configuration. You want to trigger a Python script every time the configuration of a specific device changes. Which method would be the most appropriate to use in this scenario?
- A
Use a periodic polling mechanism with REST API to check for configuration changes.
- B
Utilize an on-change subscription with NETCONF to receive notifications when the configuration changes.
- C
Implement a webhook to periodically query the device for configuration updates.
- D
Use SNMP traps to monitor and trigger the necessary script.
Show answer and explanation
Correct answer: B
Explanation
The on-change subscription with NETCONF is the most appropriate method because it is event-driven and allows you to receive configuration change notifications in real time without the need for resource-intensive polling. This approach is highly relevant in automation workflows where timely responses to changes are critical.
- A. Incorrect.
Using a periodic polling mechanism with REST API is not efficient as it consumes more resources and increases latency compared to event-driven methods.
- B. Correct.
An on-change subscription with NETCONF is an event-driven approach that allows you to receive notifications as soon as there are configuration changes, making it the most efficient method in this scenario.
- C. Incorrect.
Webhooks are typically used to receive notifications about external system events, but periodically querying with webhooks is not the same as an event-driven subscription like on-change.
- D. Incorrect.
SNMP traps can be used to monitor certain events, but they are not ideal for configuration change notifications in a Cisco SD-WAN environment.