Courseiva

CCNA AI and Network Operations Questions

75 of 154 questions · Page 2/3 · AI and Network Operations · Answers revealed

76
PBQhard

You are connected to R1, a Cisco ISR 4321 running IOS-XE. Configure SNMPv2c with a read-only community string 'public' and SNMPv3 with user 'admin' using SHA authentication and AES encryption. Ensure SNMP traps are sent to the management server at 203.0.113.10. Additionally, configure NetFlow export to destination 203.0.113.20 on UDP port 2055 using version 9. Verify your configuration with appropriate show commands. The current running-config is incomplete; you must add the missing commands.

Network Topology
G0/0192.168.1.1/24Management NetworkR1Server

Hints

  • SNMPv3 user configuration requires both auth and priv algorithms and passwords.
  • For SNMP traps, specify the trap receiver IP and community string.
  • NetFlow export configuration uses global commands; no interface-level configuration is needed for basic export setup.
A.snmp-server community public ro snmp-server user admin snmp-group v3 auth sha cisco priv aes 128 cisco snmp-server host 203.0.113.10 traps version 2c public ip flow-export destination 203.0.113.20 2055 ip flow-export version 9
B.snmp-server community public ro snmp-server user admin snmp-group v3 auth sha cisco priv aes 128 cisco snmp-server host 203.0.113.10 traps version 3 auth public ip flow-export destination 203.0.113.20 2055 ip flow-export version 9
C.snmp-server community public ro snmp-server user admin snmp-group v3 auth md5 cisco priv des56 cisco snmp-server host 203.0.113.10 traps version 2c public ip flow-export destination 203.0.113.20 2055 ip flow-export version 9
D.snmp-server community public ro snmp-server user admin snmp-group v3 auth sha cisco priv aes 128 cisco snmp-server host 203.0.113.10 traps version 2c public ip flow-export destination 203.0.113.20 2055 ip flow-export version 5
AnswerA
solution
! R1
snmp-server user admin auth sha cisco priv aes 128 cisco
snmp-server host 203.0.113.10 traps version 2c public
ip flow-export destination 203.0.113.20 2055
ip flow-export version 9

Why this answer

The initial config has only a basic SNMPv2c community string. To meet requirements: enable SNMPv3 with a user 'admin' using SHA authentication and AES 128-bit encryption. The correct command requires a group name and the 'v3' keyword, e.g., 'snmp-server user admin snmp-group v3 auth sha cisco priv aes 128 cisco'.

Configure SNMP trap destination with 'snmp-server host 203.0.113.10 traps version 2c public'. For NetFlow, use 'ip flow-export destination 203.0.113.20 2055' and 'ip flow-export version 9'. Verify with 'show snmp' and 'show ip cache flow'.

Option B incorrectly uses version 3 traps with a community string; version 3 requires a security name. Option C uses insecure MD5/DES56 instead of SHA/AES. Option D uses NetFlow version 5 instead of version 9.

Exam trap

Forgetting to include a group name and the 'v3' keyword in the 'snmp-server user' command is a common syntax error that will cause the configuration to be rejected on real devices.

Why the other options are wrong

B

The trap host line uses 'version 3' and a community string ('public'), but SNMPv3 traps require a security name (the user) and an authentication level, not a community.

C

The SNMPv3 user is configured with MD5 and DES56, while the requirement is SHA authentication and AES 128‑bit encryption.

D

The NetFlow export version is set to 5 instead of the required version 9.

77
Drag & Dropmedium

Select the correct sequence of steps to retrieve a specific interface's configuration via RESTCONF and apply a change to the interface description.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence for using RESTCONF to modify an interface description is: first retrieve the current configuration with a GET request, parse the JSON or XML response, modify the description field, apply the change with a PUT or PATCH request, and finally verify the change with another GET request. This sequence is correctly described only in option A. Options B, C, and D are incorrect because they either apply changes before retrieving the configuration, modify before retrieving, or verify before applying, which would not work as intended.

Exam trap

The key trap is confusing the order of operations: you must retrieve before modifying, and apply before verifying. Candidates often mix up the sequence, especially placing verification too early or modification before retrieval.

78
Matchingmedium

Drag and drop the syslog severity levels and NTP concepts on the left to their correct descriptions on the right.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Emergency: system is unusable

Debugging: detailed debug messages

Reference clock (e.g., atomic clock or GPS)

Unsynchronized or maximum usable stratum

Configures an IOS-XE device as an NTP client

Displays NTP synchronization state and stratum

Why these pairings

Syslog severity levels range from 0 (Emergency) to 7 (Debug), with 0 being the most critical. NTP stratum indicates clock accuracy: stratum 0 is the reference clock, stratum 1 is directly connected to a reference, and so on up to stratum 15, which is the maximum usable synchronized stratum. Stratum 16 means the device is unsynchronized.

The ntp server command configures a device as a client, and show ntp status displays synchronization state and current stratum.

Exam trap

Be careful not to confuse the severity order of syslog levels: lower numbers (0) are more severe, higher numbers (7) are less severe. Also, remember that NTP stratum numbers work inversely to accuracy: lower stratum numbers indicate higher accuracy, with Stratum 0 being the most accurate reference clock.

79
MCQmedium

Exhibit: A script sends an HTTP GET request to a controller API endpoint. What is the usual purpose of the GET method?

A.Retrieve information from the resource
B.Create a brand-new resource
C.Replace the entire resource configuration
D.Delete the resource
AnswerA

The HTTP GET method is defined as a safe, idempotent request that retrieves a representation of the resource identified by the URI without altering server state. In the context of a controller API, GET is specifically used to read current configuration, status, or data. A successful GET returns a 200 OK response with the payload, making it the correct method for retrieval.

Why this answer

In REST-style APIs, GET is normally used to retrieve data from a resource. It is not the standard method for creating or replacing resources.

Exam trap

Be careful not to confuse GET with other HTTP methods like POST, PUT, or DELETE, which have different purposes.

Why the other options are wrong

B

Creating a new resource is typically done using the POST method, not GET. GET is designed for safe and idempotent retrieval of data, not for creating resources.

C

Replacing the entire resource configuration is the purpose of the PUT method, which is idempotent and used for updates. GET is not intended for modifying resources.

D

Deleting a resource is performed using the DELETE method. GET is a safe method that should not have side effects like deletion.

80
Multi-Selectmedium

Which two statements accurately describe software-defined networking and network virtualization concepts at a basic CCNA level?

Select 2 answers
A.SDN is associated with more centralized or programmable control of network behavior.
B.NFV is associated with delivering network functions in software or virtualized form.
C.Both terms are just new names for subnet masks.
D.Both terms replace the need for routing protocols completely.
E.Both terms refer only to wireless client roaming.
AnswersA, B

SDN decouples the network control plane from the forwarding plane, centralizing intelligence in a software controller that programs flows into switches and routers. This controller provides a global, vendor-neutral view of the network and exposes APIs (e.g., OpenFlow) that allow operators to dynamically adjust policies and traffic paths via software. As a result, SDN is accurately described as enabling more centralized or programmable control of network behavior, which is the core of the technology.

Why this answer

At a basic level, these concepts point toward more abstracted, software-driven ways of controlling or delivering networking capabilities. SDN is associated with more centralized or programmable control behavior. NFV is associated with delivering network functions in virtualized software form instead of relying only on fixed-purpose hardware.

The goal here is conceptual recognition, not deep architectural implementation detail.

Exam trap

A frequent exam trap is mistaking SDN and NFV for basic network addressing concepts like subnet masks or for wireless client roaming features. Candidates might also incorrectly believe these technologies replace routing protocols entirely. However, SDN and NFV focus on centralized control and virtualized network functions, respectively, and do not eliminate the need for routing logic or relate directly to subnetting or wireless roaming.

Misunderstanding these distinctions can lead to selecting incorrect options that describe unrelated networking concepts.

Why the other options are wrong

C

Option C is incorrect because subnet masks are related to IP addressing and have no connection to SDN or NFV concepts, which focus on network control and virtualization.

D

Option D is wrong since SDN and NFV do not eliminate routing protocols; routing remains necessary for path determination and packet forwarding in networks.

E

Option E is incorrect because SDN and NFV are broad network architecture concepts and do not exclusively refer to wireless client roaming or mobility management.

81
MCQmedium

A network engineer queries a REST API and receives data in JSON format. Which statement about JSON is correct?

A.JSON is a transport protocol that replaces HTTPS
B.JSON stores data as key-value pairs and arrays
C.JSON can be used only with Cisco DNA Center
D.JSON requires XML tags around each object
AnswerB

JSON's syntax is built around two core structures: objects, which are unordered collections of key-value pairs enclosed in curly braces, and arrays, which are ordered lists of values enclosed in square brackets. Each value within an object or array can itself be a string, number, boolean, null, or another nested object or array. This self-describing, hierarchical format is language-independent, making it both human-readable and easily parsed by machines.

Why this answer

JSON is a lightweight data-interchange format that represents data as key-value pairs and arrays. Option A is incorrect because JSON is not a transport protocol; it is a data format exchanged over HTTPS. Option C is incorrect because JSON is platform-agnostic and used by many APIs, not limited to Cisco DNA Center.

Option D is incorrect because JSON uses a flexible syntax with colons and brackets, not XML tags.

Exam trap

Avoid confusing JSON with binary formats or assuming it requires a schema like XML.

Why the other options are wrong

A

JSON is a lightweight data-interchange format, not a transport protocol. HTTPS is a secure version of HTTP used for communication, and JSON does not replace it; instead, JSON data is often transmitted over HTTPS.

C

JSON is a platform-independent data format used by many APIs and services, not just Cisco DNA Center. It is supported by virtually all programming languages and is a standard for web APIs across different vendors.

D

JSON does not use XML tags; it uses a syntax of curly braces, colons, and commas to define objects and arrays. XML uses angle brackets for tags, which is a different markup language.

82
Matchingmedium

Match each REST-style method to the most common intent.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Retrieve information

Create or submit data

Update or replace a resource

Remove a resource

Why these pairings

RESTful methods map to CRUD operations: GET retrieves, POST creates, PUT replaces, PATCH partially updates, DELETE removes, and OPTIONS returns allowed methods.

Exam trap

The exam tests your understanding of the specific intent of each HTTP method. Common traps include confusing GET with POST for creation, or PUT with PATCH for updates. Remember: GET is read-only, POST creates, PUT replaces, PATCH modifies partially.

83
PBQhard

You are connected to R1. Configure NTP client so that R1 synchronizes with the NTP server at 198.51.100.10, using its Loopback0 (10.0.0.1/32) as the source interface. Also configure syslog to send messages of severity 5 (notifications) and above to 192.0.2.20. The current configuration shows a misconfigured NTP server address and an incorrect logging trap level. Verify with 'show ntp status' (stratum should not be 16) and 'show logging'.

Hints

  • Check the NTP server address in running-config — it might point to a wrong IP.
  • Verify that the source interface for NTP is configured; otherwise R1 may use an unreachable interface.
  • The logging trap level is set too high (debugging) — change it to notifications (level 5) to filter out lower severity messages.
A.ntp server 198.51.100.10 source Loopback0 logging trap notifications
B.ntp server 198.51.100.10 source Loopback0 logging trap 4
C.ntp server 198.51.100.10 logging trap notifications
D.ntp server 203.0.113.5 source Loopback0 logging trap 7
AnswerA
solution
! R1
configure terminal
no ntp server 203.0.113.5
ntp server 198.51.100.10
ntp source Loopback0
no logging trap debugging
logging trap notifications
end
write memory

Why this answer

The misconfigured NTP server address (203.0.113.5) and the debug-level logging trap (7) must be corrected to meet requirements. The correct commands are 'ntp server 198.51.100.10 source Loopback0' to use the specified server and Loopback0 as source, and 'logging trap notifications' (severity 5) to send only notifications and more severe messages. Option B is wrong because 'logging trap 4' sets the trap level to warning, which would not forward notifications.

Option C misses the source interface, and Option D uses the wrong NTP server and an overly verbose trap level.

Exam trap

Candidates often confuse the numeric severity levels with the keyword equivalents for logging trap. Also, they may forget to specify the source interface for NTP, assuming the router will use the loopback automatically. Always verify that the NTP source interface is explicitly configured when required.

Why the other options are wrong

B

logging trap 4 sets the severity to warning (4), so it does not include notifications (5).

C

The missing source interface causes NTP to use an incorrect source address, likely resulting in unsynchronized status.

D

The NTP server address is incorrect and 'logging trap 7' sends all debug messages instead of limiting to notifications and above.

84
Multi-Selectmedium

Which two tasks are strong candidates for network automation? (Choose two.)

Select 2 answers
A.Polling many devices for interface status on a schedule
B.Replacing a failed power supply in a branch switch
C.Pushing a standard NTP configuration to many routers
D.Tracing one cable through a crowded rack by hand
E.Listening for fan noise in a wiring closet
AnswersA, C

Automation excels at scheduled, repetitive data collection. Polling interface status from hundreds of devices via SNMP, NETCONF, or streaming telemetry is a deterministic, read-only operation that can be automated to run at consistent intervals, capturing operational state without human intervention. This enables proactive monitoring, historical trend analysis, and quick fault detection, while reducing the burden on network engineers who would otherwise manually connect to each device. The scale and regularity of the task make it a textbook candidate for automation.

Why this answer

Automation works best for repetitive, rule-based tasks such as gathering state information or pushing standard configuration changes across many devices.

Exam trap

Avoid assuming that all network tasks can be automated. Focus on repetitive and rule-based tasks.

Why the other options are wrong

B

Replacing a failed power supply is a physical hardware task that requires hands-on intervention, not a software-based or configuration task that network automation tools can perform.

D

Tracing a cable by hand is a physical, manual task that cannot be automated with network automation tools, which focus on software-based configuration and monitoring.

E

Listening for fan noise is a physical inspection task that relies on human senses and cannot be performed by network automation software, which deals with digital data and configurations.

85
Multi-Selectmedium

Which two statements accurately describe APIs in controller-based networking?

Select 2 answers
A.They provide a defined interface through which software can communicate with the controller.
B.They can be used by automation tools to retrieve data or request changes.
C.They replace all need for forwarding devices.
D.They remove the need for authentication and authorization.
E.They are Ethernet cabling standards.
AnswersA, B

APIs provide a formal, documented contract that shields external clients from the controller's internal mechanics. For example, a northbound REST API defines specific URIs, methods, and schemas for exchanging operational state or configuration data. This allows software to communicate precisely and predictably without needing to understand the underlying controller implementation.

Why this answer

APIs are important in controller-based networking because they give external software a defined way to request data or trigger changes on the controller. In plain language, they make the controller accessible to automation tools, dashboards, orchestration systems, and custom scripts. This helps integrate the controller into broader workflows. APIs do not eliminate the need for security controls, but they do make software-driven operations possible.

The wrong answers usually confuse APIs with physical interfaces or claim that they remove the need for authentication. The two correct answers are the ones focused on programmatic access and software integration.

Exam trap

Avoid confusing APIs with physical interfaces or assuming they bypass security protocols.

Why the other options are wrong

C

APIs are software interfaces that enable communication with the controller, but they do not replace forwarding devices like switches and routers. These devices still handle packet forwarding based on policies set via the controller; the controller does not eliminate the need for physical or virtual forwarding hardware.

D

APIs do not remove the need for authentication and authorization. In fact, secure API access typically requires credentials, tokens, or certificates to ensure only authorized users or systems can interact with the controller. Removing these controls would create severe security vulnerabilities.

E

APIs are software interfaces, not physical cabling standards. Ethernet cabling standards like Cat5e, Cat6, or fiber optics define physical layer specifications for wired network connections. Confusing APIs with cabling is a fundamental category error.

86
MCQhard

Why are data models such as YANG important in network automation?

A.They define a structured way to represent configuration and state data
B.They replace IPv4 and IPv6 addressing
C.They remove the need for routing protocols
D.They are used only for naming wireless SSIDs
AnswerA

YANG defines a hierarchical, schema-based data model (RFC 6020/7950) that standardizes how configuration and operational state are represented, enabling programmatic access via NETCONF/RESTCONF. This structured representation allows automation tools to reliably validate, read, and modify device settings across vendors without ad-hoc CLI parsing.

