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

Free Cisco Automating Networks Using Cisco Platforms 200-901 Exam Questions

Last updated: · 14 practice questions with answers and explanations

Page: 1 / 33 Total 481 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Software Development and Design

Skill tested: Extracting selected values from nested JSON with Python dictionaries and lists.

A network inventory service returns JSON for each site. Your function receives the already-decoded Python object below and must return the hostname of the first device whose role is "edge"; if none exists, it must return None. The response can contain several devices, and device order is significant. The function must not assume that a matching device exists or search textually through the serialized JSON. Which implementation meets the requirement?

{"devices": [{"hostname": "sw-1", "role": "access"}, {"hostname": "rtr-2", "role": "edge"}]}

Correct Answer: C. def get_edge(data): for device in data["devices"]: if device["role"] == "edge": return device["hostname"] return None
Explanation:

The decoded response is a dictionary whose devices value is a list of dictionaries. Iterating that list preserves order, checking each role finds the first edge device, and returning None after the loop handles the no-match case. The second implementation looks for hostname at the top level, where it is not present. The third treats a list as a dictionary and uses a Boolean expression as an index. The fourth incorrectly decodes an object that is already decoded and would return the first device regardless of role.

Question 2

New Single answer

Topic: Software Development and Design

Skill tested: Handling optional nested JSON fields safely while returning a requested value.

An automation function processes an API response with this structure: a top-level dictionary contains a list named "interfaces". Each entry normally contains "name" and "state", but entries from older devices can omit "state". The function must return the state of the first entry whose name is "GigabitEthernet1" and return the string "unknown" if that entry has no state or does not exist. Which implementation best satisfies the data contract without raising a KeyError for an omitted state?

Correct Answer: D. return next((i.get("state", "unknown") for i in data["interfaces"] if i.get("name") == "GigabitEthernet1"), "unknown")
Explanation:

The interfaces field is a list, so the function must examine its entries and compare each entry's name. The generator expression returns the first matching entry's state, uses dict.get to handle an omitted state, and next supplies the fallback when there is no matching entry. A assumes a dictionary keyed by interface name, unlike the stated structure. C has the same list-versus-dictionary problem. D raises KeyError if state is missing, and its fallback does not handle an empty generator.

Question 3

New Multiple answers

Topic: Understanding and Using APIs

Skill tested: Selecting an HTTP method and interpreting status and response data for a REST request.

A controller exposes a documented REST resource at `/api/v1/sites/42/description`. A client must change the description of site 42, must not create a second site, and must determine whether the update succeeded. The API documentation specifies that this resource accepts a JSON representation through PUT and returns an HTTP status plus a JSON response body. Select TWO actions that correctly implement and verify the update. (Choose two.)

Correct Answer: C. Send a PUT request to the resource with a JSON body containing the new description and the documented content type.; E. Treat a 2xx status as evidence of successful processing, then inspect the response body for the returned resource data or documented result.
Explanation:

The documented resource-level PUT operation is the specified mechanism for updating this existing resource, and sending JSON with the appropriate content type communicates the representation. A 2xx response indicates successful HTTP processing; the body can provide additional result or resource details, according to the API contract. GET is intended to retrieve data and does not perform the required change. POST is not universally required for modifications and contradicts the documented method. Valid JSON alone does not make a 4xx or 5xx response successful.

Question 4

New Single answer

Topic: Understanding and Using APIs

Skill tested: Diagnosing REST request failures from HTTP status codes and response bodies.

A script sends a well-formed HTTPS request to a network-management API using the documented endpoint and JSON body. The server responds with HTTP 401, and the body states that the bearer token is invalid or expired. The organization has confirmed that the API is reachable and that the requested operation is allowed for the automation account. The script currently retries the identical request five times. What is the best next action?

Correct Answer: D. Obtain or refresh a valid bearer token and resend the request with the authorization header.
Explanation:

HTTP 401 indicates that the request lacks valid authentication credentials; the response body reinforces that the bearer token is invalid or expired. The client should refresh or obtain a valid token and send it in the required authorization header. Repeating the same request cannot repair expired credentials. A missing resource is generally reported separately, while malformed request data and server overload have different status meanings. The scenario already rules out reachability and authorization-policy problems.

Question 5

New Single answer

Topic: Understanding and Using APIs

Skill tested: Constructing an authenticated REST request with JSON content and appropriate headers.

A developer must submit a configuration change to an API endpoint documented to accept JSON via PATCH. The endpoint requires a bearer token, and the client library is configured to send HTTPS requests. The server rejects the request with HTTP 415 Unsupported Media Type even though the body is syntactically valid JSON. The developer verifies that the body is sent as bytes and the URL is correct. Which adjustment most directly addresses the failure while retaining the documented operation?

