Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Cisco Automating and Programming Cisco Enterprise Solutions 300-435 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 13 Total 125 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Network Automation Foundation

Skill tested: Constructs a RESTCONF JSON payload that follows an interface YANG data model.

An automation service must enable GigabitEthernet2 on an IOS XE device through RESTCONF. The relevant YANG tree shows a list named `interface`, keyed by `name`, with a `config` container containing `name`, `description`, and `enabled` leaves. The server uses the standard RESTCONF JSON representation and expects the request body to represent the interface list entry, not the enclosing module. Which payload correctly enables the interface named GigabitEthernet2 and sets its description to `Uplink to distribution`?

Correct Answer: C. {"ietf-interfaces:interface":[{"name":"GigabitEthernet2","config":{"name":"GigabitEthernet2","description":"Uplink to distribution","enabled":true}}]}
Explanation:

The YANG list is named `interface`, so its JSON representation is an array of entries, with the module-qualified list name used here and each entry containing its key and `config` container. The `enabled` leaf is a boolean, not the string `"true"`. The question specifies that the request body is the interface list entry representation rather than the top-level `interfaces` container, which rules out B. A omits the list and config structure, while D has the wrong object shape, omits the key at the entry level, and encodes a boolean as a string.

Question 2

New Single answer

Topic: Device-Level Network Automation

Skill tested: Uses Netmiko configuration and verification methods with safe IOS XE session handling.

A network team uses a Python script with Netmiko to apply a description to one IOS XE interface during a maintenance window. The script must use the device's normal SSH CLI, send the configuration as configuration commands, and verify the resulting running configuration before reporting success. A failed verification must not be treated as a successful deployment. Which implementation best meets these requirements?

Correct Answer: A. Call `send_config_set()` with the interface and description commands, then use `send_command()` with `show running-config interface ...` and inspect the returned configuration.
Explanation:

`send_config_set()` is Netmiko's configuration-oriented method: it handles entering and leaving configuration mode while sending the supplied IOS XE commands. A separate `send_command()` can retrieve the interface's running configuration, which the script should inspect for the expected description before reporting success. `send_command()` alone does not provide the appropriate configuration workflow, as in A. C only runs a show command, and an exception-free call does not prove the requested change took effect. D relies on a session remaining open rather than verifying device state.

Question 3

New Multiple answers

Topic: Controller-Based Network Automation

Skill tested: Builds Jinja2 loops and conditionals to render interface configuration from structured variables.

A controller renders IOS XE interface configuration from a Python data structure. Each interface record contains `name`, `description`, `enabled`, and an optional `access_vlan`. The template must emit the description for every interface, emit `no shutdown` when `enabled` is true and `shutdown` otherwise, and add switchport access configuration only when `access_vlan` is present. Select the two Jinja2 template fragments that correctly implement these requirements. Select TWO.

Correct Answer: D. `{% for intf in interfaces %}\ninterface {{ intf.name }}\n description {{ intf.description }}\n{% if intf.enabled %}\n no shutdown\n{% else %}\n shutdown\n{% endif %}\n{% if intf.access_vlan is defined %}\n switchport access vlan {{ intf.access_vlan }}\n{% endif %}\n{% endfor %}`; E. `{% for intf in interfaces %}\ninterface {{ intf.name }}\n description {{ intf.description }}\n{% if intf.enabled %}\n no shutdown\n{% else %}\n shutdown\n{% endif %}\n{% if intf.access_vlan is defined %}\n switchport mode access\n switchport access vlan {{ intf.access_vlan }}\n{% endif %}\n{% endfor %}`
Explanation:

Both A and D iterate over every interface, render its description, map the `enabled` value to the required shutdown command, and conditionally render VLAN configuration only when `access_vlan` exists. A also explicitly configures access mode when a VLAN is supplied; D meets the stated requirement to add the access VLAN configuration without adding that extra command. B reverses the enabled logic, C tests truthiness rather than whether the optional value is present and omits access mode, and E tests whether `enabled` exists instead of using its true or false value.

Question 4

New Single answer

Topic: Operations

Skill tested: Selects the IOS XE telemetry subscription method based on receiver and data-delivery requirements.

