300-535 Sample Questions & Answers
Free Automating and Programming Cisco Service Provider Solutions (SPAUTO) practice questions with worked answers and explanations. See how the ExamJungle simulator prepares you — then jump into the full test.
Launch the full 300-535 simulator →Showing 10 of 20 free samples.
- Question 1Intermediate
Automation APIs and Protocols · Compare the NETCONF datastores
A financial services company is automating its network infrastructure using a model-driven approach. The core network runs on Cisco IOS XR devices, and the primary goal is to achieve a single source of truth for both intended configuration and operational state. The operations team needs to be able to roll back to any previous valid configuration state with a single atomic transaction. Additionally, the automation platform must be able to validate configurations against YANG models before they are applied.
The current automation tooling consists of custom Python scripts that use SSH and NetMiko to push CLI commands. This has led to issues with idempotency and state management. The company wants to adopt a standardized protocol and data store model to solve these problems.
Which NETCONF datastore best fulfills the requirement for maintaining a candidate configuration that can be modified and validated in isolation before being committed to the live network?
Show answer & explanation
Correct answer: C
The
candidatedatastore is specifically designed for this purpose. It acts as a staging area where configurations can be built, modified, and validated without affecting the live network (therunningdatastore). Once the changes in thecandidatedatastore are complete and validated, they can be committed to therunningdatastore in a single, atomic transaction. This perfectly matches the company's requirement for isolated changes and transactional commits. Therunningdatastore is the live configuration, andstartupis the configuration loaded on boot. - Question 2Intermediate
Automation APIs and Protocols · Implement configuration and operation management using RESTCONF protocol
An automation script needs to retrieve the BGP neighbor state from an IOS XR router using RESTCONF. The relevant YANG container is
bgpwithin theCisco-IOS-XR-ipv4-bgp-opermodel. The router's IP is 192.168.1.1. Which URL is the correct RESTCONF API endpoint to access this operational data?Show answer & explanation
Correct answer: C
The standard RESTCONF URL structure for accessing data is
/restconf/data/{module}:{container}. For operational data (state data), you still use the/dataresource path. The distinction between config and state data is handled by theconfigkeyword within the YANG model itself (config truevsconfig false). Therefore, the correct URL uses/restconf/data/followed by the module name (Cisco-IOS-XR-ipv4-bgp-oper) and the top-level container (bgp). - Question 3Advanced
Network Device Programmability · Construct a Python script using NETCONF with YDK
A developer is writing a Python script using YDK to create a new BGP neighbor on an IOS XR device. The script needs to handle potential errors, such as the device being unreachable or the configuration being invalid. Which YDK exception class should be specifically caught to handle errors related to the NETCONF RPC operation itself?
Show answer & explanation
Correct answer: C
YDKOperationErroris the specific exception raised by YDK when a NETCONF operation (likeor) fails on the server side and returns anelement. This is the correct exception to catch for issues like invalid configuration.YDKServiceProviderErroris for connection issues, andYDKModelErroris for issues with the YANG model itself (e.g., trying to set a value of the wrong type).YDKErroris the base class and is too generic. - Question 4Intermediate
Automation APIs and Protocols · Compare common data types (JSON, XML, YAML, plain text, gRPC, and protobuf)
A network architect is designing a telemetry collection system. The primary requirement is to stream large volumes of data with minimal overhead and strong data typing. The data format must be binary and efficient for machine-to-machine communication. Which combination of data format and transport protocol meets these requirements most effectively?
Show answer & explanation
Correct answer: C
Protocol Buffers (Protobuf) is a binary serialization format that is highly efficient and strongly typed. gRPC is a high-performance RPC framework that uses HTTP/2 for transport and Protobuf as its default data format. This combination is specifically designed for high-volume, low-latency, machine-to-machine communication, making it ideal for modern telemetry systems. JSON and XML are text-based and less efficient, and YAML is not typically used for high-speed streaming.
- Question 5Intermediate
Network Device Programmability · Deploy device configuration and validate operational state using NetMiko
An engineer needs to automate the configuration of an interface description on an IOS XE device using NetMiko. The device is only accessible via a bastion host. Which argument must be included in the
ConnectHandlerdictionary to correctly proxy the SSH connection through the bastion host?Show answer & explanation
Correct answer: B
NetMiko uses the
paramikolibrary underneath for SSH connections. To use a bastion host or SSH jump host, you need to pass proxy information to paramiko. The correct way to do this in NetMiko'sConnectHandleris by using thessh_proxyparameter. This parameter takes a dictionary that defines the proxy command, which is typicallyssh -W %h:%p user@bastion_host. - Question 6Beginner
Automation and Orchestration Platforms · Identify the uses of Cisco WAE
A service provider uses Cisco WAE to perform network planning. An engineer needs to simulate the impact of a fiber cut between two major POPs on all SR-TE policies in the network. Which Cisco WAE feature is specifically designed for this type of what-if failure analysis?
Show answer & explanation
Correct answer: B
Cisco WAE's Simulation Analysis tool is the correct feature for performing 'what-if' scenarios. It allows engineers to simulate failures of network elements like nodes, circuits, or SRLGs and observe the impact on traffic, utilization, and service paths (including SR-TE policies) without affecting the live network. Demand Deduction is used to infer traffic demands, and Changeover Analysis is for comparing two network plans.
- Question 7Intermediate
Network Programmability Foundation · Describe the challenges encountered and patterns used when consuming APIs synchronously and asynchronously
A Python script is being developed to consume a REST API that sometimes experiences delays and returns a
503 Service Unavailableerror. The script must be resilient and retry the API call up to three times with a 5-second delay between attempts. Which programming concept or pattern is most suitable for implementing this logic?Show answer & explanation
Correct answer: B
A
forloop (orwhileloop) combined with atry...exceptblock is the standard pattern for implementing retry logic. The loop controls the number of attempts. Inside the loop, thetryblock contains the API call. If the call fails and raises an exception (e.g., for a 503 status), theexceptblock catches it, waits for a specified delay, and allows the loop to continue to the next attempt. Asynchronous callbacks and multithreading are for concurrency, not for sequential retries. - Question 8Beginner
Automation APIs and Protocols · Interpret a YANG module tree generated by pyang
What is the primary function of the
pyangtool in a YANG-based automation workflow?Show answer & explanation
Correct answer: C
pyangis a command-line tool used to work with YANG models. Its primary functions are to validate the syntax and semantics of YANG modules and to transform them into various other formats. One of its most common uses is to generate a human-readable tree structure of the data model, which helps developers understand the model's hierarchy and available nodes. It does not generate YDK bindings (that'sydk-gen) or act as a NETCONF client. - Question 9Advanced
Network Device Programmability · Construct Xpath notation for a given node or instance of a node
An engineer is constructing an XPath expression to select the operational state of a specific BGP neighbor with IP address '192.168.10.1' from an IOS XR device. Given the following simplified YANG structure, which XPath is correct?
+--ro bgp +--ro instances +--ro instance [instance-name] +--ro instance-active +--ro default-vrf +--ro neighbors +--ro neighbor [neighbor-address] +--ro connection-state? stringShow answer & explanation
Correct answer: A
This XPath expression correctly navigates the YANG tree from the root. It correctly identifies the list
neighborand uses a predicate[neighbor-address='192.168.10.1']to filter for the specific neighbor instance where the keyneighbor-addresshas the value '192.168.10.1'. Finally, it selects theconnection-stateleaf within that specific neighbor instance. The other options use incorrect syntax for list predicates or pathing. - Question 10Beginner
Network Programmability Foundation · Describe the benefits of Python virtual environments
A DevOps team is building a CI/CD pipeline for network changes using Ansible. They need to ensure that playbooks run in a consistent environment with specific versions of Ansible and dependent Python libraries like
pyats. Which tool is the best practice for managing these project-specific dependencies?Show answer & explanation
Correct answer: C
Python virtual environments (created with tools like
venvorvirtualenv) are the standard way to isolate project-specific dependencies. They allow a project to have its own set of installed packages and Python interpreter, independent of other projects and the system-wide Python installation. This prevents version conflicts and ensures that the CI/CD pipeline runs with the exact same library versions every time, as defined in arequirements.txtfile.
Ready for the real thing?
The full 300-535 simulator has every exam-style question, timed mode, and instant scoring.