Cisco CCNP Enterprise ENCOR (350-401) · Domain 6 · 15% of exam

Automation and Artificial Intelligence

Drill 19 practice questions focused entirely on Automation and Artificial Intelligence for the Cisco 350-401 exam. Tap an answer for instant feedback and a full explanation — no sign-up, always free.

Verified answer19 questions
Question 1 of 19

A network automation team must choose an orchestration tool for a fleet of 400 Cisco IOS-XE routers. The security team has a strict policy prohibiting the installation of any persistent third-party software daemons on the network devices, and the devices already have SSH enabled for management. Which characteristic of an agentless orchestration tool best satisfies these requirements?

Reviewed for accuracy · Report an issue
Question 2 of 19

A network engineer is writing a Python script that calls the Cisco Catalyst Center Intent API endpoint GET /dna/intent/api/v1/network-device to retrieve the full inventory. The lab has 850 managed devices, but each API response only returns the first 500 devices. The engineer must retrieve all devices without changing the endpoint. What is the most appropriate way to obtain the remaining records?

Reviewed for accuracy · Report an issue
Question 3 of 19

A network engineer writes an EEM applet named GATHER-STATE that should collect 'show tech-support' output and write it to flash whenever the engineer manually invokes it during a troubleshooting session, rather than being triggered automatically by any system event. Which event detector configuration statement should be used in the applet?

Reviewed for accuracy · Report an issue
Question 4 of 19

A network engineer needs an EEM applet on a core switch that automatically bounces GigabitEthernet1/0/24 whenever the interface goes into an err-disabled state. The engineer wants the applet to trigger off the syslog message that is generated at that moment and then issue a shutdown followed by a no shutdown on the interface. Which EEM configuration correctly accomplishes this?

Reviewed for accuracy · Report an issue
Question 5 of 19

A network engineer wants an IOS device to automatically archive its running configuration to a TFTP server every day at 2:00 AM without any manual intervention or external scheduler. Which EEM applet configuration correctly accomplishes this?

Reviewed for accuracy · Report an issue
Question 6 of 19

A network engineer is building a JSON payload to POST a list of two VLANs to the Catalyst Center API. Each VLAN must include a numeric 'id' and a string 'name'. Which of the following is a syntactically valid JSON document that meets these requirements?

Reviewed for accuracy · Report an issue
Question 7 of 19

A network engineer writes a Python script to parse a Cisco Catalyst Center API response. The JSON response is loaded into a variable named 'data' with this structure: {"response": [{"hostname": "edge-sw1", "managementIpAddress": "10.1.1.5", "reachabilityStatus": "Reachable"}]}. Which line of Python correctly assigns the management IP address of the first device to a variable called 'ip'?

Reviewed for accuracy · Report an issue
Question 8 of 19

A network engineer writes the following Python snippet to print the hostname of each device returned by a Catalyst Center inventory query: devices = [ {"hostname": "core-sw1", "role": "CORE"}, {"hostname": "acc-sw2", "role": "ACCESS"}, {"hostname": "acc-sw3", "role": "ACCESS"} ] for d in devices: print(d["hostname"]) What output does this script produce?

Reviewed for accuracy · Report an issue
Question 9 of 19

A network engineer writes a Python script that uses the requests library to pull device inventory from Cisco Catalyst Center. The relevant lines are: resp = requests.get(url, headers=hdr, verify=False) if resp.status_code == 200: data = resp.json() for d in data['response']: print(d['hostname']) When run, the script prints nothing and raises no exception. The engineer confirms the token is valid and the URL is correct. Inspecting the raw response shows an HTTP 200 with a body of {"response": []}. What does this behavior indicate?

Reviewed for accuracy · Report an issue
Question 10 of 19

A network automation engineer is writing a Python script to create a new network device entry in Cisco Catalyst Center using the Intent API. The API requires a POST request with a JSON body and an authentication token passed in the request header. The engineer has already obtained the token and stored it in the variable 'token'. Which line correctly sends the POST request so that the payload is serialized to JSON and the token is included in the required header?

Reviewed for accuracy · Report an issue
Question 11 of 19

A network engineer is writing a Python script to modify the description of an existing device interface in Cisco Catalyst Center. The full resource already exists and must be completely replaced with a new representation supplied in the request body. The script currently uses 'requests.post()' but the API returns unexpected behavior. Which change best aligns the HTTP method with the intended operation of fully replacing an existing resource?

Reviewed for accuracy · Report an issue
Question 12 of 19

A network engineer writes a Python script to submit a configuration task to Cisco Catalyst Center and then poll a status endpoint until the task completes. The relevant portion of the script is: ```python import requests, time status = "PENDING" while status != "SUCCESS": r = requests.get(url, headers=headers) status = r.json()["response"]["status"] time.sleep(2) print("Task finished") ``` The task on Catalyst Center actually fails and the API returns a status value of "FAILURE". What is the behavior of this script?

Reviewed for accuracy · Report an issue
Question 13 of 19

A network engineer submits a POST request to the Cisco Catalyst Center Intent API to create a new network device onboarding task. The HTTP response returns a status code of 202 along with a JSON payload containing a 'taskId' and a 'url' field. What does this response indicate the engineer should do next?

Reviewed for accuracy · Report an issue
Question 14 of 19

A network engineer is testing a RESTCONF interface on a Cisco IOS XE router. They issue a GET request to https://198.51.100.5/restconf/data/ietf-interfaces:interfaces to read the current interface configuration. The device returns the requested data. Which HTTP response status code should the engineer expect to receive for this successful read operation?

Reviewed for accuracy · Report an issue
Question 15 of 19

A network engineer uses a Python script to push an interface description change to a router via RESTCONF. The script sends a PUT request to the URI /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet2 with a valid JSON body. The response returns HTTP status code 204 with an empty response body. What should the engineer conclude?

Reviewed for accuracy · Report an issue
Question 16 of 19

A network engineer writes a script that sends a GET request via RESTCONF to a Cisco IOS XE device using the URL https://192.0.2.10/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet9. The device is reachable, RESTCONF is enabled, and authentication succeeds, but the response returns HTTP status code 404. What is the most likely cause of this response?

Reviewed for accuracy · Report an issue
Question 17 of 19

A network engineer writes a script that sends an HTTP POST to a RESTCONF endpoint to create a new loopback interface named Loopback100. The interface already exists on the device. When the script runs, the RESTCONF server rejects the request. Which HTTP status code will the server most likely return to indicate that the data resource already exists?

Reviewed for accuracy · Report an issue
Question 18 of 19

A network automation team is moving away from screen-scraping CLI output with brittle regular expressions. They want to programmatically configure and validate device state using a standardized, vendor-neutral schema that defines allowed data types, constraints, and hierarchy. Which statement best describes the primary benefit YANG provides in this workflow?

Reviewed for accuracy · Report an issue
Question 19 of 19

A network automation engineer is reviewing a YANG module used to model interface configuration on a Catalyst switch. The engineer needs to identify the node type that holds a single value of a specific type (such as a string or integer) and cannot contain any child nodes. Which YANG statement defines this kind of node?

Reviewed for accuracy · Report an issue

More 350-401 practice

Keep going with the other Cisco CCNP Enterprise ENCOR (350-401) domains, or take a full timed mock exam.

← Back to 350-401 overview