Why this answer

Data models such as YANG standardize how configuration and operational data are described, which improves consistency for automation systems and APIs.

Exam trap

A common exam trap is to mistakenly believe that YANG data models replace fundamental network functions such as IPv4/IPv6 addressing or routing protocols. Some candidates incorrectly assume that because YANG structures configuration data, it eliminates the need for routing protocols like OSPF or EIGRP, or that it changes how IP addresses function. However, YANG is strictly a modeling language that describes how configuration and state data are represented for automation purposes.

It does not alter core networking protocols or addressing schemes. Confusing these roles can lead to selecting incorrect answers that misattribute YANG’s purpose.

Why the other options are wrong

B

Option B is incorrect because YANG does not replace IPv4 or IPv6 addressing schemes. IP addressing remains a core network function independent of data modeling languages.

C

Option C is wrong since YANG does not remove the need for routing protocols. Routing protocols like OSPF and EIGRP continue to operate and are configured using data models but are not replaced by them.

D

Option D is false because YANG’s scope is much broader than naming wireless SSIDs. It models a wide range of network configurations and operational data beyond wireless settings.

87
MCQmedium

A network engineer at a large enterprise observes repeated spikes in latency on the core network every weekday at 10:00 AM, but no corresponding increase in overall bandwidth utilization. The engineer wants to use AI/ML to automatically identify the root cause and take corrective action without manual intervention. Which concept best describes this approach?

A.Anomaly detection
B.Intent-based networking
C.Predictive analytics
D.Machine learning classification
AnswerB

Intent-based networking (IBN) uses closed-loop automation to continuously monitor the network, detect when the actual state deviates from the intended state (e.g., latency spikes), and automatically reconfigure the network to restore the intent. This matches the scenario of automatic identification and correction.

Why this answer

Intent-based networking (IBN) is correct because it describes a closed-loop system where the network continuously validates that its operational state matches the desired business intent. In this scenario, the engineer wants the network to automatically detect the latency anomaly, correlate it with other telemetry (e.g., routing changes, queue drops), and take corrective action (e.g., reroute traffic, adjust QoS) without human intervention — which is the core promise of IBN, often implemented via Cisco's DNA Center with Assurance and AI/ML capabilities.

Exam trap

Cisco often tests the distinction between a single AI/ML technique (like anomaly detection) and the full closed-loop automation framework (IBN), leading candidates to pick the narrower answer when the question explicitly requires both detection and automated corrective action.

Why the other options are wrong

A

Anomaly detection identifies unusual patterns like latency spikes, but it does not include automatic corrective action. The scenario requires both detection and automated response, which anomaly detection alone cannot provide.

C

Predictive analytics forecasts future events (e.g., predicting when a link will fail), but it does not automatically take corrective action. The scenario involves detecting and correcting an existing anomaly, not predicting a future one.

D

Machine learning classification categorizes data (e.g., classifying traffic as normal or anomalous), but it does not inherently include automated corrective actions. The scenario requires a system that both detects and corrects.

88
PBQmedium

You are connected to R1 via the console. R1 is a Cisco ISR 4321 router running IOS-XE 17.3. The network team has reported intermittent connectivity issues between VLAN 10 hosts and the server at 10.0.0.100. You suspect a routing problem and need to analyze the IP routing table, ARP cache, and interface status to identify the cause. Use the provided outputs to diagnose the issue.

Network Topology
G0/0192.168.10.1/24G0/110.0.0.1/30G0/010.0.0.2/30linkG0/010.0.0.2/3010.0.0.100linkHostsVLAN 10R1R2Server

Hints

  • Check the IP routing table for a default route or specific route to 10.0.0.100.
  • Examine the ARP cache to see if the MAC address of the next hop (10.0.0.2) is present.
  • Verify that both interfaces are up/up and have correct IP addresses.
A.The routing table shows a default route via 192.168.1.1, but the ARP cache has an incomplete entry for that next-hop IP, indicating a Layer 2 connectivity issue.
B.The routing table has a static route to 10.0.0.0/24 via 192.168.1.2, but the interface GigabitEthernet0/0/0 is administratively down.
C.The routing table shows a route to 10.0.0.0/16 via 192.168.1.1, but the ARP cache has a complete entry for 192.168.1.1, indicating the issue is at Layer 3.
D.The routing table has no route to 10.0.0.100, and the ARP cache is empty for all entries, indicating a complete routing failure.
AnswerA
solution
! R1
show ip route
show ip arp
show interfaces GigabitEthernet0/0
show interfaces GigabitEthernet0/1

Why this answer

The issue is likely a missing or incorrect route, an incomplete ARP entry, or an interface problem. By checking the routing table, you can confirm if a route to 10.0.0.100 exists. The ARP cache shows whether the next-hop MAC is learned.

Interface status indicates if the link is operational. The solution commands reveal these details, allowing you to pinpoint the cause (e.g., default route missing, ARP timeout, or interface down).

Exam trap

The exam trap is that candidates often jump to routing table issues first, but the question emphasizes 'intermittent' connectivity, which typically indicates Layer 2 problems like ARP failures or flapping interfaces. Always correlate routing table, ARP cache, and interface status together.

Why the other options are wrong

B

The specific factual error is that an administratively down interface results in a hard failure, not intermittent connectivity.

C

The specific factual error is that a complete ARP entry indicates no Layer 2 problem, contradicting the symptom of intermittent connectivity.

D

The specific factual error is that a missing route results in consistent unreachability, not intermittent problems.

89
PBQmedium

You are connected to R1 via the console. R1 is a Cisco IOS-XE router. The network manager wants to use an Ansible playbook to configure a loopback interface with IP address 10.0.0.1/24 on R1. You need to write the Ansible YAML playbook that connects to R1 and configures this interface. The playbook must not use the 'parents' argument in the ios_config module.

Hints

  • Ansible uses the 'cisco.ios.ios_config' module for configuration.
  • Specify the lines parameter with a list of CLI commands.
  • Set provider or vars for connection details.
A.- name: Configure Loopback hosts: R1 gather_facts: no connection: network_cli tasks: - name: Configure interface ios_config: lines: - interface Loopback0 - ip address 10.0.0.1 255.255.255.0 - no shutdown
B.- name: Configure Loopback hosts: R1 gather_facts: no connection: ssh tasks: - name: Configure interface ios_config: lines: - interface Loopback0 - ip address 10.0.0.1/24 - no shutdown
C.- name: Configure Loopback hosts: R1 gather_facts: no connection: network_cli tasks: - name: Configure interface ios_config: lines: - interface Loopback0 - ip address 10.0.0.1 255.255.255.0 - shutdown
D.- name: Configure Loopback hosts: R1 gather_facts: no connection: network_cli tasks: - name: Configure interface ios_config: lines: - interface Loopback0 - ip address 10.0.0.1 255.255.255.0 - no shutdown parents: interface Loopback0
AnswerA
solution
! R1
interface Loopback0
ip address 10.0.0.1 255.255.255.0
no shutdown

Why this answer

It uses the network_cli connection type, applies the correct subnet mask (255.255.255.0), includes 'no shutdown' to enable the interface, and does not use the 'parents' argument, meeting the requirement. Option B is wrong because it uses an 'ssh' connection (not network_cli) and writes the IP address in CIDR notation (/24) instead of the required dotted-decimal mask. Option C is wrong because it uses 'shutdown' instead of 'no shutdown', which disables the interface.

Option D is wrong because it uses the 'parents' argument, which the stem explicitly forbids, even though the configuration would otherwise be valid.

Exam trap

Be careful with the connection type for network devices: use 'network_cli', not 'ssh'. Also, remember that Cisco IOS uses subnet masks (e.g., 255.255.255.0) in the 'ip address' command, not CIDR notation. Finally, ensure you use 'no shutdown' to enable an interface, not 'shutdown'.

Why the other options are wrong

B

Incorrect connection type 'ssh' and uses CIDR notation /24 instead of subnet mask.

C

Uses 'shutdown' command, which disables the interface instead of enabling it.

D

Uses the 'parents' argument, which is explicitly prohibited by the requirement.

90
MCQhard

Why is HTTPS usually preferred over HTTP when accessing controller APIs?

A.Because HTTPS provides encrypted transport for sensitive API communication.
B.Because HTTPS provides better throughput for API responses
C.Because HTTPS replaces the need for authentication.
D.Because HTTPS is the only protocol that can carry JSON.
AnswerA

HTTPS uses TLS to encrypt the entire HTTP conversation, ensuring that sensitive payloads like authentication tokens, personal data, or financial records cannot be read or tampered with in transit. This protects API communication from eavesdropping and man-in-the-middle attacks, which is the primary reason it is preferred for sensitive exchanges over unencrypted HTTP.

Why this answer

HTTPS is preferred because it protects the API traffic in transit with encryption. In plain language, controller APIs may carry credentials, tokens, device state, or configuration data, and sending that information in clear text over plain HTTP would expose it to interception. HTTPS helps protect that communication channel.

This does not make HTTPS a data format or an access policy by itself, but it is a major transport-security improvement. The correct answer is the one focused on secure transport for sensitive API traffic.

Exam trap

Don't confuse HTTPS with data formats or access policies; it's about securing data in transit.

Why the other options are wrong

B

HTTPS adds encryption overhead, which can reduce throughput compared to HTTP, not improve it.

C

HTTPS provides transport-layer encryption but does not replace authentication. API access still requires authentication mechanisms such as API keys, OAuth tokens, or certificates to verify the identity of the client.

D

JSON is a data format that can be carried over any transport protocol, including HTTP, HTTPS, or even raw TCP. HTTPS is not required for JSON; it is used to secure the transport, not to enable a specific data format.

91
Multi-Selectmedium

Which two statements accurately describe JSON?

Select 2 answers
A.JSON is a structured data format commonly used by APIs.
B.JSON uses square brackets for arrays.
C.JSON is the same thing as HTTPS.
D.JSON is required only for IPv6 networks.
E.JSON is a spanning-tree mode.
AnswersA, B

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format that represents data as key-value pairs and ordered lists. RESTful APIs frequently use JSON for request and response payloads because it is language-agnostic, human-readable, and easily parsed by most programming languages. Its structure enables nested objects and arrays, making it suitable for complex hierarchical data exchange.

Why this answer

JSON is a lightweight structured data format commonly used in APIs and automation workflows. In plain language, it provides a readable way to represent data as key-value pairs, objects, and arrays so software can exchange information consistently. It is popular in network automation because it is compact and widely supported by tools, controllers, and web-based interfaces.

CCNA questions on JSON usually test recognition, not coding expertise. You should be able to identify that JSON is a data format, not a transport protocol, and that arrays are shown with square brackets. The correct answers in this question focus on those recognition skills rather than on advanced programming details.

Exam trap

A frequent exam trap is confusing JSON with network protocols or features, such as HTTPS or spanning-tree modes. Candidates might incorrectly assume JSON is a transport protocol or a network technology because it is often mentioned alongside APIs and automation. This misunderstanding leads to selecting incorrect answers that describe JSON as a protocol or network mode.

The key is to remember that JSON is strictly a data format used to represent structured information, not a protocol or network operation. Misreading JSON’s role can cause errors in questions testing automation and programmability concepts.

Why the other options are wrong

C

Option C is incorrect because JSON is not a protocol like HTTPS. HTTPS is a secure transport protocol, whereas JSON is a data format used within protocols or APIs for data representation, not for transport or security.

D

Option D is wrong since JSON is not tied to IPv6 networks or any specific IP version. JSON is a general-purpose data format used across various network environments and protocols, independent of IP addressing schemes.

E

Option E is incorrect because JSON has no relation to spanning-tree modes or any Layer 2 network protocol functions. JSON is purely a data format and does not influence or configure network protocols like STP.

92
Multi-Selectmedium

Which two statements accurately describe controller-based networking?

Select 2 answers
A.It can centralize management and policy decisions.
B.It commonly exposes APIs for software and automation tools to interact with the controller.
C.It eliminates the need for network devices such as switches and routers.
D.It removes the need for authentication and authorization.
E.It works only on wireless networks.
AnswersA, B

One of the primary advantages of a controller-based model is the ability to centralize configuration, monitoring, and policy decisions across the entire network. Instead of configuring each switch or router individually, an administrator defines policies at the controller level, which then automatically distributes them to all managed devices. This centralization improves operational efficiency, ensures consistent enforcement of security and QoS rules, and reduces human error.

Why this answer

Controller-based networking centralizes certain management and policy functions and commonly exposes APIs for software interaction. In practical terms, the controller becomes the coordination point while outside applications or automation tools can talk to it through structured interfaces. This does not eliminate the need for actual forwarding devices, but it changes how the network is managed.

The wrong answers usually go too far and pretend the controller replaces everything. The two correct answers are the ones that keep centralization and programmability as the core ideas.

Exam trap

A common exam trap is to incorrectly believe that controller-based networking eliminates the need for physical network devices like switches and routers. Some candidates assume the controller replaces all hardware, which is false because forwarding devices remain essential for data traffic. Another trap is thinking that controller-based networking removes the need for authentication and authorization; however, secure access controls to the controller are still mandatory.

These misconceptions can lead to selecting incorrect answers that overstate the controller’s role or ignore security requirements.

Why the other options are wrong

C

This option is incorrect because controller-based networking does not eliminate the need for physical network devices like switches and routers; these devices still forward traffic.

D

This option is incorrect since authentication and authorization remain necessary to secure access to the controller and protect network integrity.

E

This option is incorrect because controller-based networking applies to both wired and wireless networks and is not limited to wireless environments.

93
Matchingmedium

Drag and drop the protocols/technologies on the left to the descriptions on the right.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Uses XML-encoded RPCs over SSH for network device configuration

Uses HTTP/HTTPS methods (GET, POST, PUT, DELETE) with JSON or XML

Data modeling language that defines the structure of configuration and state data

High-performance RPC framework using Protocol Buffers and HTTP/2

Vendor-neutral YANG data models for network configuration and monitoring

Why these pairings

SSH (Secure Shell) provides encrypted remote access to network devices, typically using TCP port 22. It is the secure alternative to Telnet. Telnet (port 23) is unencrypted and insecure.

HTTP (port 80) is used for web traffic, not remote access. FTP (port 21) is for file transfers and is not designed for remote shell access. Therefore, only SSH matches the description of secure remote access.

Exam trap

Candidates often think Telnet is secure because it also provides remote access, but Telnet transmits data in plaintext. SSH uses encryption, making it the only secure option among these.

94
MCQmedium

Why is JSON often preferred over completely unstructured text in API responses?

A.Because JSON provides structured, machine-readable data that software can parse consistently.
B.Because JSON automatically encrypts the payload.
C.Because JSON replaces the need for authentication.
D.Because JSON is the same thing as HTTPS.
AnswerA

JSON provides a standard, hierarchical model using objects, arrays, and primitive values that every conforming parser maps to native language data structures in a deterministic way. Because the grammar is rigorously specified, automation scripts and network controllers can rely on the same interpretation of a payload across different platforms, eliminating the ambiguity inherent in free-form text. This machine-readability underpins programmatic workflows such as intent-based networking, where devices must reliably consume configuration data to enforce policy.

Why this answer

JSON is preferred because it gives software a predictable structure to parse. In practical terms, an application can look for keys, values, arrays, and objects instead of trying to interpret a free-form text paragraph meant mainly for human readers. That makes programmatic processing far more reliable.

This is one of the main reasons JSON is so common in controller APIs and automation tools. It is about structure and machine readability, not encryption, authentication, or HTTPS.

Exam trap

A frequent exam trap is assuming JSON automatically provides encryption or replaces authentication mechanisms. Candidates might incorrectly believe JSON secures data or manages access control, which is false. JSON is solely a structured data format and does not handle security functions.

Confusing JSON with HTTPS or other security protocols leads to misunderstandings about network automation and API behavior. This mistake can cause incorrect answers about how data is protected or transmitted in Cisco automation environments.

Why the other options are wrong

B

Option B is incorrect because JSON is a data format and does not provide encryption. Encryption is handled by protocols like TLS or HTTPS, not by JSON itself, so this option confuses data formatting with security.

