Automate APIs and Protocols (10%)
ENAUTO · 30 questions
- A network engineer is hand-building an XML edit-config payload for an interface YANG module and wants the NETCONF server to accept it on the first attempt. The model defines containers, a list with a key leaf and several leaves, all under a module namespace. Which mapping rule makes this XML a valid instance of that model?
- A team manages IOS XE devices over RESTCONF with JSON payloads. An engineer must change the description on interface GigabitEthernet1/0/1 while leaving every other configured leaf on that interface exactly as it is. Which RESTCONF method and URL should carry that single YANG data update?
- A teammate is choosing between NETCONF and RESTCONF for a nightly job that must save a file containing only the device's current configuration, then stage a change for operator review before it takes effect. Which NETCONF operation and datastore pairing fits both parts of that job?
- A managed-service team runs one Python inventory job across a fabric where the second vendor documents OpenConfig support for interfaces and BGP but implements only a subset of the IETF models. The job must also set a Cisco-only QoS behaviour that exists only in the platform's own model. Which YANG model family should the team choose for each part of the job?
- During a change window an engineer must send a RESTCONF request that adds a loopback interface to an IOS XE router. The payload must follow the device's YANG model, and YANG Suite is the approved tool. Which YANG Suite workflow helps build the correctly structured JSON instance?
- A developer models a switch interface with YANG where config holds a container interfaces, a list interface keyed by name, and leaf enabled. The REST payload must mirror that hierarchy exactly. Which JSON instance correctly maps the YANG leaf, container and list to JSON structure?
- During a maintenance window, your team must load a new ACL on 40 branch routers, let the change lead inspect exactly what will be written beforehand, and drop the entire change if it is rejected, so every router ends either fully updated or completely untouched. Which NETCONF staging workflow fits this requirement?
- An engineer must change only the description leaf of an existing Loopback0 interface on an IOS XE router through RESTCONF. The YANG module, list key and datastore path are known, and the entry already holds other configured leaves. Which request makes that single change correctly?
- A netops developer must push VLAN config via RESTCONF to IOS XE but keeps getting 400 errors from hand-built JSON. The team has the exact YANG models from the device and needs valid, namespaced payloads quickly. Which YANG Suite method builds a correct JSON instance?
- A network team automates 40 IOS XE routers from a CI runner whose security group may open only TCP 443 to the devices, and its Python libraries already parse JSON. The job must both read operational state and change configuration on every router. Which protocol and payload format should the team standardize on?
- An engineer prepares a NETCONF edit-config request for a Cisco IOS XE router using YANG Suite. In the tool they load the native model and build a message that gives GigabitEthernet0/1 the description uplink-to-core while leaving it administratively enabled. Which XML structure correctly expresses the interface list entry for the edit-config request?
- A developer hand-writes a NETCONF edit-config XML payload for a YANG module that defines interface configuration. The server rejects it, saying the target node does not exist, even though the tag names and hierarchy match the model. Which statement about the namespaces in that XML instance is accurate?
- You export a NETCONF edit-config payload from YANG Suite for a new loopback interface and its IPv4 address. The tool shows the module, the container tree, and the operation attribute before you copy the XML. Which structural feature makes the export a valid instance of the YANG model?
- A developer must change only the description of GigabitEthernet1/0/1 through RESTCONF on a switch with hundreds of interfaces, and every other leaf in that interface entry has to stay exactly as it is. The entry already exists in the running datastore. Which RESTCONF method and URL structure should the script use?
- A developer models a new campus VLAN with YANG using leaf vlan-id and container vlans from Cisco-IOS-XE-native. The generated NETCONF XML was rejected for wrong hierarchy and missing namespace, though leaf names look right. The script must produce valid device config. Which mapping from YANG model to XML instance with namespaces should the script generate to configure the VLAN correctly?
- A YANG module named example-bgp-config defines container bgp with leaf router-id of type string, plus list neighbor keyed by leaf address of type string and carrying leaf remote-as of type uint32. The engineer is decoding a RESTCONF response as JSON. Which structure for the bgp member maps the container, list and leaf nodes correctly under RFC 7951?
- A network engineer runs pyang -f tree on a vendor YANG module that models interfaces and posts the output to the team channel. The tree shows rw ifName as a leafref, ro ifIndex as a uint32, and a rw address list keyed by ip-address. The team wants to know which parts a NETCONF client may write. Which statement about the rw and ro flags in this pyang tree is correct?
- Your change script must apply a new QoS policy to twelve IOS XE switches in one maintenance window: each switch must accept the policy at commit time, or revert by itself if nobody confirms within five minutes. The team already has YANG models and SSH access. Which configuration protocol gives the script per-switch apply with automatic rollback?
- A YANG model defines a container system holding the leaf hostname and a list ntp keyed by server-address that also holds the leaf iburst. A teammate hand-writes the JSON instance for one NTP server. Which JSON structure matches the model faithfully?
- An automation team has loaded the Cisco-IOS-XE-native interface module into YANG Suite and needs a NETCONF edit-config RPC that sets one interface description. Which YANG Suite action generates the XML?
- A team's automation runs inside an existing web service that speaks HTTP, authenticates with OAuth bearer tokens, and parses responses with a standard JSON library. It must still read and write YANG configuration on branch routers. Which model-driven protocol fits this tooling best?
- A network automation team is building one YANG-based configuration pipeline for BGP neighbor baselines on Cisco IOS XE and Arista EOS. Both vendors advertise OpenConfig support, and the team has verified that its target releases support the same OpenConfig BGP leaves. A later change also sets a DMVPN Phase 3 knob that exists only on Cisco routers. Which model families should the team use for the baseline and for that knob?
- An engineer reads a pyang tree before writing a NETCONF edit-config that adds a sensor: container monitor (rw) holds list sensor keyed by [name], with leaves name (rw, string), interval? (rw, uint32) and last-sample (ro, int32). Which node in this pyang tree must be supplied when the sensor entry is created, and why?
- A team standardises on the OpenConfig interfaces model and builds its RESTCONF payload in YANG Suite's Data worksheet. You need the description change for interface GigabitEthernet0/0/1 to land in the running config. Which JSON structure should YANG Suite produce for that RESTCONF request?
- An engineer loads the Cisco-IOS-XE-native module in YANG Suite and exports JSON for a RESTCONF edit that sets a loopback interface description. The model stores interfaces as a list keyed by name, and the payload must round-trip through a RESTCONF server without ambiguity about which entry is being edited. Which JSON instance structure matches the YANG model for this interface edit?
- A YANG model defines interface as a list keyed by name, and every entry holds a config container with the leaves mtu and enabled. An engineer validates the JSON instance a RESTCONF server returns for one configured entry. Which JSON structure matches that model?
- A network engineer hand-writes a NETCONF edit-config payload from a YANG module that defines a container 'bgp' holding a leaf 'router-id'. The router parses the XML cleanly but rejects the request, reporting that bgp is absent from the schema although the module clearly defines it. Which namespace rule makes the instance match the YANG model?
- You are reviewing the pyang tree for YANG module example-ntp, used by a RESTCONF-managed NTP service: container ntp (rw) holds list server keyed by [address], with leaves address (rw, inet:ip-address), prefer? (rw, boolean) and reach (ro, yang:counter32). A teammate plans a PUT for one server entry. How does the tree diagram constrain what the client may PUT?
- A logistics company runs an all-Cisco IOS XE estate. Its automation must configure standard interface settings plus one Cisco-specific platform feature, and every change has to arrive through a single NETCONF session driven by one Python code path. Which YANG model family should the team standardize on?
- Our team standard mandates a NETCONF-only client for an IOS XE router, built in Python with an XML RPC envelope. The script must first read the entire configuration datastore while leaving out interface counters and link state, then place a change so it only becomes active after a commit step. Which NETCONF operation pair fits this workflow?