Correct Answer: B. Add a `Content-Type: application/json` request header and keep PATCH.
Explanation:

A 415 response indicates that the server does not accept the request's media type. The Content-Type header identifies the representation being sent, so declaring application/json directly addresses the mismatch while preserving the documented PATCH operation and bearer authentication. Accept describes the response formats the client can handle; it does not declare the request body's media type. Moving credentials or JSON into a query string is inappropriate, and GET would not implement the documented configuration change.

Question 6

New Multiple answers

Topic: Cisco Platforms and Development

Skill tested: Matching Cisco device programmability tasks to their documented APIs and interfaces.

A team automates a mixed Cisco environment. It must retrieve operational interface data from a Catalyst 9000 switch, update a supported configuration on a Cisco IOS XE device, and manage policies centrally across a Cisco SD-WAN fabric. The team wants to select interfaces based on the platform documentation rather than assume that one API applies everywhere. Select TWO sound design decisions. (Choose two.)

Correct Answer: D. Use the platform-supported Catalyst Center APIs for inventory and assurance data when the required information is exposed there.; E. Use Cisco SD-WAN Manager APIs for centralized SD-WAN policy and fabric-management tasks.
Explanation:

Cisco platform APIs are scoped to their documented product functions. Catalyst Center APIs can provide supported inventory and assurance information for managed campus devices, while Cisco SD-WAN Manager APIs are appropriate for centralized SD-WAN fabric and policy operations. The task still requires checking the exact documented endpoint and supported data. A single undocumented path cannot be assumed across platforms. SD-WAN Manager is not a universal IOS XE controller, and model or endpoint support can vary by software release and device capabilities.

Question 7

New Single answer

Topic: Cisco Platforms and Development

Skill tested: Choosing a controller API for centralized configuration and operational data retrieval.

A campus operations group needs to collect device inventory and client assurance information from its managed Cisco enterprise network. The organization already operates Cisco Catalyst Center, and the required data is available through its documented APIs. Engineers propose writing separate SSH parsers for each switch family because the switches use different software releases. The application must minimize device-specific parsing and use a supported interface. Which approach is most appropriate?

Correct Answer: D. Query Catalyst Center APIs for the managed inventory and assurance data, using the documented authentication and resource paths.
Explanation:

Catalyst Center is the existing management platform and its documented APIs expose the needed managed inventory and assurance data, avoiding custom parsing across device releases. Direct NETCONF is useful for device configuration or modeled data but cannot be assumed to expose controller-derived client assurance information on every switch. SD-WAN Manager serves a different management domain. Scraping web-page markup is not a supported substitute for documented APIs and is fragile when the interface changes.

Question 8

New Multiple answers

Topic: Cisco Platforms and Development

Skill tested: Selecting supported device-level interfaces for IOS XE configuration automation.

An automation engineer must apply a small, repeatable configuration change directly to a set of Cisco IOS XE devices. The devices support NETCONF and the required configuration is represented in their YANG models. The change must be applied without relying on a centralized controller, and the implementation should avoid interactive CLI screen scraping. Select TWO appropriate choices for implementing the device-level task. (Choose two.)

Correct Answer: B. Use NETCONF to submit the supported configuration data to the device, following the applicable YANG model and datastore behavior.; E. Use the device's documented RESTCONF interface if enabled and the required resource is supported by its YANG models.
Explanation:

NETCONF and RESTCONF are device-level management interfaces that can expose configuration represented by supported YANG models. The stated NETCONF capability makes it suitable, and RESTCONF is also appropriate when enabled and when the device supports the needed resources. The engineer must check model and release support rather than assume universal coverage. HTML scraping is not a YANG interface, and using Catalyst Center exclusively contradicts the requirement to manage devices directly without a controller.

Question 9

New Single answer

Topic: Application Deployment and Security

Skill tested: Tracing Dockerfile build instructions to determine the container's startup process.

A network automation team reviews this Dockerfile before deploying a parser:

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY parser.py .
ENV MODE=summary
CMD ["python", "parser.py"]

The build context contains both files, and no command-line arguments are supplied when the container starts. The team wants to predict the default process and understand which steps happen during image construction versus container startup. Which statement is accurate?

Correct Answer: B. The build installs the listed dependencies and copies the application; starting a container runs `python parser.py` in `/app`, with MODE set to `summary`.
Explanation:

FROM selects the base image, WORKDIR establishes /app as the working directory, COPY and RUN execute during image construction, and ENV supplies a default environment variable. CMD defines the default command executed when a container starts, so Python runs parser.py from /app with MODE set to summary. Dockerfile build instructions do not execute CMD as the application process. WORKDIR remains effective in the resulting image, and the source files are copied from the build context rather than read from an arbitrary host directory at runtime.

Question 10

New Single answer

Topic: Application Deployment and Security