C

Option C is wrong since JSON does not replace authentication. Authentication and access control are separate concerns managed by security protocols or API gateways, not by the data format used in responses.

D

Option D is false because JSON is a data format, whereas HTTPS is a transport and security protocol. They serve different purposes and are not interchangeable concepts.

95
MCQmedium

Why are tokens commonly used in API workflows instead of sending raw credentials with every request?

A.They allow controlled repeated API access without resending raw credentials on every request.
B.They replace the need for HTTPS.
C.They automatically assign IP addresses to controllers.
D.They convert API data into VLAN tags.
AnswerA

Token-based authentication lets a client exchange credentials once for a signed or opaque token, then reuse that token for subsequent requests. This avoids exposing raw passwords on every call and allows fine-grained controls like scopes, expiry, and revocation, which are essential for unattended automation workflows. Tokens are typically sent in an Authorization header rather than in request bodies.

Why this answer

Tokens are commonly used because they provide a more controlled and practical way to manage repeated API access. In practical terms, a client can authenticate, receive a token, and then present that token on later requests instead of resending a username and password every time. That makes automation workflows easier to operate while still fitting into an access-control model.

This does not eliminate the need for transport security or authorization. It simply provides a common mechanism for controlled repeated API access.

Exam trap

A common exam trap is selecting an answer that claims tokens replace HTTPS or perform network functions like IP address assignment or VLAN tagging. Candidates may incorrectly believe tokens provide transport security or network infrastructure services. However, tokens only manage authentication and authorization at the application layer and do not replace encryption or secure transport protocols.

Misunderstanding this distinction leads to choosing incorrect options that confuse token functionality with unrelated network operations.

Why the other options are wrong

B

Incorrect because tokens do not replace HTTPS; transport security remains necessary to protect data and tokens during transmission.

C

Incorrect as token usage is unrelated to IP address assignment, which is managed by protocols like DHCP or static configuration, not authentication tokens.

D

Incorrect because tokens do not convert API data into VLAN tags; VLAN tagging is a Layer 2 network function unrelated to API authentication mechanisms.

96
MCQmedium

A network engineer is evaluating monitoring technologies for a large enterprise network that requires high-frequency, low-latency traffic data collection with support for custom fields. The solution must also support encryption and authentication to prevent tampering. Which technology best meets these requirements?

A.Configure SNMPv2c with community strings and polling every 30 seconds.
B.Implement streaming telemetry using gRPC with TLS and YANG data models.
C.Deploy NetFlow v9 with custom flow records and SNMPv3 for encryption.
D.Use IPFIX with UDP export and add authentication via MD5 hashing.
AnswerB

Streaming telemetry with gRPC over TLS delivers continuous, high-frequency push updates, avoiding the overhead of repeated polling requests and reducing latency to near-real-time. The use of YANG data models provides a structured, vendor-neutral schema that supports custom fields and hierarchical data, unlike fixed-format flow records. TLS ensures both encryption and authentication, protecting the data stream in transit, which makes this the correct choice for modern scalable network monitoring.

Why this answer

Streaming telemetry using gRPC with TLS and YANG data models is correct because it provides high-frequency, low-latency push-based data collection, supports custom fields via YANG models, and ensures encryption and authentication through TLS. This meets all the requirements, unlike polling-based or unencrypted alternatives.

Exam trap

Cisco often tests the misconception that SNMPv3 or NetFlow with custom records can provide both high-frequency push data and encryption, when in fact streaming telemetry with gRPC and TLS is the only solution that natively combines push-based collection, custom fields, and transport-layer security.

Why the other options are wrong

A

SNMPv2c uses community strings transmitted in plain text, lacking encryption and authentication. Polling every 30 seconds is low-frequency and cannot provide high-frequency, low-latency data collection required for real-time monitoring.

C

NetFlow v9 is export-based and not a real-time push mechanism; it typically sends data in batches, introducing latency. SNMPv3 encryption does not apply to NetFlow data, so the combination does not provide secure, high-frequency streaming.

D

IPFIX over UDP lacks built-in encryption, making data vulnerable to interception. MD5 hashing provides integrity but not encryption or authentication for the entire data stream, failing to meet the security requirements.

97
Matchingmedium

Match each controller or automation term to its most accurate description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Central platform used to coordinate policy and management

Application-facing interface used to communicate with the controller

Lightweight structured data format used in API payloads

Secure transport commonly used for API communication

Why these pairings

PLC (Programmable Logic Controller) is an industrial computer for automating electromechanical processes. SCADA (Supervisory Control and Data Acquisition) is a system for remote monitoring and control. DCS (Distributed Control System) controls production processes within a plant.

RTU (Remote Terminal Unit) interfaces with sensors and actuators in remote locations. All given pairings are correct.

Exam trap

Do not confuse SCADA with DCS; SCADA is for geographically dispersed assets, while DCS is for localized plant control. PLCs are basic controllers; RTUs are remote interfaces often used in SCADA systems.

98
PBQmedium

You are connected to SW1, a Cisco switch that is experiencing intermittent connectivity issues. The network administrator suspects a duplex mismatch between SW1 and the connected router R1. Use CDP to verify the status and check interface statistics.

Network Topology
G0/0G0/1linkR1SW1

Hints

  • CDP shows the remote device's capabilities and interface details.
  • Look at the duplex settings on both sides; a mismatch often causes CRC errors.
  • The interface counters show late collisions if duplex mismatch exists.
A.The switch port is set to half duplex, and the router is set to full duplex, causing CRC errors and late collisions.
B.The switch port is set to full duplex, and the router is set to half duplex, causing runts and FCS errors.
C.The switch port and router are both set to half duplex, but the cable is faulty, causing CRC errors.
D.The switch port is set to auto-negotiation, and the router is set to half duplex, causing late collisions.
AnswerA
solution
! SW1
show cdp neighbors GigabitEthernet0/1 detail
show interfaces GigabitEthernet0/1
show interfaces GigabitEthernet0/1 counters errors

Why this answer

The switch port is manually set to half duplex while the router likely negotiates to full duplex, causing a mismatch. CDP output from the switch will show the router's duplex as full. Interface statistics will show increasing CRC errors and late collisions.

The solution is to set the switch port to auto-negotiation or match the duplex setting with the router.

Exam trap

The exam trap is that candidates may confuse the symptoms of duplex mismatch (CRC errors and late collisions) with other issues like cable faults or speed mismatches. Also, they might forget that CDP can be used to verify the duplex setting of a neighbor. Always check CDP output and interface error counters when troubleshooting connectivity issues.

Why the other options are wrong

B

The specific factual error is that the switch port is manually set to half duplex, not full duplex. Also, runts and FCS errors are not the primary indicators of a duplex mismatch.

C

The specific factual error is that a duplex mismatch requires different duplex settings; both half duplex would not cause a mismatch. Faulty cables are a different issue.

D

The specific factual error is that auto-negotiation would likely result in half duplex on both sides, avoiding a mismatch. The scenario states the switch port is manually set to half duplex, not auto.

99
Matchingmedium

Match each automation transport or interaction term to its most accurate description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Encrypted transport commonly used for API communication

Architectural style often using HTTP methods

Structured data format commonly used in API payloads

Credential-like value often used to control API access

Why these pairings

Options A and B are correct. RESTCONF is a stateless, HTTP-based protocol that supports both XML and JSON encoding. NETCONF is a stateful, RPC-based protocol that uses XML encoding and operates over SSH or TLS.

Option C is incorrect because gRPC is an RPC framework that can support both stateless and stateful interactions, but it is not stateless; it uses HTTP/2 and Protocol Buffers. Option D is incorrect because SSH is a stateful protocol that establishes an encrypted session for secure remote access and file transfers.

Exam trap

Be careful not to confuse RESTCONF (stateless) with NETCONF (stateful). Also, remember that gRPC and SSH are stateful protocols.

100
MCQmedium

Given the JSON snippet below, what is the value of hostname? { "device": { "hostname": "R1", "mgmt_ip": "192.0.2.10" } }

A.device
B.hostname
C.R1
D.192.0.2.10
AnswerC

In JSON, the hostname key maps to the string value "R1", so when the snippet is parsed, the expression device.hostname returns R1. This is the actual configured hostname of the network device, as opposed to the key name or other attributes.

Why this answer

The key hostname inside the device object has the value R1.

Exam trap

Be careful not to confuse keys with their values in JSON objects. Ensure you are extracting the correct value by identifying the correct key.

Why the other options are wrong

A

The option 'device' is incorrect because it refers to the key in the JSON structure, not the value associated with the 'hostname' key. The question specifically asks for the value of 'hostname'.

B

Option B is incorrect because it simply repeats the key 'hostname' from the JSON structure without providing the actual value associated with it, which is what the question asks for.

D

This option is wrong because the question specifically asks for the value of 'hostname', which is defined as 'R1' in the JSON snippet. '192.0.2.10' is the value of 'mgmt_ip', not 'hostname'.

101
PBQhard

You are connected to R1 (192.0.2.1/24, management IP). The network team needs to automate interface configuration using RESTCONF. Construct a valid RESTCONF GET request to retrieve the operational status of GigabitEthernet0/1 using the ietf-interfaces YANG module, and a PATCH request to set the description of that interface to 'Link to R2' using the Cisco-IOS-XE-native YANG module. Identify the error that occurs if the Accept header is set to application/json instead of application/yang-data+json.

Network Topology
G0/0192.0.2.1/24G0/010.0.0.2/30G0/1 (10.0.0.1/30)R1R2

Hints

  • RESTCONF uses a specific media type for YANG data; check the Accept header.
  • The YANG module paths differ between ietf-interfaces and Cisco-IOS-XE-native.
  • The interface name must be URL-encoded if it contains special characters; GigabitEthernet0/1 is safe.
A.The server returns a 406 Not Acceptable error because RESTCONF requires the Accept header to be 'application/yang-data+json'.
B.The server returns a 400 Bad Request error because the Accept header must be 'application/json' for RESTCONF.
C.The server returns a 415 Unsupported Media Type error because the Accept header is set incorrectly.
D.The server returns a 200 OK response but ignores the Accept header and returns data in XML format.
AnswerA
solution
! R1
GET request: GET https://192.0.2.1/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/1 HTTP/1.1
Headers: Host: 192.0.2.1, Accept: application/yang-data+json
PATCH request: PATCH https://192.0.2.1/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=0/1/description HTTP/1.1
Headers: Host: 192.0.2.1, Content-Type: application/yang-data+json, Accept: application/yang-data+json
Body: {"description": "Link to R2"}

Why this answer

The correct base URI for RESTCONF on Cisco IOS-XE is https://<device-ip>/restconf/data. For the ietf-interfaces module, the YANG path is /ietf-interfaces:interfaces/interface=GigabitEthernet0%2F1 (note the percent-encoded slash in the key). For the Cisco-IOS-XE-native module, the path is /Cisco-IOS-XE-native:native/interface/GigabitEthernet=0%2F1/description.

The Accept header must be 'application/yang-data+json'; using 'application/json' returns a 406 Not Acceptable error. The PATCH request body must contain the new description in JSON format. Failing to percent-encode the interface name will result in an invalid URI.

Exam trap

The exam tests your knowledge of RESTCONF media types and URL encoding: remember to percent-encode the slash in interface names (e.g., GigabitEthernet0%2F1) and distinguish between 406 (Accept error) and 415 (Content-Type error).

Why the other options are wrong

B

The specific factual error: RESTCONF requires 'application/yang-data+json', not 'application/json'.

C

The specific factual error: 415 relates to Content-Type, not Accept. Accept errors yield 406.

D

The specific factual error: RESTCONF does not silently fall back; it returns a 406 error.

102
Multi-Selectmedium

Which two statements accurately describe APIs in network automation?

Select 2 answers
A.APIs provide a defined way for software systems to interact.
B.APIs can be used by automation tools to retrieve data or request changes.
C.APIs eliminate all need for authentication.
D.APIs are a form of Ethernet duplex setting.
E.APIs are only valid on devices running Telnet.
AnswersA, B

An API (Application Programming Interface) defines a contract of protocols, request/response formats, and rules that allows software components to communicate and exchange data. In networking, this abstraction lets a client application interact with a network device or controller without needing to know the device's internal command syntax or OS details. For example, a REST API uses HTTP methods like GET and POST to retrieve or alter network state, making the interaction standardized and machine-readable.

Why this answer

APIs (Application Programming Interfaces) define a standardized, structured method for software systems to communicate, enabling network automation tools to programmatically retrieve operational data or push configuration changes. This eliminates the need for manual CLI or SNMP interactions, allowing scalable and repeatable automation workflows. Options A and B correctly describe this.

Option C is false because APIs require authentication; they do not bypass security. Option D is false because APIs are software interfaces, not Ethernet duplex settings. Option E is false because APIs work over various protocols (e.g., HTTP/HTTPS), not just Telnet.

Exam trap

Cisco often tests the misconception that APIs bypass security, but in reality, APIs enforce authentication and authorization just as strictly as CLI or SNMP.

Why the other options are wrong

C

This option is incorrect because APIs typically require authentication to ensure secure access and prevent unauthorized use, which is a fundamental aspect of API design.

D

APIs are not related to Ethernet duplex settings; they are software interfaces that enable communication between different applications or systems. This option misrepresents the fundamental purpose of APIs in network automation.

E

APIs are not limited to devices running Telnet; they can be implemented on various platforms and protocols, including HTTP and REST, which are widely used in modern network automation.

103
MCQeasy

An engineer receives API output that starts with curly braces and contains name-value pairs. Which data format is being used?

A.YANG
B.JSON
C.Syslog
D.SMTP
AnswerB

A payload that begins with a curly brace is the signature of a JSON object. JSON (JavaScript Object Notation) is a lightweight, language-independent data-interchange format in which data is organized as key-value pairs within braces. REST APIs commonly return JSON, and the very first character being '{' confirms the representation is a JSON document rather than a flat text or structured binary format.

Why this answer

JSON represents data as objects and arrays using braces, brackets, and name-value pairs. It is the most common format you will see in modern network APIs.

Exam trap

A frequent exam trap is mistaking YANG for the data format when seeing curly braces and name-value pairs. YANG is a modeling language that defines the structure and constraints of network data but does not represent the actual data payload. Candidates might also confuse Syslog or SMTP with JSON due to their familiarity with network protocols, but these protocols do not use JSON’s syntax.

This confusion leads to selecting incorrect answers, especially under time pressure. Recognizing that JSON is the payload format commonly used in Cisco APIs helps avoid this mistake and correctly interpret automation output.

Why the other options are wrong

A

YANG is a modeling language used to define the structure and constraints of network data but does not represent the actual data payload format. The question describes data output starting with curly braces and name-value pairs, which is a data format, not a model, so YANG is incorrect.

C

Syslog is a protocol used for sending event messages and logs from network devices. Its message format does not use curly braces or name-value pairs as JSON does, so it does not match the described API output format.

D

SMTP is a protocol for sending email messages and does not relate to network device data formats or API outputs. It does not use curly braces or name-value pairs in its message structure, making it irrelevant to the question.

104
Multi-Selecthard

A controller exposes a YANG-modeled interface configuration through an API. Which two statements correctly describe the purpose of YANG in that workflow?

Select 2 answers
A.It provides a structured data model for configuration and operational data
B.It helps standardize how network elements represent managed data
C.It replaces IP addressing on routed interfaces
D.It is a spanning-tree optimization mechanism
AnswersA, B

YANG defines a hierarchical, tree-like schema that organizes both configuration data (intended state) and operational state data (actual state) for network devices. This structured model enables programmatic access and automation, as APIs like NETCONF/RESTCONF use YANG to validate and manipulate the data. It provides a clear, machine-readable representation of what a device can do and how its configuration is structured.

Why this answer

YANG is a modeling language. It defines the structure of network data so controllers and devices can exchange information consistently through APIs such as RESTCONF or NETCONF.

Exam trap

