Exam Information
Free practice questions with explanations
Cisco 300-435 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 15
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Network Automation Foundation
A network engineer must retrieve the running configuration of the interface GigabitEthernet1/0/1 on a Cisco IOS XE switch over RESTCONF. The team wants a response that contains only the Cisco-IOS-XE-native interface subtree, not the entire configuration datastore. Which request meets this requirement?
Correct Answer: BExplanationRESTCONF resource paths follow the YANG hierarchy, and the native model keys interfaces by type and name under native/interface, with the slash in the name percent-encoded as %2F. The data resource returns only the requested subtree. The IETF interfaces path would return the standard interface model rather than the native representation the team asked for. A path under restconf/running is not a valid RESTCONF resource root, and a query string with content and interface parameters is not how RESTCONF selects a node.
-
2 Question 2 Single choice Device-Level Network Automation
A retail chain runs Cisco IOS XE access switches in 300 stores. A Python script using Netmiko pushes a VLAN change, and the change must be committed only if every device in a store accepts it. The security team forbids storing enable passwords in scripts, and the change window is short. The script currently loops through devices and calls send_config_set() on each, but a failure on one device leaves earlier devices changed. Which change best resolves the partial-change risk on the switches?
Correct Answer: AExplanationNETCONF on IOS XE supports a candidate datastore, and the lock, edit-config and commit operations let a script stage changes and make the commit decision only after validation. Netmiko send_config_set() applies each line directly to running configuration, so a failed device cannot be rolled back by the script. Paramiko exec_command() gives no transactional guarantee. Saving with write_memory() after each device makes the partial change permanent. Encrypting the enable password still leaves the script applying changes device by device, which fails the all-or-nothing requirement.
-
3 Question 3 Single choice Controller-Based Network Automation
A campus team uses a controller REST API to onboard 40 new access switches during Day-0 provisioning. The controller returns HTTP 202 for each provisioning request and the switches show as pending for several minutes. The script immediately queries the same device record and receives HTTP 404, so it marks the switch as failed and retries the POST, creating duplicate tasks. The team must avoid duplicates and keep the workflow fast. What should the engineer change?
Correct Answer: CExplanationAn HTTP 202 Accepted response means the request has been queued for asynchronous processing, so the correct troubleshooting step is to follow the task or status link that the API returns and wait for its terminal state. The 404 occurred because the device record did not exist yet, not because the request failed. Resending POSTs creates duplicates, which the team explicitly wants to avoid. A fixed sleep is unreliable and slows the run, and switching to PUT does not make the controller treat asynchronous tasks as idempotent merges.
-
4 Question 4 Single choice AI in Automation
A managed service provider wants an AI assistant to answer questions about device inventory and interface status across customer sites. The assistant will call an MCP server built with Python FastMCP that wraps the controller's REST API. Compliance requires that the assistant must never be able to change device configuration, and some customer records are restricted to read-only staff. Which design best satisfies these constraints?
Correct Answer: AExplanationEnforcing least privilege at the MCP server boundary is the control that holds regardless of what the model decides. Limiting exposed tools to read operations and binding the server to a read-only controller account means a prompt injection cannot cause a configuration change. Tenant filtering in the server keeps restricted records from reaching the model. Relying on a system prompt is not an enforcement mechanism. Auditing after the fact does not prevent changes. An arbitrary-method tool gives the model full control of the API surface.
-
5 Question 5 Single choice Operations
A service provider wants to be notified immediately when a core Cisco IOS XE router's interface operational status changes, without the controller polling the device. The router supports model-driven telemetry. The NOC uses an existing receiver at 10.20.30.40 on port 57500 and requires the subscription to survive a router reload. Which configuration approach is correct?
Correct Answer: AExplanationA configured model-driven telemetry subscription on IOS XE is stored in the device configuration, so it persists across reloads, and it can send on-change notifications for interface operational data. A dynamic subscription created over RESTCONF or NETCONF exists only for the lifetime of that session and is lost when the session ends, which fails the reload requirement. SNMP traps are not model-driven telemetry, and EEM periodic show output is polling rather than streaming.
-
6 Question 6 Single choice Controller-Based Network Automation
A bank's security team requires that all access-list changes on its Cisco IOS XE edge devices be checked against an approved policy before deployment. The automation pipeline must detect devices whose running ACLs have drifted from the approved template and report them, without changing devices automatically. Which solution best meets the requirement?
Correct Answer: AExplanationCompliance monitoring here means reading the device's current ACL state, comparing it with the approved intent, and reporting deviations, which RESTCONF retrieval supports without writing anything. Overwriting the running configuration nightly violates the no-automatic-change requirement and can disrupt traffic. EEM reapplying ACLs is an automatic remediation that the team forbade. NetFlow hit counts show traffic matches, not configuration drift, so they cannot detect a changed rule.
-
7 Question 7 Single choice Network Automation Foundation
A developer is building a RESTCONF client for a Cisco IOS XE device and needs to construct the JSON body for creating a new loopback interface. The team uses YANG Suite to validate the payload against the IETF interfaces model. The request is rejected with an error stating the data does not conform to the schema. The body contains a top-level key of ietf-interfaces:interface and a name value of Loopback100. What is the most likely cause?
Correct Answer: BExplanationIn the ietf-interfaces model, the type leaf identifies the interface type and is mandatory for a configured interface, so a create request without it fails schema validation, which YANG Suite reports as a data error. The name Loopback100 is a valid string for the name key. The JSON wrapper for a list is a named array under the module-prefixed key, so the singular key is the correct form. POST is the standard method for creating a list entry in RESTCONF.
-
8 Question 8 Multiple choice AI in Automation
A network team is evaluating an AI-assisted code generation tool that produces Netmiko scripts for changing ACLs on production routers. The security architect is concerned about risks specific to this workflow. Which TWO risks should the architect identify as the most significant for this solution? (Choose two.)
Correct Answer: B, CExplanationThe most serious risks are data leakage and credential exposure. Code assistants often reproduce secrets seen in prompts or examples, and sending device configuration to an external model service can disclose internal topology or customer data. Incompatible drivers and Python version support are real but ordinary defects caught by testing, not security risks specific to AI-assisted generation. Readability is a maintainability concern, not a security one.
-
9 Question 9 Drag and drop Device-Level Network Automation
A network engineer must choose the right Python library for each device-management task on Cisco IOS XE devices in a mixed fleet. Match each requirement to the library that fits it best.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Issue HTTP GET and PATCH requests against YANG-modeled resources returning JSONLock the candidate datastore, edit a YANG-modeled configuration, and commit using NETCONFSend a set of CLI configuration lines and capture the output from an SSH session with prompt handlingrequestsParamikoncclientPyYAMLNetmikoCorrect Answer:- Send a set of CLI configuration lines and capture the output from an SSH session with prompt handling → Netmiko
- Lock the candidate datastore, edit a YANG-modeled configuration, and commit using NETCONF → ncclient
- Issue HTTP GET and PATCH requests against YANG-modeled resources returning JSON → requests
ExplanationNetmiko is built around SSH sessions that send CLI commands and handle device prompts, which suits CLI configuration. The ncclient library implements the NETCONF protocol, including datastore locks and commit operations that a transactional change needs. Plain HTTP calls against RESTCONF resources are handled by the requests library, since RESTCONF is ordinary HTTP with YANG-derived JSON. Paramiko is a lower-level SSH library without device-aware prompt handling, and PyYAML parses YAML data rather than managing device sessions.
-
10 Question 10 Dropdown Controller-Based Network Automation
A Python developer is writing a Jinja2 template that renders VLAN configuration for a switch. The variable vlans is a list of dictionaries, and each dictionary may or may not include a name key. The template must emit a name line only when the key is present, and it must render the vlan number as a string without surrounding whitespace. Complete the template by selecting the correct value for each blank.
Choose the correct value for each blank.
{% for vlan in vlans %}vlan {% if vlan %} name {{ vlan.name }}{% endif %}{% endfor %}Correct Answer:{% for vlan in vlans %}vlan vlan.id{% if vlan is defined %} name {{ vlan.name }}{% endif %}{% endfor %}
ExplanationThe Jinja2 test is defined returns true only when the variable exists in the context, which is exactly what is needed to check for an optional dictionary key before rendering. The is none test would fail with an undefined key because the attribute lookup returns undefined rather than None in default mode, and is not None and exists are not valid Jinja2 tests. The vlan number in the loop is accessed as the id key in the sample data structure, so vlan.id produces the correct value. The other options refer to keys that are not in the data.
-
11 Question 11 Order list Network Automation Foundation
An engineer must produce a valid NETCONF edit-config payload for a new loopback interface on a Cisco IOS XE device, starting from a YANG module. The payload must be validated before it is sent to the device. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Validate the payload against the YANG schema using a tool such as pyang or YANG Suite
- Send the edit-config operation with the candidate target to the device
- Construct the XML payload with the correct namespace for the module
- Locate the target container and list in the YANG module using the module tree output
- Confirm the change by issuing a get-config request for the new interface
Correct Answer:- Locate the target container and list in the YANG module using the module tree output
- Construct the XML payload with the correct namespace for the module
- Validate the payload against the YANG schema using a tool such as pyang or YANG Suite
- Send the edit-config operation with the candidate target to the device
- Confirm the change by issuing a get-config request for the new interface
ExplanationThe engineer first locates the target node in the YANG tree so the payload follows the schema hierarchy. Next the XML is built using the module namespace, then validated against the schema before any device interaction so structural errors are caught early. Only after validation is the edit-config sent, and a get-config confirms the result. Sending before validation risks a rejected RPC and wasted effort, and confirming before the change is applied tests nothing.
-
12 Question 12 Single choice Operations
A monitoring team uses a controller webhook to receive device health alerts. After a recent change, the webhook receiver intermittently returns HTTP 500 and the controller retries the notification repeatedly, producing a flood of duplicate tickets in the service desk. The receiver cannot be changed in the short term. The team needs to stop duplicate tickets while keeping alerts flowing. What should the engineer implement first?
Correct Answer: BExplanationWebhook delivery is at-least-once, so the receiver and downstream system must tolerate redelivery, and a unique event identifier in the payload allows the service desk integration to recognize and skip repeats. This fixes the duplicate tickets without changing the unstable receiver. Filtering to critical events hides real alerts. Polling loses the event-driven behaviour and adds latency. A longer timeout does not stop retries after HTTP 500 responses.
-
13 Question 13 Single choice Controller-Based Network Automation
A university IT team manages Cisco IOS XE access switches through a controller that exposes a REST API. The team wants a Jinja2-based template that renders a standard set of interface commands for each port in a list, with a different command when the port is marked as a uplink. The template is used with Ansible's template module. During rendering, the engineer notices that a loop variable is unexpectedly undefined inside an inner block. Which Jinja2 construct should the engineer use to make the template both correct and readable?
Correct Answer: DExplanationA for loop combined with an if conditional keeps every port's attributes within the loop scope, so the uplink test is evaluated correctly for each item. Macros and included templates do not see loop variables unless they are explicitly passed, which is the source of the undefined value. Jinja2 has no native while loop, so that option does not exist in the language.
-
14 Question 14 Dropdown Operations
A network operations team wants a Python script to read the current software version of Cisco IOS XE devices through the controller's REST API and compare it with the approved release list. The script uses the requests library with a session that stores the authentication token. Complete the code by selecting the correct value for each blank.
Choose the correct value for each blank.
session.headers.update({'Accept': 'application/'}); resp = session.get(url, verify=); resp.raise_for_status()Correct Answer:session.headers.update({'Accept': 'application/json'}); resp = session.get(url, verify=True); resp.raise_for_status()
ExplanationThe controller returns JSON for these operational resources, so the Accept header should request application/json to get a parseable structured response. Setting verify to True enforces TLS certificate validation, which is the secure default for production controller access. Setting it to False would disable certificate verification and is a security weakness. None and 0 are not valid boolean values for the verify parameter, and XML and YAML do not match the controller's JSON output here.
-
15 Question 15 Single choice Device-Level Network Automation
A network engineer runs a Python script that uses ncclient to configure a Cisco IOS XE router. The script reads the router's current configuration with get-config, then adds a route through edit-config. The team wants the change to fail safely if another administrator modifies the router during the script run. Which combination of actions most directly satisfies this requirement?
Correct Answer: AExplanationThe NETCONF lock operation prevents other sessions from changing the datastore during the edit window, and releasing it in a finally block ensures the lock is freed even when an error occurs. NETCONF has no timestamp comparison in get-config, so that option describes a mechanism that does not exist. A longer session timeout does not protect against concurrent modification. Saving the startup configuration does not prevent a concurrent change from being applied during the run.
These are 15 of the 125 questions in the full 300-435 pack.
Get All 125 QuestionsGet all 125 questions & answers
Full access options for Cisco 300-435
Self-study
PDF Version
- 125 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 125 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 125 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the 300-435 Exam (Automating and Programming Cisco Enterprise Solutions) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.