A network operator uses gRPC Network Management Interface (gNMI) to collect telemetry data from routers. They notice that some updates are missing. Which gNMI mode should be used to ensure that all state changes are captured?
Sends updates only when a value changes, capturing all changes.
Why this answer
ON_CHANGE mode in gNMI ensures that the target device sends a telemetry update immediately whenever a state change occurs, guaranteeing that no updates are missed. This is in contrast to SAMPLE mode, which only sends periodic snapshots and can miss transient changes between intervals. Therefore, to capture all state changes, ON_CHANGE is the correct subscription mode.
Exam trap
Cisco often tests the misconception that SAMPLE mode with a very short interval is sufficient to capture all changes, but the trap is that SAMPLE can still miss state changes that occur and revert between samples, whereas ON_CHANGE guarantees delivery of every transition.
How to eliminate wrong answers
Option B (TARGET_DEFINED) is wrong because it is not a standard gNMI subscription mode; gNMI defines only ON_CHANGE, SAMPLE, and POLL, and TARGET_DEFINED is a misleading distractor. Option C (POLL) is wrong because POLL mode requires the collector to explicitly request data at intervals, which can miss state changes that occur between polls. Option D (SAMPLE) is wrong because SAMPLE mode sends data at a fixed periodic interval, and any state changes that occur and revert within that interval may be lost.