A frequent exam trap is mistaking YANG for a network protocol or function rather than a data modeling language. For example, options suggesting YANG replaces IP addressing or optimizes spanning-tree protocols are incorrect because YANG does not perform routing or Layer 2 operations. Candidates might confuse YANG’s role with actual network services instead of recognizing it as a schema that defines how configuration and state data are structured and exchanged.

This misunderstanding can lead to selecting incorrect answers that describe network functions rather than data modeling purposes.

Why the other options are wrong

C

Option C is incorrect because YANG does not replace IP addressing on routed interfaces. IP addressing is a network-layer function, while YANG models the data representing such configurations but does not perform addressing itself.

D

Option D is wrong as YANG has no role in spanning-tree optimization or Layer 2 loop prevention. YANG is a data modeling language and does not influence protocol operations like STP.

105
Multi-Selectmedium

Which three of the following are benefits of integrating AI into network operations? (Choose three.)

Select 3 answers
.Reduced mean time to repair (MTTR) through faster incident diagnosis
.Improved accuracy in capacity planning by predicting traffic trends
.Automated enforcement of security policies based on real-time risk analysis
.Complete elimination of network downtime
.Zero configuration required for new network devices
.Total removal of human network engineers from operations

Why this answer

AI reduces mean time to repair (MTTR) by rapidly diagnosing incidents through automated correlation of telemetry and logs. It improves capacity planning by analyzing traffic patterns and predicting future demands, enabling proactive scaling. Automated security policy enforcement uses real-time risk analysis to adjust rules dynamically.

The three distractors are wrong because AI cannot guarantee complete elimination of network downtime (unexpected hardware failures still occur), zero configuration for new devices (initial setup and integration still require human input), or total removal of human engineers (AI augments but does not replace strategic oversight and complex problem-solving).

Exam trap

Candidates often mistake AI's ability to automate specific tasks for a complete replacement of human roles or an unrealistic promise of absolute network reliability—AI enhances operations, it does not make them foolproof.

Why the other options are wrong

D

AI-driven operations can minimize downtime but cannot eliminate it entirely due to unpredictable hardware failures and external factors.

E

New network devices still require initial configuration and policy assignment; AI may assist but cannot achieve zero configuration.

F

Human engineers remain essential for strategic planning, complex troubleshooting, and overseeing AI-driven processes.

106
MCQhard

Why is a northbound API especially useful in a controller-based network architecture?

A.It allows external software to interact programmatically with the controller.
B.It is the cable standard used to connect access points.
C.It replaces all need for authentication and authorization.
D.It makes VLAN tagging unnecessary.
AnswerA

This is correct because northbound APIs provide the application-facing interface into the controller.

Why this answer

A northbound API is especially useful because it gives external applications and automation tools a defined way to communicate with the controller. In plain language, it allows software above the controller to request information, apply policies, or trigger changes without manual per-device interaction. That is one of the main reasons controller-based networking fits well with orchestration and automation.

Option C is incorrect because a northbound API does not replace authentication and authorization; it is an interface that uses existing security mechanisms. Option D is incorrect because VLAN tagging is a data‑plane function unaffected by the northbound API; the API does not eliminate the need for VLANs. The controller is the centralized system, and the northbound API is the software-facing interface that exposes it.

The correct answer is the one centered on application integration rather than on physical connectivity or device forwarding.

Exam trap

Avoid confusing northbound APIs with hardware configuration or physical connectivity functions.

Why the other options are wrong

C

A northbound API does not replace authentication or authorization; it relies on those mechanisms to secure API access.

D

VLAN tagging is a data‑plane feature independent of the northbound API; the API does not make VLAN tagging unnecessary.

107
MCQhard

Exhibit: A script sends an API request and receives HTTP status code 401. What does that code indicate?

A.The requested resource was not found
B.The client is not authenticated successfully
C.The server completed the request successfully
D.The server rejected the request because the JSON body was too large
AnswerB

A 401 Unauthorized status code explicitly indicates that the HTTP request was received but the server could not authenticate the client's identity. This means the script failed to provide valid credentials, such as a missing API key, expired token, or malformed Authorization header. The server must verify who the client is before processing the request, and without valid authentication it responds with 401 rather than fulfilling the API call. Therefore, the client is not authenticated successfully.

Why this answer

HTTP 401 means the request was not accepted because authentication is required or the provided credentials or token were invalid. In practice, the first thing to check is the token, username, password, or auth header format.

Exam trap

Don't confuse authentication errors with server errors or resource availability issues. Focus on the specific meaning of each HTTP status code.

Why the other options are wrong

A

HTTP status code 401 specifically indicates unauthorized access due to missing or invalid authentication. A 'resource not found' is indicated by 404, not 401.

C

HTTP 401 indicates authentication failure, not successful completion. A 200-level code would indicate success.

D

HTTP 401 indicates authentication failure, not a request entity too large. The '413 Payload Too Large' status code is used when the request body exceeds the server's limit.

108
MCQeasy

Which term describes a string or credential passed to an API to prove the client is allowed to access a resource?

A.Metric
B.Token
C.Lease
D.Tuple
AnswerB

A token is a compact credential string, such as an OAuth 2.0 bearer token or a JWT, that the client presents to an API, typically in the Authorization header. It grants authenticated access and may carry scopes or expiry, making it the correct term for a credential passed to an API.

Why this answer

A token is commonly used for API authorization. It is often included in an HTTP header and lets the server verify the caller has permission.

Exam trap

A common exam trap is mistaking the term 'token' for other networking terms such as 'metric,' 'lease,' or 'tuple.' Candidates might confuse 'metric' as a general value related to network performance or 'lease' as a temporary credential, but these terms do not relate to API authorization. Another trap is assuming that any credential passed to an API is called a 'lease' or 'tuple,' which are unrelated concepts. Recognizing that a token specifically serves as an authorization credential passed to prove client access rights is critical to avoid this confusion.

Why the other options are wrong

A

Metric is a routing concept representing route cost and does not relate to API access or authorization credentials, so it is incorrect.

C

Lease refers to DHCP IP address assignment duration and is unrelated to API credentials or authorization, making it incorrect.

D

Tuple is a data structure term and does not describe any form of authorization credential for API access, so it is incorrect.

109
MCQmedium

A network engineer is automating the configuration of a new branch office router. The engineer needs a protocol that uses a YANG data model, supports both configuration and operational state retrieval, and operates over SSH for secure transport. Which protocol should the engineer use?

A.SNMP
B.NETCONF
C.RESTCONF
D.CLI scripting
AnswerB

NETCONF is an IETF-standard protocol that uses YANG data models to define configuration and operational state data, encoding operations like get, edit-config, and commit in XML over a secure SSH transport. It explicitly separates the running configuration from operational state, supports transactional commit/rollback and candidate datastores, and provides a session-oriented, RPC-based mechanism ideal for automating network device configuration securely. These capabilities make NETCONF the correct choice for the scenario.

Why this answer

NETCONF (Network Configuration Protocol) is the correct choice because it uses YANG data models for configuration and operational state retrieval, and it operates over SSH (RFC 6242) for secure transport. Unlike SNMP, NETCONF provides transactional configuration changes and separates configuration from operational state data, making it ideal for automated router configuration.

Exam trap

Cisco often tests the distinction between NETCONF and RESTCONF, where the trap is that both use YANG, but candidates forget that NETCONF specifically requires SSH transport, while RESTCONF uses HTTP/HTTPS, making NETCONF the only correct answer when the question specifies 'operates over SSH'.

Why the other options are wrong

A

SNMP does not use YANG data models and typically operates over UDP, not SSH.

C

RESTCONF uses HTTP/HTTPS for transport, not SSH, so it does not meet the requirement of operating over SSH.

D

CLI scripting lacks a standardized data model like YANG and is not a protocol that operates over SSH in the same structured manner as NETCONF.

110
MCQmedium

A network administrator needs to configure VLANs and access ports on 200 managed switches across multiple locations. The administrator requires a solution that uses a push‑based deployment model, does not require any agent software to be installed on the switches, and can be executed from a central control node. Which automation tool is most suitable for this task?

A.Puppet
B.Chef
C.Ansible
D.Python scripts
AnswerC

Ansible is the correct answer because it employs a push-based, agentless model over SSH (or WinRM). The control node connects directly to managed hosts, executes modules written in Python, and applies YAML playbooks in real time, with no persistent agent installed on targets. This makes Ansible ideal for immediate orchestration and configuration tasks, especially in dynamic environments where maintaining agents on every node is impractical.

Why this answer

Ansible is the most suitable tool because it uses a push-based model (SSH) to apply configurations directly to network devices without requiring any agent software. It operates from a central control node, making it ideal for managing 200 switches across multiple locations with a single playbook execution.

Exam trap

Cisco often tests the distinction between push-based (Ansible) and pull-based (Puppet, Chef) models, and the trap here is assuming that any scripting language like Python is a complete automation tool rather than a component that requires additional orchestration.

Why the other options are wrong

A

Requires agents and is pull‑based, failing both the agentless and push requirements.

B

Agents are mandatory, and the pull mechanism contradicts the push requirement.

D

Lacks built‑in push‑based orchestration, idempotency, and agentless design without significant custom development, making it less suitable than a purpose‑built tool.

111
MCQmedium

An automation script must retrieve the current configuration state of a device from a REST API without modifying anything. Which HTTP method should it use?

A.DELETE
B.GET
C.PUT
D.POST
AnswerB

GET is the correct choice because it is a safe, idempotent HTTP method defined by RFC 7231 specifically for retrieving the current representation of a resource. It performs no state change on the server, so the script can fetch the running configuration without risking any modification. The response body carries the requested configuration data, making GET the semantically exact operation for a read-only retrieval.

Why this answer

When a script only needs to read information, the normal REST choice is GET. In plain terms, GET asks the server, “Show me the current data,” without telling it to create, replace, or delete anything. That is why GET is the standard method for retrieving device state, configuration details, statistics, or inventory information from an API endpoint.

The other methods imply change. POST commonly creates or submits data. PUT commonly updates an existing resource. DELETE removes something. For a read-only query, GET is the clean and expected method.

Exam trap

Avoid confusing HTTP methods that modify data (POST, PUT, DELETE) with GET, which is read-only.

Why the other options are wrong

A

The DELETE method is used to remove a resource from the server, which directly modifies the state of the device's configuration. Since the question specifies that the script must retrieve the configuration without making any modifications, DELETE is not appropriate.

C

The PUT method is used to update or replace a resource on a server, which contradicts the requirement of retrieving the current configuration state without making any modifications.

D

The POST method is used to send data to a server to create or update a resource, which contradicts the requirement of retrieving the current configuration state without modifying anything.

112
Multi-Selectmedium

Which two statements accurately describe controller-based networking at the CCNA level?

Select 2 answers
A.A controller can centralize management and policy logic.
B.Northbound APIs can allow external applications to communicate with the controller.
C.Controllers eliminate all need for switches and routers.
D.Controllers are unrelated to automation.
E.Controllers require Telnet for all communication.
AnswersA, B

A controller centralizes management and policy logic, providing a single point from which administrators define and enforce network-wide configurations, security policies, and quality-of-service rules. This abstraction simplifies operations compared with per-device CLI management, allowing consistent policy application across many switches and routers without replacing the forwarding infrastructure itself.

Why this answer

A software-defined networking (SDN) controller centralizes management, policy logic, and network intelligence, reducing manual per-device configuration. Option B is correct because northbound APIs (e.g., REST APIs) allow external applications, orchestration tools, and automation scripts to interact with the controller for dynamic network control. Option C is wrong because controllers do not eliminate switches and routers; these devices still forward packets based on instructions from the controller.

Option D is wrong because controllers are fundamental to network automation—they provide programmable interfaces and centralized logic that enable automated provisioning and policy enforcement. Option E is wrong because modern controllers use secure communication channels such as HTTPS, SSH, or TLS, not Telnet (which is insecure and rarely used in controller architectures).

Exam trap

A frequent exam trap is selecting answers that imply controllers replace all network devices or that they are unrelated to automation. Some candidates mistakenly believe that controller-based networking removes the need for switches and routers, which is incorrect because these devices still perform actual packet forwarding. Others overlook the role of controllers in automation, ignoring that controllers expose northbound APIs specifically to enable external applications and automation tools to interact with the network.

Misunderstanding these points can lead to choosing incorrect options that overstate or understate the controller’s role.

Why the other options are wrong

C

This option is incorrect because controllers do not eliminate the need for switches and routers; these devices still perform the actual packet forwarding in the network.

D

This option is incorrect since controllers are highly relevant to automation, providing APIs and centralized control that enable automated network management workflows.

E

This option is incorrect because controller communication is not universally based on Telnet; modern controllers use secure protocols and APIs rather than relying solely on Telnet.

113
PBQhard

Which option performs the RESTCONF operations correctly?

Network Topology
G0/0192.168.1.1/30G0/0192.168.1.2/30linkR1R2

Hints

  • Check the YANG module path: ietf-interfaces vs Cisco-IOS-XE-native
  • Ensure the Accept header matches the data format (yang-data+json)
  • For PATCH, the Content-Type must be application/yang-data+json, not application/json
A.GET /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/0 with Accept: application/yang-data+json; then PATCH same URI with Content-Type: application/yang-data+json and body {"ietf-interfaces:interface":{"duplex":"full"}}; expect 204 No Content.
B.GET /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/0 with Accept: application/json; then PATCH same URI with Content-Type: application/json and body {"duplex":"full"}; expect 204 No Content.
C.GET /restconf/data/Cisco-IOS-XE-native:interface/GigabitEthernet0/0 with Accept: application/yang-data+json; then PATCH same URI with Content-Type: application/yang-data+json and body {"Cisco-IOS-XE-native:interface":{"duplex":"full"}}; expect 204 No Content.
D.GET /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/0 with Accept: application/yang-data+json; then PATCH same URI with Content-Type: application/yang-data+json and body {"duplex":"full"}; expect 200 OK.
AnswerA
solution
! R1
GET request URI: /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/0
GET headers: Accept: application/yang-data+json
PATCH request URI: /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/0
PATCH headers: Content-Type: application/yang-data+json
PATCH body: {"ietf-interfaces:interface": {"duplex": "full"}}

Why this answer

The correct base URI for RESTCONF is /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/0. The Accept header must be application/yang-data+json. If the Content-Type header is incorrect (e.g., application/json), the router will return a 415 Unsupported Media Type error.

Using the wrong YANG module path, such as Cisco-IOS-XE-native:interface/GigabitEthernet0/0, will result in a 404 Not Found because the data model does not match. After a successful GET, the PATCH request must include the same URI with Content-Type: application/yang-data+json and a JSON body specifying "duplex": "full". The response should be a 204 No Content if successful.

Exam trap

Watch out for the required media type: RESTCONF uses application/yang-data+json, not generic application/json. Also, the YANG path must match the data model; for standard interface settings, use ietf-interfaces, not Cisco-IOS-XE-native. Finally, remember that a successful PATCH returns 204 No Content, not 200 OK.

Why the other options are wrong

B

The specific factual error is that RESTCONF requires the media type application/yang-data+json for YANG data, not generic application/json.

C

The specific factual error is that the duplex setting is defined in the ietf-interfaces YANG model, not in Cisco-IOS-XE-native. The URI path must match the data model.

D

The specific factual errors are: (1) The PATCH body must be structured as {"ietf-interfaces:interface":{"duplex":"full"}} to match the YANG data tree; (2) The success response for PATCH is 204 No Content, not 200 OK.

114
MCQeasy

Which data format is commonly used with REST APIs to represent objects, arrays, and key-value pairs?

A.JSON
B.STP
C.EIGRP
D.802.1Q
AnswerA

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format that organizes data into key-value pairs and arrays. It is language-agnostic, human-readable, and natively parseable by virtually every programming language, making it the de facto standard for representing resources in REST API request and response bodies, typically transmitted over HTTP with the Content-Type: application/json header.

Why this answer

JSON is a common data-interchange format used in APIs and automation systems.

Exam trap

Avoid assuming older technologies like XML are still the most common choice for modern REST APIs.

Why the other options are wrong

B

STP (Spanning Tree Protocol) is a network protocol used for preventing loops in Ethernet networks, and it is not a data format used with REST APIs. Therefore, it does not represent objects, arrays, or key-value pairs.

