350-401 Automation • Complete Question Bank
Complete 350-401 Automation question bank — all 0 questions with answers and detailed explanations.
R1#show ip interface brief | include Loopback Loopback0 10.1.1.1 YES manual up up Loopback100 10.1.100.1 YES manual up up R1#show run interface Loopback100 Building configuration... Current configuration : 67 bytes ! interface Loopback100 ip address 10.1.100.1 255.255.255.0 end R1#show run | include snmp-server snmp-server community public RO snmp-server community private RW
{
"ietf-interfaces:interface": {
"name": "GigabitEthernet1",
"type": "iana-if-type:ethernetCsmacd",
"enabled": true,
"ietf-ip:ipv4": {
"address": [
{
"ip": "192.168.1.1",
"netmask": "255.255.255.0"
}
]
}
}
}Refer to the exhibit.
{
"ietf-interfaces:interface": {
"name": "GigabitEthernet0/0/0",
"description": "Link to Core",
"enabled": true,
"ietf-ip:ipv4": {
"address": [
{
"ip": "192.168.1.1",
"netmask": "255.255.255.0"
}
]
}
}
}Drag or tap steps into the slots.
Drag or tap steps into the slots.
A network engineer is using a Python script with the requests library to interact with a Cisco IOS XE device's RESTCONF API. The script needs to update the description of a loopback interface. The engineer writes the following code:
import requests import json
url = "https://192.168.1.1/restconf/data/ietf-interfaces:interfaces/interface=Loopback0" headers = {
"Content-Type": "application/yang-data+json",
"Accept": "application/yang-data+json"
}payload = { "ietf-interfaces:interface": {
"name": "Loopback0",
"description": "Updated by script"
}
}response = requests.patch(url, headers=headers, data=json.dumps(payload), auth=('admin', 'password'), verify=False)
print(response.status_code)
The script returns a 400 Bad Request error. What is the most likely cause of the error?
Drag a concept onto its matching description — or click a concept then click the description.
Identifying traffic based on specific fields
Setting the DSCP or CoS value in a packet
Dropping packets that exceed a configured rate
Buffering packets to maintain a configured rate
Managing packet order during congestion
Drag a concept onto its matching description — or click a concept then click the description.
Agentless automation using YAML playbooks
Agent-based configuration management using Puppet DSL
Agent-based using Ruby recipes
Agent-based with remote execution
Standard for network configuration and state data
A network engineer is writing a Python script using the requests library to interact with a Cisco IOS XE device's RESTCONF API. The script needs to authenticate using basic authentication and retrieve interface details. The engineer writes the following code snippet:
import requests
url = 'https://192.168.1.1/restconf/data/ietf-interfaces:interfaces' headers = {'Accept': 'application/yang-data+json'} response = requests.get(url, headers=headers, auth=('admin', 'password'), verify=False)
However, the script returns a 401 Unauthorized error. What is the most likely cause?