An operations team needs near-real-time interface counters from IOS XE devices for a central collector. The collector supports gRPC dial-out with Google Protocol Buffers, and network policy permits each device to initiate outbound connections to the collector but does not permit the collector to open inbound management sessions to devices. Engineers also need the device to periodically sample the specified YANG operational data. Which telemetry design best satisfies these constraints?

Correct Answer: D. Configure an IOS XE model-driven telemetry subscription using a periodic sensor path and a gRPC dial-out destination to the collector.
Explanation:

A model-driven telemetry subscription can specify operational data to sample and send it to a receiver using a configured transport and delivery mode. A gRPC dial-out destination makes the device initiate the connection, matching the firewall policy, while periodic sampling addresses the counter collection requirement. NETCONF polling in A is collector-initiated request/response rather than the requested streaming telemetry arrangement. C reverses the required connection direction, and syslog state-change messages do not provide periodic sampled counter data.

Question 5

New Single answer

Topic: AI in Automation

Skill tested: Mitigates exposure of credentials and sensitive network data in AI-assisted code development.

A network automation engineer asks a hosted generative AI coding assistant to debug a Python Netmiko script. The script includes a production device password and an exported configuration containing internal addressing. The organization permits use of the assistant for general code help but prohibits sending secrets or restricted configuration data to external services. The engineer still needs useful debugging assistance and must avoid embedding credentials in the revised script. What is the best next step?

Correct Answer: C. Remove or sanitize credentials and restricted configuration details, create a minimal reproducible example, and retrieve credentials at runtime from the approved secret store.
Explanation:

The risk is disclosure of secrets and sensitive network data to an external service, potentially through retention, logging, or unauthorized access. Sanitizing the input and reducing it to a minimal reproducible example preserves useful code assistance while honoring the stated data policy. Retrieving credentials from an approved secret store at runtime also avoids hard-coding them in the script. Replacing only the password leaves restricted configuration exposed, as in B. Encryption in source code does not protect the submitted configuration and is not a substitute for approved secret handling; A assumes unsupported service behavior.

Question 6

New Single answer

Topic: Device-Level Network Automation

Skill tested: Uses Netmiko connection parameters and explicit session cleanup for reliable IOS XE automation.

A scheduled automation job must connect to IOS XE devices over SSH and apply a small configuration change. Several devices use different platform identifiers and nondefault SSH ports, and the job runs unattended, so connection resources must be released even when a configuration operation raises an exception. The credentials are already supplied by the approved credential provider. Which approach is the most reliable?

Correct Answer: D. Create a `ConnectHandler` connection with the correct device type and port, perform configuration in a `try` block, and call `disconnect()` in a `finally` block.
Explanation:

Netmiko connection parameters such as `device_type` and `port` are supplied when creating the connection, typically with `ConnectHandler`. The correct platform type enables appropriate session behavior, and the per-device port supports nondefault SSH configurations. A `finally` block ensures `disconnect()` is attempted whether configuration succeeds or raises an exception, an important property for unattended jobs. B ignores per-device differences, C attempts to use a connection before creating it and can leak sessions after errors, and D confuses client-side connection parameters with IOS XE CLI commands.

Question 7

New Single answer

Topic: Controller-Based Network Automation

Skill tested: Controls Jinja2 whitespace to produce clean, correctly structured IOS XE configuration.

A controller generates IOS XE configuration using a Jinja2 template. The rendered commands are passed directly to a configuration deployment workflow, and a previous template produced blank lines and stray whitespace that made code review difficult. The team wants to keep the template readable while ensuring loop and conditional control lines do not appear in the rendered output and do not create excessive blank lines. Which template-rendering practice is most appropriate?

Correct Answer: A. Use Jinja2 whitespace-control syntax, such as `-{%` and `%}-` where appropriate, and inspect the rendered configuration before deployment.
Explanation:

Jinja2 whitespace-control markers trim whitespace around template blocks; used carefully, they can prevent control-line newlines and excess blank lines while preserving readable template structure. Reviewing the rendered result is valuable because whitespace trimming can also remove intended line breaks if applied indiscriminately. A needlessly sacrifices readability and does not reliably handle whitespace, while C would render Jinja2 syntax into the device configuration rather than execute it. D is incorrect because Jinja2 supports loops and conditionals as well as whitespace control.

Question 8

New Multiple answers

Topic: Operations