C

EIGRP (Enhanced Interior Gateway Routing Protocol) is a routing protocol used for exchanging routing information within an autonomous system, not a data format for representing objects or key-value pairs in APIs.

D

802.1Q is a networking standard used for VLAN tagging in Ethernet frames, not a data format for representing objects or key-value pairs in APIs. It does not relate to REST API data representation.

115
Multi-Selectmedium

An engineer is comparing data serialization formats used by controllers and automation tools. Which two statements correctly describe JSON?

Select 2 answers
A.It represents data as key-value pairs and arrays
B.It is commonly used in REST API payloads
C.It requires closing tags like XML
D.It can only represent numeric values
AnswersA, B

JSON represents structured data as an unordered collection of key-value pairs inside an object, where keys are double-quoted strings and values can be any valid JSON type. It also supports arrays as ordered lists of values, which map directly to lists in programming languages. This means JSON can describe both records and collections of records, making it a foundational format for data interchange.

Why this answer

JSON structures data using key-value pairs (objects) and ordered lists (arrays), which are fundamental to its syntax. Option B is correct as JSON is the standard payload format for REST API requests and responses due to its lightweight nature and ease of parsing. Option C is incorrect because JSON does not use closing tags; instead, it relies on curly braces {} for objects and square brackets [] for arrays.

Option D is incorrect because JSON supports multiple data types beyond numeric values, including strings, booleans, null, arrays, and nested objects.

Exam trap

A frequent exam trap is assuming JSON requires closing tags similar to XML, which is incorrect. JSON uses braces and brackets to define objects and arrays without paired tags, so confusing these formats can lead to wrong answers. Another common mistake is believing JSON only supports numeric values, ignoring that it also supports strings, booleans, null, arrays, and nested objects.

Misunderstanding these details can cause candidates to incorrectly reject JSON as a serialization format in automation scenarios, especially when comparing it to XML or other data formats.

Why the other options are wrong

C

Option C is incorrect because JSON does not require closing tags like XML; it uses braces and brackets to delimit data structures, making this statement false.

D

Option D is incorrect as JSON supports a variety of data types beyond numeric values, including strings, booleans, arrays, objects, and null, so it is not limited to numbers.

116
Drag & Dropmedium

Drag and drop the following steps into the correct order to implement a basic network monitoring workflow using telemetry and streaming analytics on Cisco IOS-XE.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The workflow begins by collecting data via telemetry from network devices (A), then streaming that data to an analytics platform (B). After streaming, the data is monitored using dashboards (C), and finally alerts are generated for threshold violations (D).

Exam trap

Students often reverse the order of streaming and monitoring; data must be streamed before it can be visualized.

117
Drag & Dropmedium

Drag and drop the following steps into the correct order to set up gRPC streaming telemetry subscription on a Cisco IOS-XE device.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence for setting up gRPC streaming telemetry on a Cisco IOS-XE device is: first, enter global configuration mode. Next, create a telemetry subscription because the subscription provides the sub-mode where the remaining elements are configured. Within the subscription, you can configure the receiver (specifying destination, protocol, and encoding) and define the sensor path (selecting YANG data nodes) in any order, as neither depends on the other.

Finally, associate the sensor group to bind the sensor path to the subscription. Only option A follows this exact order. Options B, C, and D contain ordering errors that would cause configuration failure.

Exam trap

A common mistake is trying to define a sensor path or associate a sensor group before the telemetry subscription has been created; the subscription must be established first to host those elements. Another pitfall is confusing the flexible order of receiver and sensor path with the need to create the subscription first.

118
MCQmedium

An API call returns HTTP status code 401. What does that usually mean?

A.The resource was moved permanently
B.The request was successful but no content was returned
C.Authentication is required or the credentials are invalid
D.The server cannot parse JSON
AnswerC

HTTP 401 Unauthorized is specifically the status code that signals a failure to authenticate: either no credentials were supplied in the request, or the provided credentials (e.g., API key, token, username/password) were invalid or expired. The server sends a 401 to force the client to re-authenticate with valid credentials before the requested API resource can be accessed. It is not a permission-denied error like 403, but strictly an authentication error.

Why this answer

A 401 response means the request lacks valid authentication credentials. The token may be missing, expired, or invalid.

Exam trap

A frequent exam trap is confusing the 401 Unauthorized status code with other HTTP errors such as 403 Forbidden or 400 Bad Request. Candidates might incorrectly assume a 401 means the server cannot parse the request or that the resource was moved, which are actually indicated by 400 and 301 status codes respectively. This misunderstanding leads to incorrect troubleshooting steps in automation scenarios.

Remember, 401 always points to missing or invalid authentication credentials, not to resource relocation or malformed requests.

Why the other options are wrong

A

Option A is incorrect because a 301 status code indicates that the requested resource has been moved permanently to a new URL, not an authentication issue. Confusing 301 with 401 can lead to misdiagnosing API errors.

B

Option B is incorrect since a 204 status code means the request was successful but no content was returned. It does not indicate any authentication problem, unlike 401 which specifically relates to authorization failures.

D

Option D is incorrect because a server's inability to parse JSON usually results in a 400 Bad Request error, not a 401 Unauthorized. The 401 code is strictly about authentication, not parsing or syntax errors.

119
MCQhard

Why might a controller return interface information as a JSON array instead of a single JSON object?

A.Because an array is the appropriate structure for an ordered list of multiple interface entries.
B.Because a JSON object cannot contain fields.
C.Because arrays are used only for IPv6 interfaces.
D.Because arrays eliminate the need for API authentication.
AnswerA

In JSON, an array is an ordered collection of values, making it the correct structure to represent multiple interface entries where each entry follows a sequential order and may repeat. A controller returning interface information as an array allows consumers to iterate over the list predictably, with each element being a distinct interface object. This mirrors the data model for a list of interfaces rather than a single scalar value.

Why this answer

A controller might return interface information as a JSON array because there are multiple interface records to present as a list. In practical terms, an array is the correct structure when the response includes several similar items, such as multiple interfaces, routes, or VLANs. Each element in the array can then be its own object with fields like name, status, or IP address.

This is a data-structure recognition question. It is not about networking behavior directly, but about understanding how automation systems represent repeated information.

Exam trap

A frequent exam trap is believing that JSON objects cannot contain multiple fields or that arrays are only used for specific interface types like IPv6. This misunderstanding leads to incorrect assumptions about data representation in network automation. Candidates might also confuse data structure choices with unrelated concepts like API authentication, mistakenly thinking arrays affect security.

The trap lies in conflating the purpose of JSON arrays as a data structure for multiple similar items with other unrelated networking or security concepts. Understanding that arrays simply represent ordered lists of items, such as multiple interfaces, is crucial to avoid this confusion.

Why the other options are wrong

B

This option is incorrect because JSON objects do contain fields; they are collections of key-value pairs representing attributes of a single entity, so the claim that objects cannot contain fields is false.

C

This option is wrong because JSON arrays are a general data structure used for any list of items, not exclusively for IPv6 interfaces; interface type does not dictate JSON structure.

D

This option is incorrect because the choice of JSON data structure (array vs. object) does not affect API authentication or security; these are separate concerns unrelated to data formatting.

120
MCQmedium

A network automation script sends this HTTP request to a controller API: POST /api/v1/devices What does the POST method typically indicate in a RESTful API?

A.It retrieves an existing resource without changing it
B.It creates a new resource or submits data to be processed
C.It deletes the targeted resource permanently
D.It replaces the entire existing resource in an idempotent way
AnswerB

Correct. This is correct. POST commonly creates a new resource or submits data to the API for processing. In automation questions, that usually means the script is asking the controller to add something or perform an action using the payload it sends.

Why this answer

POST usually means the client is submitting information to create a new resource or asking the server to process the provided payload. In a controller-based networking context, that often means onboarding a device, creating an object, or starting a workflow. This question is testing method recognition rather than deep programming skill.

GET is commonly used for retrieval, DELETE for removal, and PUT for full replacement or update behavior that is typically idempotent. POST is different because repeating the same POST can create multiple objects or trigger repeated actions, depending on the API design. For CCNA purposes, the plain-English takeaway is simple: POST is generally associated with create-or-submit behavior, not read-only retrieval.

Exam trap

Remember that POST is for creating resources, not retrieving, deleting, or updating them.

Why the other options are wrong

A

Option A is incorrect because the POST method is not used for retrieving resources; instead, it is intended for creating new resources or submitting data for processing in a RESTful API context.

C

The POST method is used to create or submit data, not to delete resources. Option C incorrectly describes the function of the DELETE method in RESTful APIs, which is responsible for removing resources.

D

Option D is incorrect because the POST method is not idempotent and does not replace an existing resource; it is primarily used to create new resources or submit data.

121
PBQhard

You are connected to R1 (192.0.2.1/24). Use RESTCONF to query the operational state of GigabitEthernet0/0 using the ietf-interfaces YANG module. Then, send a PATCH request to disable the interface (set 'enabled' to false) using the Cisco-IOS-XE-native YANG module. Identify the error when a PATCH request is sent with the wrong Content-Type header (application/json instead of application/yang-data+json) and when the PATCH URI uses an incorrect YANG path (ietf-interfaces instead of Cisco-IOS-XE-native).

Hints

  • RESTCONF requires Content-Type: application/yang-data+json for write operations.
  • The ietf-interfaces module is read-only for operational state; use Cisco-IOS-XE-native for configuration changes.
  • Check the URI path: /restconf/data/ followed by the YANG module and container/leaf.
A.The PATCH request fails with a 415 Unsupported Media Type error because the Content-Type header must be application/yang-data+json, not application/json.
B.The PATCH request fails with a 404 Not Found error because the URI uses ietf-interfaces, which is a read-only module for operational state; the server cannot write to it.
C.The PATCH request succeeds but the interface is not disabled because the body must use 'shutdown' instead of 'enabled'.
D.The PATCH request fails with a 400 Bad Request error because the body must be XML, not JSON.
AnswerA
solution
! R1
GET /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/0 --header 'Accept: application/yang-data+json'
PATCH /restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=0/0 --header 'Content-Type: application/yang-data+json' -d '{"Cisco-IOS-XE-native:interface":{"GigabitEthernet":[{"name":"0/0","shutdown":true}]}}'

Why this answer

The correct GET request uses the ietf-interfaces YANG module path to retrieve interface state. For the PATCH, the Cisco-IOS-XE-native module is used because it supports writing native configuration (including shutdown). Sending PATCH with Content-Type: application/json is rejected because RESTCONF requires application/yang-data+json.

Using ietf-interfaces in the PATCH URI fails because that module is read-only for operational state; the server returns 404 or 405. The correct PATCH body sets 'shutdown' to true within the native interface container.

Exam trap

The trap is that candidates may focus on the YANG module path error (ietf-interfaces vs Cisco-IOS-XE-native) and miss that the question explicitly asks about the error when the Content-Type header is wrong. Always read the question carefully to identify the specific condition being tested.

Why the other options are wrong

B

The specific factual error is that the question asks about the error when the Content-Type header is wrong, not the URI path. The URI path error is a separate issue.

C

The specific factual error is that a wrong Content-Type header causes a rejection before any body parsing, so the request does not succeed.

D

The specific factual error is that RESTCONF does accept JSON; the issue is the exact media type string, not the format.

122
Matchingeasy

Which term refers to a lightweight data-interchange format that is easy for humans to read and write, and easy for machines to parse and generate?

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Lightweight structured data format often used in API responses

Data modeling language for network configuration and state

Architecture style that commonly uses HTTP methods such as GET and POST

Credential or value used to authorize API requests

Why these pairings

JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write, and easy for machines to parse and generate. It is commonly used in REST APIs. XML (eXtensible Markup Language) is also a data format but it is more verbose and uses tags; it is typically associated with SOAP rather than being the best match for the description given.

REST (Representational State Transfer) is an architectural style, not a data format, and SOAP (Simple Object Access Protocol) is a protocol, not a data format. Therefore, only JSON correctly matches the description of a lightweight data format.

Exam trap

The trap is confusing data formats with API protocols. Many candidates mistakenly think XML or JSON are protocols because they are used with REST/SOAP, but they are formats. Remember: formats describe data structure; protocols define communication rules.

123
PBQmedium

You are connected to R1 via the console. R1 is a Cisco ISR 4321 router running IOS-XE. The network manager wants to monitor interface utilization changes. Use RESTCONF to retrieve the operational state of GigabitEthernet0/0/0 on R1. The device has RESTCONF enabled with username 'admin' and password 'cisco'. The management IP is 192.168.1.1.

Hints

  • RESTCONF uses HTTPS on port 443 by default.
  • The interface name in the URI must be URL-encoded (e.g., '/' becomes '%2F').
  • Use the 'Accept' header to request JSON data.
A.curl -X GET -u admin:cisco https://192.168.1.1/restconf/data/ietf-interfaces:interfaces-state/interface=GigabitEthernet0%2F0%2F0
B.curl -X GET -u admin:cisco https://192.168.1.1/restconf/data/ietf-interfaces:interfaces/GigabitEthernet0/0/0
C.curl -X POST -u admin:cisco https://192.168.1.1/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0%2F0%2F0
D.curl -X GET -u admin:cisco https://192.168.1.1/restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces/GigabitEthernet0/0/0
AnswerA
solution
! R1
curl -k -X GET https://192.168.1.1/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0%2F0%2F0 -u admin:cisco -H "Accept: application/yang-data+json"

Why this answer

RESTCONF uses GET to retrieve data. To retrieve operational state (including interface counters), the path must lead to the `interfaces-state` container, not `interfaces`. The correct YANG data model for operational interface state is `ietf-interfaces:interfaces-state`, and the interface name must be URL-encoded to replace slashes with `%2F`.

Option C uses POST, which is wrong. Option B lacks URL encoding and uses the config container. Option D uses a Cisco-specific module and unencoded slashes, and is not the standard operational state path.

Exam trap

The most common mistake is using the `ietf-interfaces:interfaces` configuration container instead of the `ietf-interfaces:interfaces-state` operational state container, causing retrieval of the running configuration rather than live interface counters and utilization.

Why the other options are wrong

B

The request uses unencoded slashes in the interface name and the configuration container `interfaces`, not `interfaces-state`, so it will not retrieve operational state.

C

RESTCONF uses GET for retrieval; POST is used to create new resources or invoke operations, not to read operational data.

D

This uses a Cisco-IOS-XE-specific module and unencoded slashes, while the task expects the standard ietf-interfaces operational state path.

124
Matchingeasy

Match each basic automation term to its most accurate meaning.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Software interface used for communication

Structured data format

Secure transport for the communication

Credential-like value used to help control access

Why these pairings

Automation refers to the use of technology to perform tasks with minimal human intervention, reducing manual effort and errors. Orchestration is the coordination of multiple automated tasks into a seamless workflow, ensuring proper sequencing and dependencies. A script is a set of instructions written in a scripting language that is executed by an interpreter, often used to automate repetitive tasks.

A workflow is a defined sequence of steps that accomplishes a specific business process, which can be automated to streamline operations.

Exam trap

Be careful not to confuse automation with orchestration: automation is about individual task execution, while orchestration coordinates multiple automated tasks. Similarly, a script is a specific set of instructions, whereas a workflow is a higher-level sequence that may involve multiple scripts or automation tools.

125
Multi-Selectmedium

Which three statements accurately describe the role of Cisco's AI-powered security features (such as Cisco AI Network Analytics, Stealthwatch, or DNA Center's AI-Enhanced Analytics) in network security operations? (Choose three.)

Select 3 answers
.AI models can detect zero-day exploits by analyzing behavioral anomalies
.AI-powered systems can correlate logs from multiple sources to identify complex attack chains
.AI can automate the response to certain security incidents, such as blocking malicious IPs
.AI is only effective against known, signature-based threats
.AI eliminates the need for firewall rules and access control lists
.AI security models require no human oversight once deployed

Why this answer

Cisco's AI-powered security features detect zero-day exploits by analyzing behavioral anomalies and deviations from learned baselines, without relying on signatures. These systems correlate logs from multiple Cisco products (e.g., firewalls, endpoints, cloud) to uncover multi-step attack chains. AI can also automate responses such as blocking malicious IPs via Cisco security controls, reducing mean time to respond (MTTR).

