hardMultiple Choice
CCNP Practice Question: Configures model-driven telemetry on a Cisco…
A network engineer configures model-driven telemetry on a Cisco IOS-XE device using gRPC dial-out. The subscription configuration snippet is:
``` telemetry ietf subscription 100 encoding encode-kvgpb filter xpath /interfaces/interface/statistics stream yang-push update-policy periodic 500 receiver ip address 10.1.1.1 50001 protocol grpc-tcp ```
What is the primary issue with this configuration?
⚠ Common exam trap
Cisco often tests the distinction between dial-in and dial-out telemetry configurations, specifically that 'encode-kvgpb' is only valid for dial-in, while dial-out requires 'encode-gpb' or 'encode-json', leading candidates to mistakenly assume any GPB encoding works for both.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The 'encoding' should be 'encode-json' or 'encode-gpb' instead of 'encode-kvgpb' for gRPC.
GRPC dial-out on Cisco IOS-XE requires the encoding to be 'encode-gpb' (GPB) or 'encode-json' (JSON), not 'encode-kvgpb'. The 'encode-kvgpb' encoding is used for gRPC dial-in (subscriptions initiated by the collector), not dial-out. Using the wrong encoding will cause the telemetry data to be malformed or rejected by the receiver.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The 'encoding' should be 'encode-json' or 'encode-gpb' instead of 'encode-kvgpb' for gRPC.
Why this is correct
The encoding in a gRPC telemetry receiver must be either 'encode-json' or 'encode-gpb' because gRPC natively carries JSON or Google Protocol Buffers payloads. 'encode-kvgpb' (Key Value GPB) is a legacy binary encoding used with Cisco's old telemetry transport over TCP, not with gRPC. If you specify 'encode-kvgpb' under a gRPC receiver, the session fails to establish or sends malformed data. Therefore, the correct fix is to switch the encoding to 'encode-json' or 'encode-gpb'.
- ✗
The 'stream' should be 'yang-notif' instead of 'yang-push'.
Why it's wrong here
The stream type 'yang-push' is indeed the correct choice for periodic, interval-based push updates of YANG-modeled data. 'yang-notif' is used for event-driven notifications (e.g., syslog or SNMP traps), not for continuous periodic subscriptions. In a gRPC telemetry subscription, the stream is explicitly set to 'yang-push' to instruct the device to send updates on a configured time interval. So changing it to 'yang-notif' would actually break the periodic update behavior, making this statement incorrect.
- ✗
The 'update-policy periodic' value must be between 100 and 1000 milliseconds.
Why it's wrong here
The 'update-policy periodic' value in Cisco telemetry configurations is expressed in seconds, not milliseconds. The valid range is typically from 1 to 3600 seconds, so a value like 500 is well within the permitted range. The misconception that it is in milliseconds likely comes from confusion with other protocol timers. Therefore, 500 is a perfectly valid periodic interval, and the claim that it must be between 100 and 1000 milliseconds is false.
- ✗
The 'receiver' command should specify 'protocol grpc' instead of 'grpc-tcp'.
Why it's wrong here
In the receiver configuration, the protocol keyword is 'grpc-tcp' to explicitly indicate gRPC transport over TCP. Writing 'protocol grpc' is not valid because the receiver module requires a transport-specific identifier; 'grpc' alone is ambiguous and not recognized by the CLI. This distinction is critical because the same receiver can also support 'mdt-tcp' or 'grpc-tls' depending on transport. So the command should keep 'grpc-tcp' as shown, making this option incorrect.
About these practice questions
This 350-401 question is part of Courseiva's 1,923-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.