Skill tested: Combines periodic YANG sampling and gRPC dial-out settings in an IOS XE telemetry subscription.

A regional operations center is standardizing IOS XE model-driven telemetry. For a specified YANG operational path, each device must sample data at a fixed interval and send updates to a collector using gRPC dial-out. The collector address and transport port are known, and firewall rules allow outbound device connections only. The team wants a subscription design that clearly separates the data-selection and receiver-delivery functions. Which two configuration elements belong in that design? Select TWO.

Correct Answer: A. A destination-group definition that identifies the collector address, gRPC transport, and dial-out connection details.; E. A sensor-group definition that identifies the YANG data path and its periodic sample interval.
Explanation:

The sensor group selects what operational data to report and how it is sampled; for this requirement it contains the YANG path and periodic interval. The destination group defines where and how the device delivers the telemetry, including the collector and gRPC dial-out details. These functions are then associated through a telemetry subscription. C violates the outbound-only connection constraint and substitutes polling for the requested delivery model. D is not model-driven telemetry sampling, and E mixes data selection into the destination role instead of separating the subscription components.

Question 9

New Multiple answers

Topic: AI in Automation

Skill tested: Applies security controls to AI-generated network automation code before production use.

A team uses a generative AI assistant to draft Python automation for IOS XE. The model sometimes produces commands that are syntactically plausible but broader than requested, and its output must not be trusted with production access by default. The organization requires human approval for changes, least-privilege credentials, and evidence that generated changes behave as intended. Which two controls best reduce the risk of harmful AI-generated automation? Select TWO.

Correct Answer: C. Use a least-privilege account and require an explicit review or approval step before applying changes to production devices.; E. Review and validate the generated code, then test it against a representative lab or nonproduction device before approval for production.
Explanation:

AI-generated code can contain unsafe scope, faulty assumptions, or unintended commands, so code review and testing in a representative nonproduction environment provide behavioral evidence before rollout. Least-privilege credentials limit potential impact, and an approval gate ensures a person authorizes production changes. A grants excessive trust and access to unverified output. Removing logs and verification reduces auditability rather than improving security. A syntax check, as in E, confirms parseability but not the correctness or safety of the resulting network change.

Question 10

New Single answer

Topic: Network Automation Foundation

Skill tested: Maps YANG list keys and leaf types to correctly structured RESTCONF JSON.

A developer is implementing a RESTCONF update for an IOS XE interface using a YANG model. The model represents interfaces as a keyed list; each list entry has a `name` key and a `config` container containing `name`, `description`, and boolean `enabled` leaves. The endpoint requires the module-qualified interface list representation. The update must target `Loopback10`, set the description to `Monitoring endpoint`, and administratively disable the interface. Which JSON structure correctly represents the list entry?

Correct Answer: B. `{"ietf-interfaces:interface":[{"name":"Loopback10","config":{"name":"Loopback10","description":"Monitoring endpoint","enabled":false}}]}`
Explanation:

The keyed YANG list is represented as an array under the module-qualified `ietf-interfaces:interface` name. Each entry includes its `name` key and the `config` container, whose `enabled` leaf must be a JSON boolean. A therefore matches the stated schema and disables the interface with `false`. B represents the list as an object and uses a string for the boolean. C uses the enclosing `interfaces` container and omits required list-entry structure as specified by the endpoint. D omits the key at the entry level and enables rather than disables the interface.

Question 11

New Single answer

Topic: Device-Level Network Automation

Skill tested: Verifies IOS XE configuration state instead of relying on successful command transmission.

An engineer's Netmiko deployment script reports success after `send_config_set()` returns without raising an exception. In practice, some devices reject a command because of a platform-specific limitation, yet the job still marks the change complete. The team needs a minimal verification improvement that confirms the intended state on each device and can flag a mismatch for remediation. Which change should be made?

Correct Answer: C. After sending the configuration, issue a targeted `show` command with `send_command()` and compare the returned state with the expected configuration.
Explanation:

Successful transmission is not the same as successful application: a device may reject or ignore a command without the deployment code detecting the desired state. A targeted operational or running-configuration query followed by comparison with an expected value provides direct verification and supports explicit failure handling. Increasing a timeout in A does not establish correctness. Repeating commands can mask errors or create unnecessary changes, and a prompt only indicates session state, not whether the configuration took effect.