However, AI complements but does not replace traditional security tools like firewall rules or ACLs, and it requires ongoing human oversight for validation and tuning.

Exam trap

Cisco often tests the misconception that AI is only for signature-based detection or that it fully replaces traditional security controls, when in reality AI complements existing tools and still requires human oversight.

126
MCQmedium

A network operations team is implementing an automated system to detect and remediate interface flapping on core switches. The system must be able to query the network device for interface status and execute commands to disable or reconfigure the interface if a pattern of flapping is detected. Which protocol or technology enables the system to programmatically interact with the network device for both monitoring and configuration changes?

A.SNMP
B.NETCONF
C.CLI scripting
D.Syslog
AnswerB

NETCONF is the correct protocol because it defines IETF-standard XML-based RPCs executed over SSH, allowing an automation agent to retrieve, install, manipulate, and delete device configuration. It operates on multiple datastores (candidate, running, startup) with support for validation, commit, and rollback, and is coupled with YANG models to provide structured, vendor-neutral data. This transactional model-driven design makes NETCONF ideal for closed-loop remediation where an autonomous agent must reliably implement config changes and undo them on failure.

Why this answer

NETCONF is the correct choice because it is a standardized network configuration protocol that allows automated systems to retrieve operational data and push configuration changes securely. In this scenario, the system would use NETCONF to query interface status and then apply remediation configurations. SNMP can monitor but has limited configuration capabilities, CLI scripting is non-programmatic and error-prone, and Syslog is only for logging.

Exam trap

Many candidates confuse SNMP with configuration protocols, but SNMP is not designed for robust configuration management; NETCONF and RESTCONF are the modern programmatic interfaces emphasized in CCNA automation topics.

Why the other options are wrong

A

SNMP is limited to monitoring and basic sets, not suited for complex remediation workflows.

C

CLI scripting lacks structured programmability and is error-prone for automation.

D

Syslog is a logging protocol and cannot be used to push configuration changes.

127
Multi-Selectmedium

Which two statements correctly describe a RESTful API used by network controllers? Choose two.

Select 2 answers
A.It commonly uses HTTP methods such as GET and POST
B.It requires SNMP traps for every successful request
C.It is typically stateless between client requests
D.It can only return XML, never JSON
AnswersA, C

RESTful APIs map standard HTTP methods directly to CRUD operations: GET retrieves a resource, POST creates one, PUT/PATCH updates, and DELETE removes it. This reliance on HTTP verbs is a defining characteristic of REST-style APIs, distinguishing them from other remote procedure call (RPC) approaches that use a single endpoint with custom actions.

Why this answer

REST commonly uses HTTP methods such as GET, POST, PUT, PATCH, and DELETE. It is also stateless, which means each request includes the information needed for the server to process it.

Exam trap

Be careful not to confuse RESTful APIs with protocols that maintain state or require specific data formats like XML.

Why the other options are wrong

B

RESTful APIs do not require SNMP traps; they use HTTP methods for communication, and SNMP traps are unrelated to REST API operations.

D

RESTful APIs are format-agnostic and commonly support both XML and JSON, with JSON being the more prevalent format due to its lightweight nature. The statement that RESTful APIs can only return XML is incorrect.

128
PBQhard

You are connected to R1, a router that must send SNMP traps to a management server at 203.0.113.10 and export NetFlow data to a collector at 203.0.113.20. Currently, SNMPv2c traps are not being sent, and SNMPv3 is not configured for read-only access with authentication and privacy. Additionally, NetFlow export is missing the destination and version configuration. Configure the necessary commands on R1 to enable SNMPv2c traps (community string 'public'), configure SNMPv3 user 'admin' with SHA authentication and AES 128 encryption (password 'cisco123' for both auth and priv), and set NetFlow export to version 9.

Network Topology
G0/0203.0.113.1/24203.0.113.10linkR1Management Server

Hints

  • Use the 'snmp-server host' command to specify the trap destination and community.
  • For SNMPv3, you must first create a group with the appropriate security level before creating the user.
  • NetFlow export version is configured globally with 'ip flow-export version'.
A.snmp-server host 203.0.113.10 traps version 2c public snmp-server group MyGroup v3 priv snmp-server user admin MyGroup v3 auth sha cisco123 priv aes 128 cisco123 ip flow-export version 9
B.snmp-server host 203.0.113.10 traps version 2c public snmp-server group MyGroup v3 auth snmp-server user admin MyGroup v3 auth sha cisco123 priv aes 128 cisco123 ip flow-export version 9
C.snmp-server host 203.0.113.10 traps version 2c public snmp-server user admin v3 auth sha cisco123 priv aes 128 cisco123 ip flow-export version 9
D.snmp-server host 203.0.113.10 traps version 2c public snmp-server group MyGroup v3 priv snmp-server user admin MyGroup v3 auth sha cisco123 priv aes 128 cisco123 ip flow-export destination 203.0.113.20 2055
AnswerA
solution
! R1
snmp-server host 203.0.113.10 traps version 2c public
snmp-server group MyGroup v3 priv
snmp-server user admin MyGroup v3 auth sha cisco123 priv aes 128 cisco123
ip flow-export version 9

Why this answer

The configuration is missing SNMPv3 user setup, trap destination, and NetFlow export version. First, enable SNMPv2c traps with `snmp-server host 203.0.113.10 traps version 2c public`. Then, configure SNMPv3 user with `snmp-server user admin MyGroup v3 auth sha cisco123 priv aes 128 cisco123` after creating a group with `snmp-server group MyGroup v3 priv`.

For NetFlow, set the export version with `ip flow-export version 9`. Finally, verify with `show snmp` to see trap host and v3 user, and `show ip cache flow` to confirm export configuration.

Exam trap

Watch out for the SNMPv3 group keyword: 'priv' is required when using encryption (AES 128), not just 'auth'. Also, remember that the 'snmp-server user' command requires a group name. For NetFlow, the version is set with 'ip flow-export version 9', not 'ip flow-export destination'.

Why the other options are wrong

B

The group keyword 'auth' only enables authentication, not encryption. AES 128 requires the 'priv' keyword.

C

The 'snmp-server user' command requires a group name. Omitting the group will result in an error or incomplete configuration.

D

The command 'ip flow-export destination' sets the collector IP and port, not the export version. The version is set with 'ip flow-export version 9'.

129
MCQhard

Why might an automation script prefer a token-based API session over repeatedly prompting a human operator for credentials?

A.Because tokens support controlled repeated API access in a way that is practical for automation workflows.
B.Because tokens eliminate the need for any security controls.
C.Because tokens automatically create VLANs on the switch.
D.Because tokens replace all routing protocols.
AnswerA

Token-based API sessions are ideal for automation because they allow a script to authenticate once, obtain a token with a defined scope and expiration, and then make many HTTP requests without re-sending credentials. This supports controlled, repeatable access: the token can be revoked, refreshed, or scoped to specific permissions, making it practical for unattended workflows. Unlike per-request username/password, tokens reduce credential exposure and fit RESTful API design.

Why this answer

Token-based API sessions allow scripts to make repeated, programmatic requests without requiring a human to re-enter credentials each time. This makes them more practical for automation workflows than constant interactive prompts. Options B, C, and D are incorrect: tokens do not eliminate the need for security controls (they still require proper management like expiration and revocation); they have nothing to do with VLAN creation; and they do not replace routing protocols—tokens are strictly used for authentication and authorization in API interactions.

Exam trap

Avoid assuming that token-based sessions eliminate authentication or are inherently more secure.

Why the other options are wrong

B

Tokens do not eliminate security controls; they still require mechanisms like expiration, revocation, and secure storage.

C

Tokens are unrelated to VLAN creation; VLANs are configured via switch CLI or network management protocols, not API tokens.

D

Tokens do not replace routing protocols; routing protocols handle packet forwarding, while tokens handle API access authentication.

130
Multi-Selectmedium

Which TWO statements correctly describe NTP stratum levels and syslog severity levels in a Cisco IOS-XE environment?

Select 2 answers
A.An NTP stratum value of 1 indicates a higher accuracy than a stratum value of 3.
B.A syslog severity level of 5 (notice) is more severe than a level of 4 (warning).
C.The 'ntp server' command under global configuration configures the device as an NTP client.
D.Syslog severity level 0 (emergency) indicates a normal operational message.
E.NTP stratum 0 is assigned to devices that are directly connected to an authoritative time source.
AnswersA, C

NTP stratum defines the distance from a reference clock in a hierarchy. Stratum 0 is the authoritative time source (e.g., GPS or atomic clock), stratum 1 is a device directly synchronized to that source, and stratum 3 is two hops away from stratum 1. Each hop introduces potential network delay and jitter, so a lower stratum value indicates closer proximity to the reference clock and consequently higher time accuracy. Therefore, stratum 1 is indeed more accurate than stratum 3.

Why this answer

A lower NTP stratum number indicates higher accuracy; stratum 1 is directly synchronized to a precise reference clock (e.g., GPS) and is thus more accurate than stratum 3, which is two hops away. Option C is correct because the 'ntp server' command configures a device to synchronize its clock to a specified NTP server, making it an NTP client. Option B is incorrect: syslog severity level 4 (warning) is more severe than level 5 (notice) because lower severity numbers indicate higher severity.

Option D is incorrect: severity level 0 (emergency) is the most severe level, indicating a system-wide critical event, not a normal operational message. Option E is incorrect: NTP stratum 0 is assigned to an authoritative time source itself (e.g., atomic clock), not to devices directly connected to it; devices connected to stratum 0 sources are stratum 1.

Exam trap

Candidates often mistakenly equate lower syslog severity numbers with lower importance, not realizing that a smaller number means a higher severity; similarly, they may think higher NTP stratum numbers mean higher accuracy.

Why the other options are wrong

B

Syslog severity levels use inverse numbering: level 4 (warning) is more severe than level 5 (notice), so the statement is false.

D

Syslog level 0 (emergency) is the highest severity, indicating a catastrophic system failure, not a normal operational message.

E

NTP stratum 0 is the reference clock itself; devices synchronized directly to it are stratum 1, not stratum 0.

131
Multi-Selectmedium

Which three statements accurately describe the role of AI in software-defined networking (SDN) and intent-based networking (IBN)? (Choose three.)

Select 3 answers
.AI can analyze network state and suggest or enforce configuration changes to meet defined business intent
.IBN systems may use AI to verify that the current network state matches the desired intent
.AI can assist in translating high-level business policies into low-level device configurations
.SDN controllers replace AI for all decision-making, making AI unnecessary in IBN
.AI in SDN is only used for traffic engineering, not for security or compliance
.Intent-based networking eliminates the need for any monitoring or feedback loops

Why this answer

AI enhances SDN and IBN by analyzing network state to suggest or enforce configuration changes that align with business intent, verifying that the current state matches the desired intent, and translating high-level policies into low-level device configurations. These capabilities enable automation, continuous validation, and policy-driven operations. The incorrect options are wrong because: (1) SDN controllers do not replace AI; AI can augment decision-making beyond basic controller logic. (2) AI in SDN is used for security, compliance, and many other areas, not just traffic engineering. (3) Intent-based networking relies on monitoring and feedback loops to maintain alignment with intent; it does not eliminate them.

Exam trap

Cisco often tests the misconception that SDN and IBN are purely rule-based or that AI replaces existing control mechanisms, when in fact AI augments them for dynamic, intent-driven operations.

Why the other options are wrong

A

SDN controllers do not replace AI; AI can augment control and decision-making, making this statement false.

B

AI in SDN applies to security, compliance, and analytics, not only traffic engineering, so this statement is incorrect.

C

Intent-based networking requires continuous monitoring and feedback loops to ensure match with intent, so this statement is false.

132
PBQhard

You are connected to the console of R1, a Cisco IOS-XE router. The network operations team needs to automate the backup of the running configuration to a TFTP server using a Python netmiko script. However, the script is failing. Your task is to write the correct netmiko commands to connect to R1 and save the configuration to the TFTP server at 192.168.1.100.

Network Topology
G0/0192.168.1.1/24192.168.1.100/24linkR1TFTP Server

Hints

  • Netmiko uses 'send_command' to send CLI commands.
  • The command to backup is 'copy running-config tftp://<server-ip>/<filename>'.
  • Ensure the TFTP server is reachable from R1.
A.from netmiko import ConnectHandler connection = ConnectHandler(device_type='cisco_ios', ip='192.168.1.1', username='admin', password='cisco') connection.send_command('copy running-config tftp://192.168.1.100/r1-config', expect_string=r'\[confirm\]') connection.send_command('\n') connection.disconnect()
B.from netmiko import ConnectHandler connection = ConnectHandler(device_type='cisco_ios', ip='192.168.1.1', username='admin', password='cisco') connection.send_command('copy running-config tftp://192.168.1.100/r1-config') connection.disconnect()
C.from netmiko import ConnectHandler connection = ConnectHandler(device_type='cisco_ios', ip='192.168.1.1', username='admin', password='cisco') connection.send_command('copy running-config tftp://192.168.1.100/r1-config', expect_string=r'#')
D.from netmiko import ConnectHandler connection = ConnectHandler(device_type='cisco_ios', ip='192.168.1.1', username='admin', password='cisco') connection.send_command('copy running-config tftp://192.168.1.100/r1-config\n') connection.disconnect()
AnswerA
solution
! R1
copy running-config tftp://192.168.1.100/r1-config

Why this answer

The 'copy running-config tftp://...' command in Cisco IOS prompts with '[confirm]'. To handle this interactively in netmiko, the expect_string must use a regular expression that matches the literal characters '[' and ']', which requires escaping them as '\[' and '\]'. The corrected script uses r'\[confirm\]' and then sends a newline to confirm, ensuring the backup completes.

Options B and D fail to expect the prompt, and C uses an incorrect prompt match (expect_string=r'#' would only wait for the privileged EXEC prompt, missing the confirmation).

Exam trap

The key trap is that the 'copy' command in Cisco IOS is interactive even when the full destination is specified. Candidates often forget to handle the '[confirm]' prompt, assuming the command completes silently. Always test scripts interactively first to identify prompts.

Why the other options are wrong

B

The specific factual error is that the 'copy' command in Cisco IOS requires a confirmation (pressing Enter) when the destination filename is provided. The script must send an additional newline to complete the operation.

C

The specific factual error is that the 'copy' command generates an intermediate prompt ('[confirm]') before returning to the router prompt. The script should wait for that intermediate prompt, not the final prompt.

D

The specific factual error is that including a newline in the command string does not simulate an interactive response to a subsequent prompt. The script must send the newline separately after the command is issued.

133
Multi-Selecteasy

Which two statements correctly describe JSON?

Select 2 answers
A.It commonly represents data as key-value pairs
B.It is often used in REST API payloads
C.It requires angle-bracket tags around every field
D.It is a routing protocol used by controllers
E.It can only carry integer values
AnswersA, B

At its heart, a JSON object is an unordered collection of key/value pairs, where each key is a unique string and each value can be any valid JSON type. This pattern makes it easy to represent structured data such as device interfaces, routing tables, or interface statistics. Most programming languages natively parse this structure into a dictionary or map.

Why this answer

JSON is a lightweight data-interchange format commonly used in APIs. It represents data using key-value pairs and arrays. It is not the same as XML, which uses angle-bracket tags.

JSON is not a routing protocol. JSON can carry various data types including strings, numbers, booleans, arrays, objects, and null, not only integers.

Exam trap

A common exam trap is mistaking JSON for XML or a routing protocol. Some candidates incorrectly believe JSON requires angle-bracket tags around fields, which is actually an XML characteristic. Others confuse JSON with routing protocols used by controllers, which it is not.

JSON is solely a data format for representing structured data, primarily using key-value pairs and arrays. Misunderstanding this can lead to selecting incorrect answers that describe XML or routing protocols instead of JSON’s actual function in network automation and programmability.

Why the other options are wrong

C

Option C is incorrect because JSON does not use angle-bracket tags; that syntax belongs to XML. Confusing JSON with XML is a common mistake but not accurate for this question.

D

