CCNP Model-Driven Telemetry • Complete Question Bank
Complete CCNP Model-Driven Telemetry question bank — all 0 questions with answers and detailed explanations.
A network engineer writes the following Python script to collect telemetry data from a Cisco IOS-XE device using NETCONF:
```python
from ncclient import manager
m = manager.connect( host='192.168.1.1', port=830,
username='admin',
password='cisco', hostkey_verify=False )
filter = ''' <filter xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <interfaces xmlns="http://openconfig.net/yang/interfaces"> <interface> <name>GigabitEthernet1</name> </interface> </interfaces> </filter> '''
reply = m.get(filter=('subtree', filter))
print(reply.xml)
m.close_session() ```
What is the issue with this code?
An engineer creates an Ansible playbook to configure model-driven telemetry on a Cisco IOS-XE device:
```yaml --- - name: Configure MDT subscription hosts: ios_xe gather_facts: no tasks: - name: Configure telemetry receiver cisco.ios.ios_config: lines: - telemetry ietf subscription 101 - receiver ip address 10.10.10.10 port 57500 protocol grpc-tcp - encoding encode-kvgpb - filter xpath /interfaces/interface/state/counters - update-policy periodic 5000 ```
What is the problem with this playbook?
A developer sends a RESTCONF request to retrieve interface statistics from a Cisco IOS-XE device:
Request: ``` GET /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1/statistics HTTP/1.1 Host: 192.168.1.1 Accept: application/yang-data+json ```
Response: ```json
{"ietf-interfaces:statistics": {
"discontinuity-time": "2023-01-01T00:00:00Z",
"in-octets": 1000000,
"in-errors": 0,
"out-octets": 500000,
"out-errors": 0
}
}```
What is the correct way to interpret this response?
A network engineer uses Cisco DNA Center API to retrieve the health of a device. The API call returns:
```json
{
"response": [
{
"deviceId": "1234567890",
"healthScore": 85,
"overallHealth": "good",
"memory": {
"used": 4096,
"total": 8192,
"usage": 50
},
"cpu": {
"usage": 25
}
}
]
}```
What does the healthScore of 85 indicate?
An engineer configures gRPC dial-out telemetry on a Cisco IOS-XE device:
``` telemetry ietf subscription 100 receiver ip address 10.1.1.100 port 50051 protocol grpc-tcp source-address 10.1.1.1 encoding encode-kvgpb filter xpath /interfaces/interface/state/counters update-policy periodic 10000 ```
What is the purpose of the 'source-address' command?
A Python script using Netmiko to configure telemetry on a Cisco IOS-XE device:
```python
from netmiko import ConnectHandler
device = { 'device_type': 'cisco_ios', 'host': '192.168.1.1', 'username': 'admin', 'password': 'cisco',
}
connection = ConnectHandler(**device) config_commands = [ 'telemetry ietf subscription 200', 'receiver ip address 10.1.1.100 port 50051 protocol grpc-tcp', 'source-address 10.1.1.1', 'encoding encode-kvgpb', 'filter xpath /interfaces/interface/state/counters', 'update-policy periodic 10000'
]
output = connection.send_config_set(config_commands)
print(output)
connection.disconnect() ```
What is the expected outcome of this script?
An engineer retrieves telemetry data from a Cisco IOS-XE device using RESTCONF and receives the following response:
```json
{"ietf-interfaces:interfaces": {
"interface": [
{
"name": "GigabitEthernet1",
"type": "iana-if-type:ethernetCsmacd",
"enabled": true,
"ipv4": {
"address": [
{
"ip": "192.168.1.1",
"netmask": "255.255.255.0"
}
]
}
}
]
}
}```
What is the correct way to access the IP address of the interface using Python?
An Ansible playbook uses the cisco.ios.ios_telemetry module to configure a telemetry subscription:
```yaml --- - name: Configure telemetry subscription hosts: ios_xe gather_facts: no tasks: - name: Create telemetry subscription cisco.ios.ios_telemetry: state: present subscription_id: 300 receiver: ip: 10.1.1.100 port: 50051 protocol: grpc-tcp source_ip: 10.1.1.1 encoding: kvgpb filter: xpath: /interfaces/interface/state/counters update_policy: period: 10000 ```
What is the purpose of the 'state: present' parameter?
A network engineer uses the following Python code to subscribe to telemetry data from a Cisco IOS-XE device via NETCONF using the YANG module 'Cisco-IOS-XE-mdt-oper':
```python
from ncclient import manager
m = manager.connect( host='192.168.1.1', port=830,
username='admin',
password='cisco', hostkey_verify=False )
# Create a telemetry subscription
subscription = ''' <config> <mdt-config-data xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-mdt-cfg"> <mdt-subscription> <subscription-id>400</subscription-id> <base> <stream>yang-push</stream> <encoding>encode-kvgpb</encoding> <period>5000</period> <xpath>/interfaces/interface/state/counters</xpath> </base> <mdt-receivers> <address>10.1.1.100</address> <port>50051</port> <protocol>grpc-tcp</protocol> </mdt-receivers> </mdt-subscription> </mdt-config-data> </config> '''
reply = m.edit_config(target='running', config=subscription)
print(reply.xml)
m.close_session() ```
What is the issue with this code?
Consider the following configuration snippet on a Cisco IOS-XE device:
telemetry ietf subscription 100 encoding encode-kvgpb filter xpath /interfaces/interface/state/counters stream yang-push update-policy periodic 500 receiver ip address 10.1.1.1 50000 protocol grpc
What is the effect of this configuration?
Examine the following telemetry configuration on a Cisco IOS-XE device:
telemetry ietf subscription 200 encoding encode-kvgpb filter xpath /interfaces/interface[name='GigabitEthernet0/0/0']/state stream yang-push update-policy on-change receiver ip address 192.168.1.100 50001 protocol grpc
Which statement is true about this configuration?
Review the following telemetry configuration snippet:
telemetry ietf subscription 300 encoding encode-kvgpb filter xpath /interfaces/interface/state/counters stream yang-push update-policy periodic 100 receiver ip address 10.1.1.1 50000 protocol grpc
What is missing or incorrect in this configuration?
Given this telemetry configuration on a Cisco IOS-XE device:
telemetry ietf subscription 400 encoding encode-kvgpb filter xpath /interfaces/interface/state stream yang-push update-policy periodic 1000 receiver ip address 10.1.1.1 50000 protocol grpc source-interface Loopback0
What is the effect of the source-interface Loopback0 command?
Examine the following telemetry configuration:
telemetry ietf subscription 500 encoding encode-kvgpb filter xpath /interfaces/interface/state/counters stream yang-push update-policy periodic 500 receiver ip address 10.1.1.1 50000 protocol grpc
A network engineer wants to add a second receiver for redundancy. Which additional configuration is correct?
Consider the following telemetry configuration on a Cisco IOS-XE device:
telemetry ietf subscription 600 encoding encode-kvgpb filter xpath /interfaces/interface/state stream yang-push update-policy on-change receiver ip address 10.1.1.1 50000 protocol grpc
What is a potential issue with this configuration?