CCNA AI and Network Operations Practice Question
Which data format is commonly used with REST APIs to represent objects, arrays, and key-value pairs?
⚠ Common exam trap
Avoid assuming older technologies like XML are still the most common choice for modern REST APIs.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
JSON
JSON is a common data-interchange format used in APIs and automation systems.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
JSON
Why this is correct
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.
- ✗
STP
Why it's wrong here
STP (Spanning Tree Protocol) is a Layer 2 networking protocol that runs on switches to prevent loops in Ethernet topologies by exchanging Bridge Protocol Data Units (BPDUs) and blocking redundant paths. It operates at the data-link layer to ensure a loop-free logical topology, and it has absolutely no role in serializing or representing data for REST APIs, which rely on application-layer formats like JSON or XML.
When this WOULD be correct
If the exam question asked about protocols used for data transmission in network environments, particularly in relation to Ethernet networks, STP could be the correct answer. For example, a question could ask about protocols that manage network topology to prevent loops.
- ✗
EIGRP
Why it's wrong here
EIGRP (Enhanced Interior Gateway Routing Protocol) is a Cisco-proprietary distance-vector routing protocol that dynamically exchanges network-layer route information, using composite metrics based on bandwidth, delay, load, and reliability. It is a routing protocol that operates at the network layer to determine the best path to destinations, not a data format for encoding API payloads; REST APIs use structured text representations, not routing metrics.
When this WOULD be correct
If the question were about identifying protocols used in network communication, particularly those that manage routing information, EIGRP would be the correct answer when asking about dynamic routing protocols in a network setup.
- ✗
802.1Q
Why it's wrong here
802.1Q is the IEEE standard for VLAN tagging, which inserts a 4-byte tag into Ethernet frames to identify the VLAN to which the frame belongs on trunk links. This Layer 2 tagging mechanism is used to segment broadcast domains in switched networks, and it is entirely unrelated to data serialization; REST APIs represent data using formats like JSON or XML, not by modifying Ethernet frame headers.
When this WOULD be correct
If the question asked about network protocols or standards related to VLANs and their role in data transmission, then 802.1Q would be the correct answer as it defines how to tag Ethernet frames for VLAN identification.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The 200-301 exam frequently reuses these exact scenarios with slightly different constraints.
✓JSONCorrect answer▾
Why this is correct
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.
✗STPWrong answer — click to see why▾
Why this is wrong here
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.
★ When this WOULD be the correct answer
If the exam question asked about protocols used for data transmission in network environments, particularly in relation to Ethernet networks, STP could be the correct answer. For example, a question could ask about protocols that manage network topology to prevent loops.
Why candidates choose this
Candidates may confuse STP with data formats due to its acronym and association with network technologies, leading them to mistakenly think it relates to data representation in APIs.
✗EIGRPWrong answer — click to see why▾
Why this is wrong here
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.
★ When this WOULD be the correct answer
If the question were about identifying protocols used in network communication, particularly those that manage routing information, EIGRP would be the correct answer when asking about dynamic routing protocols in a network setup.
Why candidates choose this
Candidates may confuse EIGRP with data handling concepts due to its technical nature and familiarity in networking, leading them to mistakenly associate it with data formats used in API communication.
✗802.1QWrong answer — click to see why▾
Why this is wrong here
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.
★ When this WOULD be the correct answer
If the question asked about network protocols or standards related to VLANs and their role in data transmission, then 802.1Q would be the correct answer as it defines how to tag Ethernet frames for VLAN identification.
Why candidates choose this
Candidates may confuse 802.1Q with data transmission concepts in networking, leading them to mistakenly associate it with data formats used in APIs, due to its relevance in network communication.
Analysis generated from the official 200-301blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Visual reference
Quick reference
Routing Protocol Comparison
| Protocol | Metric | Max Hops | Algorithm | Type |
|---|---|---|---|---|
| RIP v2 | Hop count | 15 | Bellman-Ford | Distance vector |
| OSPF | Cost (bandwidth) | Unlimited | Dijkstra (SPF) | Link state |
| EIGRP | Composite metric | Unlimited | DUAL | Hybrid |
| IS-IS | Cost | Unlimited | Dijkstra | Link state |
| BGP | Policy / attributes | Unlimited | Path vector | Path vector |
RIP's 15-hop limit makes it unsuitable for large networks. OSPF and EIGRP dominate modern enterprise deployments.
Go deeper
Related to this question
About these practice questions
One of 1,389 original 200-301 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-301 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-301 exam.