Option D is incorrect as JSON is not a routing protocol. It is a data format used for representing information, not for routing or control plane functions in networks.

E

Option E is incorrect because JSON can carry various data types beyond integers, including strings, booleans, arrays, objects, and null values. Limiting JSON to integers is a misunderstanding.

134
MCQhard

Why is idempotency valuable in network automation?

A.It guarantees every API call will use TCP instead of UDP.
B.It ensures repeated runs converge on the same desired state safely.
C.It encrypts device credentials stored in scripts.
D.It forces the controller to use only one management protocol.
AnswerB

Idempotency ensures that executing the same automation task multiple times produces exactly the same outcome as a single execution, converging on the desired state without adding duplicate entries or reverting changes. In network automation, retries happen due to timeouts or partial failures, and idempotent operations safely reconcile the network to its intended configuration while reducing drift. This property is fundamental to robust automation because it makes the system self-healing and predictable.

Why this answer

Idempotent operations can be applied repeatedly without causing unintended changes once the desired state is already present.

Exam trap

Avoid confusing idempotency with concepts like redundancy or performance enhancements. Focus on its role in maintaining consistent configurations.

Why the other options are wrong

A

This option is incorrect because idempotency does not relate to the transport layer protocols like TCP or UDP; it focuses on the behavior of operations in terms of repeated execution leading to the same outcome.

C

Option C is incorrect because idempotency does not relate to the encryption of device credentials; it refers to the property of operations that can be applied multiple times without changing the result beyond the initial application.

D

Option D is incorrect because idempotency does not dictate the use of a single management protocol; rather, it refers to the property of operations yielding the same result regardless of how many times they are executed.

135
MCQmedium

A controller API returns this data: { "device": { "hostname": "Dist-1", "interfaces": [ {"name": "Gig0/0", "status": "up"}, {"name": "Gig0/1", "status": "down"} ] } } Which statement is correct?

A.The response is XML because it contains nested elements
B.The interfaces field is an array of objects
C.The hostname field is a list
D.The format shown is YAML
AnswerB

Correct. This is correct. The interfaces field is enclosed in square brackets, which in JSON means an array. Each item inside the array is an object containing keys such as name and status.

Why this answer

The interfaces field is an array of objects. The giveaway is the square brackets around the interface entries. In JSON, square brackets represent an array, and braces represent an object.

Each interface entry inside that array has key-value pairs such as name and status, which makes each entry its own object. In plain language, the controller is returning a list of interface records for one device. The hostname field, by contrast, is a single value.

This style of question appears in automation topics because the exam wants you to recognize common data structures used in controller APIs without requiring deep programming expertise. Understanding the difference between an object and an array is usually enough.

Exam trap

Be careful not to confuse JSON arrays with objects or strings. Pay attention to the brackets and braces used.

Why the other options are wrong

A

This option is wrong because the response is in JSON format, not XML. JSON uses curly braces and key-value pairs, while XML uses tags to define elements.

C

The hostname field is a string, not a list, as it contains a single value ('Dist-1') and does not represent multiple items or entries.

D

This option is wrong because the format shown in the response is JSON, not YAML. YAML uses indentation and a different syntax for data representation, which is not present here.

136
Multi-Selecteasy

A developer is interacting with a REST API exposed by a network controller. Which two statements correctly describe common REST behavior?

Select 2 answers
A.GET is commonly used to retrieve resource data
B.POST always replaces an existing resource completely
C.JSON is a common data format used in REST APIs
D.REST requires SNMP as the transport mechanism
AnswersA, C

GET is an HTTP method defined as a safe, idempotent read operation in REST. It retrieves a representation of a resource identified by a URI, and should not alter server state. In network controller APIs, GET is used to fetch configuration, status, or telemetry data without side effects.

Why this answer

REST APIs commonly use HTTP methods such as GET, POST, PUT, and DELETE, and JSON is one of the most common payload formats.

Exam trap

A common exam trap is assuming that POST always replaces an existing resource completely, which is incorrect. In REST API design, POST is typically used to create new resources or trigger server-side processing, whereas PUT is the method that fully replaces an existing resource. Confusing these two can lead to incorrect assumptions about how network controllers handle configuration changes or data updates.

This misunderstanding may cause candidates to select POST as the answer for resource replacement questions, which is a frequent mistake in Cisco automation and programmability topics.

Why the other options are wrong

B

Option B is incorrect because POST does not always replace an existing resource completely; it usually creates new resources or triggers processing. PUT is the method associated with full resource replacement.

D

Option D is incorrect because REST APIs do not require SNMP as the transport mechanism; they typically use HTTP or HTTPS protocols for communication.

137
Drag & Dropmedium

Drag and drop the following steps into the correct order to troubleshoot an end-to-end connectivity issue using a bottom-up approach.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct troubleshooting order follows the OSI model bottom-up: start with physical connectivity (A), then verify Layer 3 addressing (B), use diagnostic tools (C) to isolate the failure, and finally implement the solution and verify restoration (D). Skipping layers can lead to misdiagnosis.

Exam trap

A common mistake is to begin with tools like ping before confirming physical and IP configuration; always validate lower layers first.

138
Multi-Selectmedium

Which TWO statements accurately describe how AI/ML concepts are applied to network operations in modern enterprise networks?

Select 2 answers
A.Supervised machine learning models can be used to classify network traffic into predefined categories, such as identifying whether traffic is voice, video, or data.
B.Anomaly detection algorithms, often based on unsupervised learning, can identify unusual network behavior that may indicate a security threat or device malfunction.
C.Reinforcement learning is primarily used to automatically classify email traffic as spam or not spam based on a labeled dataset.
D.Clustering algorithms, a type of unsupervised learning, are used to predict the exact bandwidth usage of a specific application over the next hour.
E.Predictive analytics in network operations relies solely on static thresholds defined by network administrators to forecast potential failures.
AnswersA, B

Supervised machine learning models such as decision trees, support vector machines, or neural networks are trained on labeled traffic datasets, where each flow is tagged as voice, video, or data. Once trained, the model extracts features like packet length, protocol, port numbers, and inter-arrival times to accurately classify unseen traffic. This classification directly supports network policies, enabling differentiated QoS marking, access control, or security inspection, and improves with more representative training data.

Why this answer

Supervised learning uses labeled data to classify traffic (e.g., voice, video, data). Option B is correct because anomaly detection often uses unsupervised learning to identify deviations from normal behavior. Option C is wrong because reinforcement learning is not used for spam classification; that task uses supervised learning.

Option D is wrong because clustering groups data but cannot predict exact bandwidth usage; prediction requires regression models. Option E is wrong because predictive analytics in network operations leverages machine learning models, not solely static thresholds defined by administrators.

Exam trap

Cisco often tests the distinction between supervised and unsupervised learning by pairing a correct application (e.g., anomaly detection) with a plausible but incorrect application (e.g., clustering for exact prediction), so candidates must remember that clustering groups data without predicting specific values.

Why the other options are wrong

C

This is incorrect because spam classification is a supervised learning problem, not a reinforcement learning one.

D

This is incorrect because clustering groups data, it doesn't forecast numeric values like bandwidth usage.

E

This is incorrect because predictive analytics typically involves dynamic ML models, not just static thresholds.

139
MCQmedium

Which HTTP method is typically used to retrieve data from a REST API without modifying the resource?

A.POST
B.PUT
C.GET
D.DELETE
AnswerC

GET is a safe and idempotent HTTP method that requests a representation of a specific resource without modifying server state. In REST design, it is the standard method for read-only operations such as fetching a resource or collection. Because it has no side effects, GET responses can be cached and repeated safely.

Why this answer

GET requests are used to retrieve resource information. They are intended for read operations rather than creation, replacement, or deletion.

Exam trap

A common exam trap is confusing the GET method with POST or PUT because all involve interacting with REST API resources. Candidates might incorrectly select POST or PUT, thinking they retrieve data, but POST is primarily for creating resources and PUT for updating them. GET is unique because it only retrieves data without changing the resource.

Misunderstanding this can lead to selecting an incorrect method that modifies the network device state, which is not the intent of the question. Remember, GET is the only method designed to safely fetch data without side effects.

Why the other options are wrong

A

POST is incorrect because it is used to create new resources or submit data that modifies the server state, not for retrieving existing data. Selecting POST would imply changing the resource, which contradicts the question's requirement for a non-modifying method.

B

PUT is incorrect as it replaces or updates an existing resource entirely. It modifies the resource state, which is not the intended action when simply retrieving data from a REST API.

D

DELETE is incorrect because it removes a resource from the server. Using DELETE would modify the resource by deleting it, which is the opposite of the question's intent to retrieve data without modification.

140
Multi-Selectmedium

Which four of the following correctly describe how AI/ML techniques can improve network operations in a modern enterprise? (Choose all that apply.)

Select 4 answers
.AI models can analyze historical traffic data to predict future bandwidth congestion
.Natural language processing (NLP) can be used to automate responses to helpdesk tickets based on intent
.Reinforcement learning can adjust firewall rules dynamically in response to evolving attack patterns
.Unsupervised learning can identify unknown device types on the network by clustering behavior patterns
.AI eliminates the need for baseline performance metrics because it learns in real-time
.ML models always require labeled training data to be effective in network operations

Why this answer

Options A, B, C, and D are correct. AI models can predict bandwidth congestion by analyzing historical traffic data, enabling proactive capacity planning. Natural language processing (NLP) automates helpdesk ticket responses by interpreting user intent, reducing manual effort.

Reinforcement learning can dynamically adjust firewall rules in response to evolving attack patterns, improving threat response without human intervention. Unsupervised learning can cluster behavior patterns to identify unknown device types on the network. Option E ("AI eliminates the need for baseline performance metrics because it learns in real-time") is incorrect because even AI/ML models require baseline metrics to establish normal behavior and detect anomalies; real-time learning does not remove the need for baselines.

Option F ("ML models always require labeled training data to be effective in network operations") is incorrect because many ML techniques, such as unsupervised learning (as shown in option D), operate effectively on unlabeled data by discovering patterns and clusters without predefined labels.

Exam trap

Cisco often tests the breadth of AI/ML applications in network operations, and the trap here is that candidates might dismiss reinforcement learning as too advanced or theoretical, but it is a valid technique for dynamic policy adjustment in modern intent-based networking (IBN) systems.

141
MCQhard

In a controller-based design, which statement best describes a northbound API?

A.An application-facing API used by external software to communicate with the controller
B.A cable type used between controller clusters
C.The link-state protocol the controller uses to reach switches
D.A mechanism that removes the need for authentication
AnswerA

In a controller-based architecture, the northbound API (often RESTful) faces applications and orchestration systems, allowing them to request network services or retrieve telemetry without manual device-level configuration. It abstracts the underlying network complexity, so external software can communicate intent to the controller, which then translates that intent into device-specific actions. This direction is 'north' because it sits above the controller in the logical hierarchy.

Why this answer

A northbound API is the interface exposed by the controller to external applications, orchestration systems, dashboards, or automation tools. In plain language, it is the way software above the controller communicates with the controller so that it can request data, apply policy, or trigger changes. This is different from the southbound side, where the controller interacts with the underlying infrastructure devices.

This concept appears often in automation topics because it helps define where the controller sits in the larger architecture. A northbound API is not a physical cable, and it does not replace security controls. It is an application-facing software interface, which is exactly what the correct answer should capture.

Exam trap

A frequent exam trap is mistaking the northbound API for a physical cable or a routing protocol. Some candidates incorrectly associate 'northbound' with physical connections between controllers or with link-state protocols, which is incorrect. Northbound APIs are purely logical interfaces used by applications to communicate with the controller, not hardware or routing mechanisms.

Another trap is assuming northbound APIs bypass security controls; in reality, these APIs require proper authentication and authorization. Misunderstanding these points can lead to selecting incorrect answers that describe physical or protocol-related concepts rather than software interfaces.

Why the other options are wrong

B

This option incorrectly describes a northbound API as a cable type, which is a physical concept unrelated to the logical API direction in controller architectures.

C

This option confuses northbound APIs with routing protocols like link-state protocols, which are unrelated to the software interface role of northbound APIs.

D

This option falsely claims that northbound APIs remove the need for authentication, ignoring that security controls remain essential for API access.

142
PBQhard

You are connected to R1, a Cisco IOS-XE router. Configure SNMP v2c with read-only community 'NetOpsRO' and SNMP v3 with user 'AdminUser' using SHA authentication (password: AuthPass1) and AES-128 encryption (password: PrivPass2). Also enable SNMP traps to the NMS at 192.0.2.10 with community 'TrapComm'. Additionally, configure NetFlow export to 192.0.2.20 using version 9, and ensure the flow exporter is applied to GigabitEthernet0/0. Verify your configuration using 'show snmp' and 'show ip cache flow'.

Network Topology
G0/010.0.0.1/30G0/010.0.0.2/30linkR1R2

Hints

  • SNMPv3 requires both a group and a user; the group defines the security level (auth/priv).
  • NetFlow export requires a flow exporter and a flow monitor applied to the interface.
  • Use 'snmp-server enable traps' without specific traps to enable all supported traps.
A.snmp-server community NetOpsRO ro snmp-server group AdminGroup v3 priv snmp-server user AdminUser AdminGroup v3 auth sha AuthPass1 priv aes 128 PrivPass2 snmp-server enable traps snmp-server host 192.0.2.10 TrapComm flow exporter EXPORTER destination 192.0.2.20 version 9 ! flow monitor FLOW-MONITOR exporter EXPORTER record netflow ipv4 original-input ! interface GigabitEthernet0/0 ip flow monitor FLOW-MONITOR input
B.snmp-server community NetOpsRO ro snmp-server user AdminUser v3 auth sha AuthPass1 priv aes 128 PrivPass2 snmp-server enable traps snmp-server host 192.0.2.10 TrapComm flow exporter EXPORTER destination 192.0.2.20 version 9 ! interface GigabitEthernet0/0 ip flow export EXPORTER
C.snmp-server community NetOpsRO ro snmp-server group AdminGroup v3 priv snmp-server user AdminUser AdminGroup v3 auth sha AuthPass1 priv aes 128 PrivPass2 snmp-server enable traps snmp-server host 192.0.2.10 version 2c TrapComm flow exporter EXPORTER destination 192.0.2.20 version 9 ! interface GigabitEthernet0/0 ip flow monitor FLOW-MONITOR input
D.snmp-server community NetOpsRO ro snmp-server group AdminGroup v3 priv snmp-server user AdminUser AdminGroup v3 auth sha AuthPass1 priv aes 128 PrivPass2 snmp-server enable traps snmp-server host 192.0.2.10 TrapComm flow exporter EXPORTER destination 192.0.2.20 version 9 ! interface GigabitEthernet0/0 ip flow monitor FLOW-MONITOR input flow monitor FLOW-MONITOR exporter EXPORTER
AnswerA
solution
! R1
snmp-server group AdminGroup v3 priv
snmp-server user AdminUser AdminGroup v3 auth sha AuthPass1 priv aes 128 PrivPass2
snmp-server enable traps
flow exporter EXPORTER
 destination 192.0.2.20
 transport udp 9996
 template data timeout 60
 exit
flow monitor FLOW-MONITOR
 exporter EXPORTER
 record netflow ipv4 original-input
 exit
interface GigabitEthernet0/0
 ip flow monitor FLOW-MONITOR input
 exit

Why this answer

The only complete configuration. It defines the SNMPv3 group and user, enables traps, sets up the flow exporter, and crucially defines a flow monitor globally before applying it to the interface. Without the global `flow monitor` definition, the `ip flow monitor ... input` command on the interface would be rejected.

Option B omits the SNMP group and uses the deprecated `ip flow export` instead of the modern flow monitor method. Option C is missing the flow monitor definition, and its `snmp-server host` version syntax is unnecessary but not harmful; the real flaw is the absent monitor. Option D attempts to add the flow monitor but incorrectly places the global definition commands inside the interface configuration, which would cause a syntax error.

Exam trap

The most common oversight is forgetting to define the flow monitor globally; without it, the `ip flow monitor` command on the interface will fail. Also, learners sometimes mistakenly use the deprecated `ip flow export` command instead of the modern flow monitor approach.