Skill tested: Identifying image-layer security risks from Dockerfile credential handling.

A team builds an automation image from a Dockerfile that copies a private API token into `/root/.config/token`, runs the application, and then deletes the file in a later RUN instruction. The resulting image is pushed to a registry shared by several development teams. The token must not be recoverable by image consumers, and deployments must receive credentials at runtime. What is the best corrective action?

Correct Answer: A. Remove the token from the build context and inject it at runtime through an appropriate secret mechanism.
Explanation:

Image layers are retained as part of the image, so deleting a secret in a later layer does not remove it from the earlier layer in which it was copied. The secure design excludes credentials from the build context and supplies them at runtime through the deployment platform's secret handling. Build arguments are not a safe replacement for secrets and may be exposed through build metadata or history. Base64 is encoding, not encryption, and does not protect a token from image consumers.

Question 11

New Single answer

Topic: Infrastructure and Automation

Skill tested: Choosing controller-level management for coordinated network-wide policy changes.

A company operates a large campus with many switches and access points managed by a central network controller. It must apply a consistent access policy to a set of sites and then verify deployment status centrally. Directly connecting to every device would require maintaining per-platform logic, and the operations team needs a single view of rollout results. Which automation approach is the best fit?

Correct Answer: B. Use the controller's documented API to define and deploy the policy, then query its status and results.
Explanation:

A controller-level workflow is designed to coordinate policy across managed devices and provides a central interface for deployment and status. This matches the scale, consistency, and verification requirements while avoiding separate per-device orchestration. SSH to every device can be appropriate for certain device-level tasks but does not inherently provide centralized policy lifecycle or rollout tracking. A NETCONF change on one switch does not automatically imply fabric-wide propagation. Traffic observation alone cannot establish configuration deployment status.

Question 12

New Multiple answers

Topic: Infrastructure and Automation

Skill tested: Distinguishing device-level configuration from controller-managed network automation.

An engineer is choosing between direct device automation and controller APIs. One task updates a YANG-modeled interface description on a small number of IOS XE devices, each of which supports NETCONF. Another task creates a fabric-wide policy that the network controller manages and reports on. Operational requirements call for using the authoritative management layer for each task and avoiding duplicate sources of truth. Select TWO appropriate decisions. (Choose two.)

Correct Answer: B. Use NETCONF against the IOS XE devices for the interface-description change, validating the supported model and target datastore.; C. Use the controller's documented API for the fabric-wide policy and verify its deployment through controller status.
Explanation:

The interface description is a bounded device-level configuration task, and NETCONF is suitable because the devices support it and the configuration is modeled; model and datastore semantics still need validation. The fabric-wide policy belongs at the controller layer because the controller is its authoritative manager and can report deployment status. Making a local change on one device does not guarantee controller propagation and may create configuration drift. Choosing an interface merely because it accepts a request ignores ownership and support, while a controller cannot manage devices it does not manage.

Question 13

New Single answer

Topic: Infrastructure and Automation

Skill tested: Selecting an idempotent automation tool for repeatable device configuration management.

A network team needs a scheduled job to ensure that a defined set of device configuration values remains present across multiple network devices. The job must be safe to run repeatedly, report changes, and avoid building a custom command-execution framework. The team can use Ansible network modules supported by its devices. Which design best meets these operational requirements?

Correct Answer: D. Create a playbook describing the desired configuration with supported network modules and run it repeatedly with controlled inventory and credentials.
Explanation:

Ansible playbooks and supported network modules let the team describe and apply configuration consistently, with repeatable runs and task results. The precise level of idempotency depends on the module and task design, so the team should use modules that model the desired state rather than blindly replay commands. Appending commands can create duplicates or unintended changes. Interactive sessions lack reliable repeatability and auditability. A Dockerfile builds an image; it does not automatically configure network devices.

Question 14

New Single answer

Topic: Network Fundamentals

Skill tested: Calculating subnet membership and selecting the correct default gateway placement.

A small office has a routed topology with VLAN 20 configured as 192.0.2.64/27. The router interface for VLAN 20 is 192.0.2.65, and a management server is configured as 192.0.2.94/27. The server can reach hosts in its VLAN but cannot reach an external subnet. Its address is not duplicated, and its switch port is in VLAN 20. Which configuration value should be checked first on the server?

Correct Answer: A. The default gateway should be 192.0.2.65.
Explanation:

A /27 subnet has 32 addresses. For 192.0.2.64/27, the network address is .64, usable host addresses range from .65 through .94, and the broadcast address is .95. The router interface at .65 is therefore a valid gateway in the server's local subnet. A host can communicate within its VLAN without a gateway, which fits the reported symptom. The network and broadcast addresses are not valid host gateways, and changing the mask to /24 would create an incorrect on-link assumption.