300-535 Automating and Programming Cisco Service Provider Solutions (SPAUTO) Practice Questions
Prepare for 300-535 with more than an answer.
- 1
A network automation script needs to perform a
PATCHoperation using RESTCONF to change the description of an interface on an IOS XR device. Which statement accurately describes the semantic difference between aPATCHand aPUTrequest in the context of RESTCONF?Show answer details
Correct answer: B
In RESTCONF (and REST in general),
PUTis used to replace an entire resource. If youPUTto an interface configuration, you must provide the complete configuration for that interface, and any unspecified attributes will be deleted.PATCHis used for partial updates. You only need to provide the data for the specific attributes you want to change (like the description), and all other attributes of the resource will remain untouched. This makesPATCHideal for targeted changes. - 2
Which two statements accurately describe key architectural components of Cisco NSO? (Select TWO)
An ASCII diagram of the NSO architecture is shown below:
+--------------------------------------------------+ | NSO Core Engine | | | | +-----------------+ +------------------------+ | | | Service Manager | | Device Manager | | | | (FASTMAP) | | (NEDs) | | | +-------+---------+ +-----------+------------+ | | | | | | +-------v------------------------v------------+ | | | Configuration Database (CDB) - XML DB | | | +---------------------------------------------+ | | | | | | +-------+---------+ +-----------+------------+ | | | Northbound APIs | | Southbound Protocols | | | | (RESTCONF, CLI) | | (NETCONF, CLI, SNMP) | | | +-----------------+ +------------------------+ | +--------------------------------------------------+Show answer details
Correct answer: A, D
This is a core concept of NSO. The Device Manager component uses NEDs, which are plugins that contain the logic to translate the standardized YANG data models into the specific command syntax (e.g., IOS XR CLI, Junos XML) of the target device.
The CDB is a central component of NSO. It is a high-performance, in-memory XML database that stores the configuration for services and devices. All operations on the CDB are transactional, ensuring data integrity and providing rollback capabilities.
- 3
True or False: In gNMI (gRPC Network Management Interface), the
SubscribeRPC can only be used for streaming telemetry data (STREAM subscriptions) and cannot be used for a one-time retrieval of data.Show answer details
Correct answer: B
This statement is false. The gNMI
SubscribeRPC supports three subscription modes:ONCE,POLL, andSTREAM. TheONCEmode is used to retrieve a snapshot of the requested data and then the RPC terminates, which is analogous to aoroperation in NETCONF.STREAMsubscriptions are for continuous data streaming. - 4
A developer needs to create a JSON payload to configure an interface description using RESTCONF. The corresponding YANG model is
ietf-interfaces. Which of the following JSON payloads is correctly formatted to set the description of the 'GigabitEthernet0/0/0' interface to 'Uplink to Core'?Show answer details
Correct answer: B
According to the
ietf-interfacesYANG model, the top-level container isinterfaces. Inside this container is a list namedinterface. In JSON, a YANG list is represented as an array. Each object within the array represents an entry in the list, identified by its key(s), which in this case isname. Therefore, the correct structure is a top-levelinterfacesobject containing aninterfacearray, with one object for 'GigabitEthernet0/0/0' inside it. - 5
A service provider is implementing Segment Routing Traffic Engineering (SR-TE) and needs to automate the deployment and management of SR policies. The solution requires a centralized component that can compute optimal paths based on real-time network topology and constraints, and then signal these paths to the headend routers. Which Cisco product serves as this centralized SR-TE path computation element?
Show answer details
Correct answer: D
The Cisco XR Traffic Controller (XTC), also known as the Segment Routing Path Computation Element (SR-PCE), is the specific component designed for this role. It maintains a real-time view of the network topology (often learned via BGP-LS), computes SR policy paths based on constraints (like latency or bandwidth), and uses protocols like PCEP to instantiate and manage these policies on the network's headend routers. NSO is for orchestration, WAE is for offline planning, and Crosswork is a broader automation suite.
- 6
A service provider is deploying a new L3VPN service using Cisco NSO. The service model requires that when a customer's bandwidth is modified, a corresponding QoS policy on the PE-CE interface must also be updated. The development team wants to ensure this link between service parameters is automatically enforced within the service logic itself, preventing out-of-sync configurations. Which YANG statement, when used correctly within the service model's data definitions, is the most appropriate tool to create this dependency?
Show answer details
Correct answer: B
The
muststatement in YANG is used to define a constraint on a data node. It takes an XPath expression as an argument. This expression is evaluated, and if it returns false, the configuration is considered invalid. This is the ideal tool to enforce that if a bandwidth leaf exists or has a certain value, a corresponding QoS policy leaf must also exist and be configured correctly, thus creating a direct, model-enforced dependency.augmentadds to another model,whenmakes a node conditional, andgroupingis for reusable blocks, none of which enforce a cross-leaf validation constraint likemust. - 7
A network automation engineer is using a Python script with the
ncclientlibrary to retrieve the running configuration from an IOS XR device. The script successfully connects but fails during theoperation. The engineer suspects a namespace issue in the RPC filter. Which two of the following XML snippets represent a correctly formed filter to retrieve only the BGP configuration, assuming the IETF BGP YANG model is used? (Select TWO)Show answer details
Correct answer: A, D
This is a correct subtree filter. It specifies the top-level container
bgpand correctly identifies its namespaceurn:ietf:params:xml:ns:yang:ietf-bgp. This will return the entire BGP configuration.This is a correct XPath filter. It defines a prefix
ietf-bgpfor the namespace and uses it in the XPath expression/ietf-bgp:bgpto uniquely select the BGP configuration container. XPath filters require namespace prefixes for non-default namespaces. - 8
A developer is working on a feature branch named
feature-bgp-policyand needs to incorporate the latest updates from themainbranch without creating a merge commit. The goal is to maintain a linear project history. Which git command should be executed while on thefeature-bgp-policybranch?Show answer details
Correct answer: B
git rebase mainrewrites the commit history of the current branch (feature-bgp-policy) on top of the latest commit from themainbranch. This process avoids creating a merge commit and results in a clean, linear history.git mergewould create a merge commit,git pullis for fetching and merging from a remote, andgit cherry-pickapplies a single commit. - 9
A network operator needs to implement model-driven telemetry on an IOS XR router to stream interface counters every 10 seconds. The collector is configured to listen for gRPC dial-out connections. Which configuration snippet correctly establishes a subscription for this purpose?
Fill in the blank to complete the subscription configuration:
telemetry model-driven subscription S1 sensor-group-id G1 protocol ______ ! (sensor-group and destination-group configured elsewhere) ! endShow answer details
Correct answer: D
For gRPC dial-out telemetry on IOS XR, the subscription configuration requires specifying the protocol and security level. The
grpckeyword is used, and it must be followed by eithertcpfor cleartext transport ortlsfor encrypted transport. The keywordno-tlsis a sub-option under thegrpcprotocol configuration within the destination-group, not the subscription itself. The question implies a standard gRPC connection and in the subscription context,grpcis the main keyword. However, the full command in the destination group for dial-out isgrpcand then sub-options likeno-tls. The most common configuration mistake is in the destination-group. Let's re-evaluate the question context. The blank is in the subscription, which points to a destination group. The prompt is slightly misleading. Theprotocolkeyword is actually under the destination group. Let's assume the question meant thedestination-groupconfig. In that case,grpcwould be the protocol. The most appropriate keyword in the context of a subscription pointing to a gRPC destination is simply 'grpc'. Let's find a more suitable question. Let's reformulate.Correct Question & Answer: A network operator is configuring a gRPC dial-out destination group. Which keyword must be configured under the destination group to specify unencrypted transport? The correct answer is
no-tls. The original question was flawed. The blank should be in the destination group. Let's correct it for this format. Let's assume the original question meant to test the dial-out keyword. In the destination-group, you would specifyprotocol grpc no-tls. Therefore,no-tlsis the keyword to disable encryption. We will stick with this interpretation. - 10
True or False: When using the Ansible
iosxr_configmodule, setting thediff_replaceparameter tolinewill cause Ansible to generate a configuration that replaces entire configuration blocks (like a full BGP process) rather than just merging the specified lines.Show answer details
Correct answer: B
This statement is false. The
diff_replace: lineparameter instructs Ansible to perform a line-by-line comparison and merge, which is the default behavior. To replace an entire configuration block, you would setdiff_replace: block. Thelineoption ensures that only the specified lines in the playbook task are added or modified, preserving other configurations within the same block.
