- A
YANG
Why wrong: YANG is a modeling language, not the usual wire-format response body.
- B
JSON
JSON commonly represents API payloads.
- C
Syslog
Why wrong: Syslog is a logging protocol and message format.
- D
CDP
Why wrong: CDP is a Cisco discovery protocol.
Quick Answer
The answer is JSON, which stands for JavaScript Object Notation and uses key-value pairs to structure data in a lightweight, human-readable format. This makes JSON the most common data format returned by REST APIs, as it allows for efficient data exchange between a client and server without unnecessary overhead. On the CCNA 200-301 v2 exam, this concept often appears in questions about network automation and programmability, testing your ability to distinguish between data formats, protocols, and modeling languages. A common trap is confusing JSON with YANG, which is a data modeling language for configuration, not a data format, or with Syslog and CDP, which serve entirely different purposes. Remember the memory tip: JSON is like a simple dictionary of key-value pairs, while YANG is the blueprint for the dictionary’s structure.
CCNA AI and Network Operations Practice Question
This 200-301 practice question tests your understanding of ai and network operations. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: jSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Which data format uses key-value pairs and is commonly returned by 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 lightweight, human-readable data format that uses key-value pairs and is the most common format returned by REST APIs. YANG is a data modeling language used for configuration and state data, not a data format. Syslog is a logging protocol used for system messages. CDP (Cisco Discovery Protocol) is a Layer 2 discovery protocol for Cisco devices. None of these are key-value pair data formats typically returned by REST APIs.
Key principle: JSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
YANG
Why it's wrong here
YANG is a modeling language, not the usual wire-format response body.
When this WOULD be correct
If the question asked which data modeling language is used for network device configuration and management, YANG would be the correct answer. This scenario would focus on network protocols and data structure definitions rather than API responses.
- ✓
JSON
- ✗
Syslog
Why it's wrong here
Syslog is a logging protocol and message format.
When this WOULD be correct
If the question were to ask about a logging format used for network devices that can include key-value pairs in its extended format, Syslog could be the correct answer. For example, a question about logging protocols that support structured data might fit this scenario.
- ✗
CDP
Why it's wrong here
CDP is a Cisco discovery protocol.
When this WOULD be correct
If the exam question asked about protocols used for device discovery in a Cisco network environment, CDP would be the correct answer, as it is specifically designed for that purpose.
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 commonly represents API payloads.
✗YANGWrong answer — click to see why▾
Why this is wrong here
YANG is a data modeling language used to define the structure of configuration and state data, not a data format for API responses. REST APIs typically return data in JSON or XML, not YANG models.
★ When this WOULD be the correct answer
If the question asked which data modeling language is used for network device configuration and management, YANG would be the correct answer. This scenario would focus on network protocols and data structure definitions rather than API responses.
Why candidates choose this
Students may confuse YANG with JSON because both are used in network automation and RESTCONF/NETCONF APIs, but YANG defines the schema while JSON is the actual wire format.
✗SyslogWrong answer — click to see why▾
Why this is wrong here
Syslog is a protocol and message format for logging system events, not a data format for API responses. It uses a specific structured format with facility, severity, and message fields, but not key-value pairs like JSON.
★ When this WOULD be the correct answer
If the question were to ask about a logging format used for network devices that can include key-value pairs in its extended format, Syslog could be the correct answer. For example, a question about logging protocols that support structured data might fit this scenario.
Why candidates choose this
Students might think syslog uses key-value pairs because some syslog messages include structured data, but the standard syslog format is not key-value based and is not used for REST API responses.
✗CDPWrong answer — click to see why▾
Why this is wrong here
CDP (Cisco Discovery Protocol) is a proprietary Layer 2 protocol used by Cisco devices to discover neighboring devices, not a data format. It does not use key-value pairs and is not returned by REST APIs.
★ When this WOULD be the correct answer
If the exam question asked about protocols used for device discovery in a Cisco network environment, CDP would be the correct answer, as it is specifically designed for that purpose.
Why candidates choose this
The acronym CDP might be confused with JSON because both are related to network data, but CDP is a discovery protocol, not a data format. Students may also confuse it with other protocols like LLDP.
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?”
Common exam traps
Common exam trap: answer the scenario, not the keyword
Be careful not to confuse JSON with XML or YAML, which have different structures and use cases.
Detailed technical explanation
How to think about this question
JSON (JavaScript Object Notation) is a lightweight, text-based data interchange format that uses key-value pairs to represent structured data. It is human-readable and easy for machines to parse and generate, making it ideal for data exchange in network automation and programmability contexts. JSON's syntax consists of objects enclosed in curly braces with keys and values, arrays, and simple data types like strings, numbers, and booleans, which enables flexible and hierarchical data representation. In the context of REST APIs, JSON is the most commonly used data format for request and response payloads because it is language-independent and widely supported by programming languages and network devices. Cisco devices and network management tools frequently use JSON to exchange configuration data, telemetry, and operational state information. Unlike YANG, which is a modeling language describing data structure, JSON is the actual format used to encode and transmit data over the network. A common exam trap is confusing YANG with JSON. YANG defines the schema and data models for network configuration and state data but does not specify the wire format. JSON is the wire format often used to encode YANG-modeled data in RESTCONF or NETCONF APIs. Understanding this distinction is critical for CCNA candidates, as REST APIs return JSON-formatted data, not YANG code. Practically, network engineers use JSON to automate device configuration and monitoring, leveraging its simplicity and compatibility with RESTful services.
KKey Concepts to Remember
- JSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation.
- REST APIs commonly return JSON-formatted data because it is language-independent and easy for devices and applications to parse.
- YANG is a data modeling language that defines the schema for network data but does not specify the wire-format for data exchange.
- Syslog is a protocol for logging system messages and is not used as a data format for REST API responses.
- CDP is a Cisco proprietary protocol for device discovery and does not provide data in key-value pair format for APIs.
- Network automation tools use JSON to encode configuration and operational data when interacting with Cisco devices via RESTCONF or NETCONF.
- Understanding the difference between data models (YANG) and data formats (JSON) is essential for correctly interpreting network programmability questions.
- REST APIs leverage JSON to enable efficient and standardized communication between network devices and management applications.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
JSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation.
Real-world example
How this comes up in practice
A practitioner preparing for the 200-301 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. JSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Review jSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation., then practise related 200-301 questions on the same topic to reinforce the concept.
- →
AI and Network Operations — study guide chapter
Learn the concepts, then practise the questions
- →
AI and Network Operations practice questions
Targeted practice on this topic area only
- →
All 200-301 questions
1,819 questions across all exam domains
- →
CCNA 200-301 v2 study guide
Full concept coverage aligned to exam objectives
- →
200-301 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related 200-301 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Network Infrastructure and Connectivity practice questions
Practise 200-301 questions linked to Network Infrastructure and Connectivity.
Switching and Network Access practice questions
Practise 200-301 questions linked to Switching and Network Access.
IP Routing practice questions
Practise 200-301 questions linked to IP Routing.
Network Services and Security practice questions
Practise 200-301 questions linked to Network Services and Security.
AI and Network Operations practice questions
Practise 200-301 questions linked to AI and Network Operations.
CCNA subnetting practice questions
Practise IPv4 subnetting, CIDR, masks, host ranges and subnet selection.
CCNA OSPF practice questions
Practise OSPF neighbours, router IDs, metrics, areas and routing-table interpretation.
CCNA VLAN practice questions
Practise VLANs, access ports, trunks, allowed VLANs and switching scenarios.
CCNA STP practice questions
Practise spanning tree, root bridge election, port roles and STP troubleshooting.
CCNA EtherChannel practice questions
Practise LACP, PAgP, port-channel behaviour and bundle requirements.
CCNA ACL practice questions
Practise standard and extended ACLs, permit/deny logic and traffic filtering.
CCNA NAT practice questions
Practise static NAT, dynamic NAT, PAT and inside/outside address translation.
Practice this exam
Start a free 200-301 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this 200-301 question test?
AI and Network Operations — This question tests AI and Network Operations — JSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation..
What is the correct answer to this question?
The correct answer is: JSON — JSON is a lightweight, human-readable data format that uses key-value pairs and is the most common format returned by REST APIs. YANG is a data modeling language used for configuration and state data, not a data format. Syslog is a logging protocol used for system messages. CDP (Cisco Discovery Protocol) is a Layer 2 discovery protocol for Cisco devices. None of these are key-value pair data formats typically returned by REST APIs.
What should I do if I get this 200-301 question wrong?
Review jSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation., then practise related 200-301 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
JSON uses key-value pairs to represent structured data in a lightweight and human-readable format suitable for network automation.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: May 17, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.