Why the other options are wrong

B

Missing the required SNMPv3 group and relies on the deprecated interface command 'ip flow export' instead of the modern flow monitor method.

C

Lacks the required global flow monitor definition block; the 'ip flow monitor' command on the interface refers to a nonexistent monitor.

D

Places the flow monitor definition commands inside the interface configuration context, where they would be rejected as invalid.

143
MCQhard

Why is HTTPS preferred over HTTP when accessing sensitive controller APIs?

A.Because HTTPS encrypts the API traffic in transit.
B.Because HTTPS removes the need for tokens and credentials.
C.Because HTTPS is the only way JSON can be transmitted.
D.Because HTTP cannot carry API requests at all.
AnswerA

HTTPS wraps the API payload in TLS/SSL encryption, so any sensitive data transmitted over the network—such as passwords, tokens, or personal information—remains unreadable to anyone who intercepts the packets. This prevents eavesdropping and man-in-the-middle attacks, which is why secure communication is mandatory for sensitive operations. In contrast, HTTP sends all data as plaintext, leaving it exposed on shared networks.

Why this answer

HTTPS is preferred because it encrypts the traffic in transit. In practical terms, sensitive controller APIs may carry tokens, credentials, operational details, and configuration data. Sending that information over plain HTTP would expose it to interception on the network. HTTPS reduces that risk by protecting the session.

This does not make HTTPS a replacement for authentication. It is a transport-security choice that works alongside access control, not instead of it.

Exam trap

A frequent exam trap is believing that HTTPS removes the need for tokens or credentials in API access. Some candidates incorrectly assume that because HTTPS encrypts traffic, authentication is unnecessary. However, HTTPS only secures the transport layer and does not provide access control.

Another trap is thinking HTTP cannot carry API requests, which is false since HTTP can transmit API data but without encryption. Also, confusing the data format with the transport protocol leads to the incorrect belief that JSON requires HTTPS, when in fact JSON can be sent over any protocol. Understanding these distinctions is crucial to avoid selecting incorrect answers.

Why the other options are wrong

B

Option B is incorrect because HTTPS does not remove the need for tokens or credentials; it only secures the transport layer. Authentication is still required to control access to APIs.

C

Option C is incorrect since JSON can be transmitted over any protocol, including HTTP and HTTPS. The choice of HTTPS is about securing the transport, not the data format.

D

Option D is incorrect because HTTP can carry API requests; however, it does so without encryption, making it unsuitable for sensitive data transmission.

144
MCQhard

An API response returns a list of interface objects in JSON. Which structure most likely represents that list?

A.An array containing multiple interface objects
B.A single integer with the value 1
C.A native VLAN field
D.An STP root bridge ID
AnswerA

An array containing multiple interface objects is the correct representation because JSON arrays are explicitly designed to hold an ordered collection of repeated items, with each element separated by a comma and enclosed in square brackets. In a REST API response, a list of interfaces is naturally modeled as an array where each element is a JSON object containing key-value pairs such as interface name, status, and IP address. This directly matches the request for a list of interface objects, making it the appropriate structure for the response.

Why this answer

In JSON, a list is most naturally represented as an array. In plain language, when an API needs to return several interfaces, routes, VLANs, or similar repeated items, it usually places them inside square brackets as an ordered collection. Each item inside that array might itself be an object containing keys such as name, status, or IP address.

CCNA automation questions usually test whether you recognize that square brackets signal a list. If the response contains many similar interface records, the best structure is the one that looks like a JSON array of interface objects rather than a single scalar value.

Exam trap

Remember that arrays in JSON are denoted by square brackets, and each item should be a complete object if details are needed.

Why the other options are wrong

B

Option B is incorrect because an API response that returns a list of interface objects should be structured as an array, not as a single integer. A single integer does not represent a collection of objects.

C

A native VLAN field is not a valid representation of a list of interface objects in JSON; it typically refers to a specific VLAN configuration in networking, not an array structure.

D

Option D is incorrect because an STP root bridge ID is a specific identifier related to Spanning Tree Protocol, not a representation of a list of interface objects in JSON format.

145
MCQmedium

A network engineer needs to automate the configuration of multiple Cisco IOS XE routers in a data center. The team requires a standard, vendor-neutral data modeling language to define the configuration parameters, and they need a protocol that uses XML-based remote procedure calls over SSH for secure, reliable configuration transactions. Which combination of technologies best meets these requirements?

A.Use YANG data models combined with RESTCONF over HTTPS.
B.Use YANG data models combined with NETCONF over SSH.
C.Use CLI commands combined with NETCONF over SSH.
D.Use CLI commands combined with RESTCONF over HTTPS.
AnswerB

YANG plus NETCONF over SSH is the standard model-driven management combination: YANG provides a vendor-neutral, hierarchical data model for configuration and state data, while NETCONF carries those models in XML-encoded RPCs over an encrypted SSH session. The NETCONF session supports transactions across multiple configuration datastores (candidate, running, startup), giving reliable commit/rollback behavior. This pairing exactly matches the requirements for a standardized data model and secure, remote procedure-style configuration exchange.

Why this answer

YANG is a standard, vendor-neutral data modeling language (RFC 6020) for defining configuration parameters, and NETCONF (RFC 6241) uses XML-based remote procedure calls (RPCs) over SSH for secure, reliable configuration transactions. This combination directly satisfies the requirement for a standard data model and XML-based RPCs over SSH, unlike RESTCONF which uses HTTPS and JSON/XML but not SSH.

Exam trap

Cisco often tests the distinction between NETCONF (XML RPCs over SSH) and RESTCONF (RESTful operations over HTTPS), and candidates mistakenly choose RESTCONF because it is more modern, but the question explicitly requires XML-based RPCs over SSH, which only NETCONF provides.

Why the other options are wrong

A

The scenario specifies a protocol that uses XML-based RPCs over SSH, which is a characteristic of NETCONF, not RESTCONF.

C

The scenario specifically asks for a standard, vendor-neutral data modeling language, which CLI is not.

D

Neither the data modeling language (CLI) nor the protocol (RESTCONF) matches the specified requirements of vendor-neutral data modeling and XML-based RPCs over SSH.

146
Multi-Selectmedium

A script authenticates to a controller API and receives a token that it presents in later requests. Which two statements about that token-based workflow are correct?

Select 2 answers
A.The token is often sent in an HTTP header in subsequent requests
B.The token proves identity for that authenticated session or request set
C.The token changes the API from REST to SNMP
D.The token must be stored in the router startup-config
AnswersA, B

The token is typically included in the Authorization header of subsequent HTTP requests, often using the Bearer authentication scheme. This allows the controller API to validate the token and associate the request with the previously authenticated session without re-prompting for credentials. Stateless API servers rely on this per-request header transmission to maintain authentication context across multiple REST calls.

Why this answer

After authentication, many APIs issue a token that the client includes in later HTTP requests. That token acts as proof that the client already authenticated successfully.

Exam trap

A common exam trap is assuming that the presence of a token changes the network management protocol from REST to SNMP or another protocol. This is incorrect because token-based authentication is a security mechanism layered on top of the existing API protocol and does not alter it. Another trap is believing that tokens must be stored in the router’s startup-config, which is false since tokens are ephemeral credentials managed by client applications, not static device configurations.

Misunderstanding these points can lead to selecting incorrect answers about token workflows in automation scenarios.

Why the other options are wrong

C

Option C is incorrect because the token does not change the API protocol from REST to SNMP; authentication methods do not alter the underlying management protocol.

D

Option D is incorrect because tokens are managed dynamically by client applications and are not stored in router startup-config files, which hold static device configurations.

147
PBQhard

You are connected to R1. Configure SNMP v2c with a read-only community string 'monitorRO' and a read-write community string 'controlRW', and enable SNMP traps for link status to the management server at 203.0.113.100. Additionally, configure NetFlow to export version 9 flow records to the same server on UDP port 2055, and ensure that only traffic from the 10.10.10.0/24 network is monitored. Finally, verify your configurations with the appropriate show commands.

Network Topology
G0/010.0.0.1/30G0/010.0.0.2/30linkG0/110.10.10.1/2410.10.10.0/24linkR1R2Internal Network

Hints

  • Remember to specify the SNMP version when configuring the trap receiver host.
  • NetFlow version 9 must be explicitly configured; otherwise, version 5 is used by default.
  • Apply the flow monitor to the interface that connects to the network you want to monitor (G0/1).
A.Configure SNMP community strings, enable link-status traps, set trap destination, configure NetFlow export version 9, and apply flow monitor to interface(s) carrying 10.10.10.0/24 traffic.
B.Configure SNMP community strings, enable link-status traps, set trap destination, and configure NetFlow export version 5. Apply flow monitor to all interfaces.
C.Configure SNMP community strings, enable all SNMP traps, set trap destination, and configure NetFlow export version 9. Apply flow monitor to interface with IP 10.10.10.0/24.
D.Configure SNMP community strings, enable link-status traps, set trap destination, and configure NetFlow export version 9. Do not apply any flow monitor; NetFlow automatically monitors all traffic.
AnswerA
solution
! R1
snmp-server community monitorRO RO
snmp-server community controlRW RW
snmp-server enable traps snmp linkdown linkup
snmp-server host 203.0.113.100 version 2c monitorRO
ip flow-export version 9
flow record NETFLOW-RECORD
 match ipv4 source address
 match ipv4 destination address
 match ipv4 protocol
 match transport source-port
 match transport destination-port
 collect counter bytes
 collect counter packets
 collect timestamp sys-uptime
 exit
flow exporter EXPORTER-TO-SERVER
 destination 203.0.113.100
 transport udp 2055
 source Loopback0
 exit
flow monitor MONITOR-10NET
 record NETFLOW-RECORD
 exporter EXPORTER-TO-SERVER
 cache timeout active 300
 exit
interface GigabitEthernet0/1
 ip flow monitor MONITOR-10NET input
 ip flow monitor MONITOR-10NET output
 exit

Why this answer

The solution correctly configures SNMP v2c with the required read-only and read-write community strings, enables only link-status traps, and sets the trap destination. For NetFlow, it uses Flexible NetFlow by defining a flow record, an exporter, and a monitor. Importantly, the export version (9) must be configured under the flow exporter, not with the legacy global `ip flow-export version 9` command.

The flow monitor is applied to GigabitEthernet0/1, which carries traffic from the 10.10.10.0/24 network. Verification can be done with `show snmp` to confirm communities and trap receivers, and `show flow monitor name MONITOR-10NET cache` or `show ip cache flow` to view exported flow records.

Exam trap

Common mistakes include mixing legacy and Flexible NetFlow commands (e.g., using the global `ip flow-export version` instead of setting it under the flow exporter), forgetting to apply the flow monitor to an interface, and enabling all SNMP traps rather than only link-status traps.

Why the other options are wrong

B

The question explicitly requires NetFlow version 9, and traffic monitoring must be limited to the 10.10.10.0/24 network.

C

Enabling all traps is unnecessary and may cause unwanted overhead; the flow monitor must be applied to the correct interface(s) based on traffic flow, not the network address.

D

NetFlow requires a flow monitor to be applied to an interface to capture traffic; it does not automatically monitor all traffic.

148
MCQhard

Why is a northbound API valuable to orchestration tools in a controller-based network?

A.It gives orchestration tools a defined software interface to interact with the controller.
B.It replaces the need for all physical network devices.
C.It is a cabling standard for data center uplinks.
D.It makes security controls unnecessary.
AnswerA

This is correct because northbound APIs are the application-facing path into the controller.

Why this answer

A northbound API is valuable because it gives orchestration tools a defined way to request data and trigger changes on the controller programmatically. In plain language, the tool can interact with the controller through software rather than relying on manual device-by-device operations. That makes higher-level automation and service coordination possible.

The controller is the platform, and the northbound API is the application-facing interface into it. The correct answer is the one focused on orchestration and software-driven interaction.

Exam trap

A frequent exam trap is mistaking the northbound API for a physical network element or a cabling standard, such as assuming it replaces physical devices or relates to data center uplinks. Another common error is believing that northbound APIs eliminate the need for security controls, ignoring that software interfaces still require authentication and authorization mechanisms. These misconceptions stem from confusing the software abstraction layer with hardware or security concepts.

Understanding that northbound APIs are purely software interfaces designed for orchestration tools to interact programmatically with the controller helps avoid these pitfalls.

Why the other options are wrong

B

Option B is incorrect because northbound APIs do not replace physical network devices; forwarding hardware remains essential for actual data transmission and network operation.

C

Option C is incorrect since northbound APIs are software interfaces, not physical cabling standards, and have no relation to data center uplink cabling specifications.

D

Option D is incorrect because northbound APIs still require security measures such as authentication and authorization; they do not eliminate the need for security controls.

149
MCQeasy

Which data format is most commonly used in REST APIs because it is lightweight and easy for applications to parse?

A.YANG
B.JSON
C.STP
D.TFTP
AnswerB

JSON is the standard data-interchange format for REST APIs because it is lightweight, human-readable, and natively supported by JavaScript, making it trivial to parse in browsers and servers. It represents structured data as key-value pairs and arrays, mirroring the object literal syntax of many programming languages, and is transmitted with the Content-Type: application/json header. Its low overhead and easy mapping to language objects make it the default choice for most modern web APIs.

Why this answer

JSON is widely used with REST because it is compact, human-readable, and easy for software to parse. It is common in controller APIs and automation workflows.

Exam trap

A common exam trap is selecting YANG as the data format for REST APIs because candidates recognize YANG as related to network automation. However, YANG is a data modeling language that defines the structure of data but does not represent the actual data format used in REST API communication. Confusing YANG with JSON leads to incorrect answers.

Similarly, confusing protocols like STP or TFTP with data formats can mislead candidates. The key is to remember that JSON is the actual data format used in REST APIs due to its lightweight and easy-to-parse nature.

Why the other options are wrong

A

YANG is a data modeling language used to define the structure of network data but is not the actual data format used in REST API communication, making it an incorrect choice.

C

STP (Spanning Tree Protocol) is a Layer 2 protocol for preventing loops in Ethernet networks and has no relation to data formatting in REST APIs, so it is incorrect.

D

TFTP is a simple protocol used for file transfers, such as IOS images, and is not a data format used in REST APIs, making it an invalid choice.

150
PBQmedium

You are connected to R1, a Cisco IOS-XE router that provides connectivity for the 192.168.10.0/24 network. The network operations team uses a Python script with netmiko to push configuration changes. However, the script fails to connect to R1. You need to verify the SSH configuration on R1.

Hints

  • Check if SSH is enabled globally and on the VTY lines.
  • Verify that the transport input includes ssh.
  • Ensure there is a hostname and domain configured.
A.The VTY lines are configured for telnet only; SSH requires 'transport input ssh'.
B.The SSH server is not enabled because the crypto key is missing or 'ip ssh' is not configured.
C.The SSH version is set to version 1, which is not supported by the Python script.
D.The domain name is not configured, which is required for SSH key generation.
AnswerA
solution
! R1
show running-config | include ssh
show ip ssh
show line vty
show ip interface brief

Why this answer

The VTY lines are configured for telnet only. SSH requires 'transport input ssh' (or 'transport input all'). Additionally, the SSH server may not be enabled if the crypto key is missing or the ip ssh command is not present.

The commands show that transport input is telnet, so the script cannot connect via SSH. Changing to 'transport input ssh' resolves the issue.

Exam trap

The exam trap is that candidates often focus on SSH server configuration (crypto keys, domain name, ip ssh) and forget that the VTY lines must also permit SSH. Always check 'transport input' on VTY lines when troubleshooting SSH access.

Why the other options are wrong

B

The specific factual error: The crypto key and 'ip ssh' are necessary for SSH operation, but the VTY transport setting is the immediate cause of connection failure.

C

The specific factual error: There is no indication that SSH version 1 is in use; the issue is the VTY transport setting.

D

The specific factual error: A domain name is required for SSH key generation, but the VTY transport setting is the direct cause of the connection failure.

← PreviousPage 2 of 3 · 154 questions totalNext →

Ready to test yourself?

Try a timed practice session using only AI and Network Operations questions.