300-435 Question 117
Single answerA network engineer is tasked with automating a Cisco enterprise network to monitor configuration changes on a specific device. The engineer wants to trigger a script to back up the device configuration whenever a change occurs. Which method should the engineer use to achieve this using the on-change notification model?
- A
Use a NETCONF subscription with on-change notifications to monitor configuration changes.
- B
Set up a periodic polling mechanism using RESTCONF to check for changes.
- C
Implement SNMP traps to detect configuration changes.
- D
Use syslog messages to capture all configuration changes.
Show answer and explanation
Correct answer: A
Explanation
The on-change model in network automation allows for real-time monitoring and response to configuration changes. NETCONF supports on-change subscriptions, enabling the automation system to listen for specific configuration events and execute scripts or tasks immediately. This approach is more efficient and precise compared to polling or relying on less-structured mechanisms like syslog or SNMP traps.
- A. Correct.
NETCONF supports on-change notifications, which allows the system to subscribe to configuration changes and trigger actions (e.g., running a script) in near real-time.
- B. Incorrect.
Periodic polling does not meet the requirement of triggering actions immediately on configuration changes, as it introduces delays and unnecessary overhead.
- C. Incorrect.
SNMP traps are not designed specifically for monitoring configuration changes in detail and are less efficient compared to on-change notifications.
- D. Incorrect.
Syslog messages can capture configuration change details, but they do not provide a structured mechanism to trigger a script directly based on configuration changes.