Courseiva
hardMultiple Choice

350-401 Practice Question: An engineer configures model-driven telemetry on a Cisco IOS-XE device with the following…

An engineer configures model-driven telemetry on a Cisco IOS-XE device with the following gRPC dial-out configuration:

``` telemetry ietf subscription 101 encoding encode-kvgpb filter xpath /interfaces/interface/state/counters source-address 10.1.1.1 stream yang-push update-policy periodic 500 receiver ip address 10.2.2.2 50001 protocol grpc-tcp ```

What is the purpose of the 'encoding encode-kvgpb' command?

⚠ Common exam trap

Watch out — candidates often confuse encoding formats with compression or assuming that 'kvgpb' stands for something else; candidates might pick JSON or XML due to familiarity, but the exam tests precise knowledge of telemetry encoding keywords.

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

✓

It specifies that the data should be encoded using the Key-Value Google Protocol Buffers format.

The command 'encoding encode-kvgpb' explicitly sets the telemetry data encoding to Key-Value Google Protocol Buffers (kvGPB). This is a compact, efficient binary format that maps YANG leaf paths to key-value pairs, optimized for high-frequency streaming telemetry over gRPC. It is not JSON, XML, or a compression mechanism; it is a specific serialization format defined for model-driven telemetry on Cisco IOS-XE.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    It sets the encoding to JSON format for human readability.

    Why it's wrong here

    JSON is a different encoding, text-based and readable, selected with options such as 'encode-json' where supported, and commonly used with NETCONF or gNMI. 'encode-kvgpb' selects key-value Google Protocol Buffers, a compact binary format that a collector such as Telegraf decodes into fields for storage and dashboards. People normally read the decoded data in a database or Grafana, not the raw stream.

  • ✓

    It specifies that the data should be encoded using the Key-Value Google Protocol Buffers format.

    Why this is correct

    'encode-kvgpb' selects key-value Google Protocol Buffers: a compact binary format in which each value is sent with its field name, so a collector can decode it without precompiled schemas for every YANG model. It is the required encoding for gRPC dial-out on IOS XE. Here, interface counters are streamed every 5 seconds (500 centiseconds) to 10.2.2.2 on port 50001 using unencrypted gRPC.

  • ✗

    It enables compression of the telemetry data.

    Why it's wrong here

    Encoding and compression are different things. The encoding defines how data is serialised, and protobuf is compact compared with text formats, which is why it is chosen for high-frequency streaming, but the command does not compress anything. Transport-level options, such as using TLS with the grpc-tls protocol, are configured separately on the receiver, not by the encoding command.

  • ✗

    It sets the encoding to XML format.

    Why it's wrong here

    XML is used by NETCONF and is one of RESTCONF's encodings, but this command selects key-value protobuf, as the 'kvgpb' in the keyword indicates. Model-driven telemetry over gRPC on IOS XE uses kvGPB for dial-out subscriptions. Choosing a text format like XML for frequently streamed counters would also be far less efficient than a binary encoding.

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 →

How Courseiva writes practice questions · Editorial policy

You might also like

Similar 350-401 questions

Written and reviewed by Johnson Ajibi, MSc IT Security

Security Systems Architect · founder of Courseiva

Last reviewed September 2026 · checked against the official Cisco exam blueprint

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.