5.0 AI, Network Operations and Management
JSON & Data Formats Practice Questions
Reading JSON, XML, and YAML, plus REST verbs and HTTP response codes.
Author-reviewed by LabFabric · 7 September 2026 · Report a content issue
One solved question, so you can see how these are marked
In JSON, which characters enclose an array of values?
Square brackets [ ]
Square brackets enclose an ordered array, and curly braces enclose an object of key/value pairs. An array can hold objects, so nested combinations of the two are common in API responses.
Every question in the set below is marked like this. The answers stay hidden until you pick one.
Find related practice in the CCNA pathAll 6 JSON & Data Formats questions in this set
Answers and explanations appear when you work through the set above.
Given {"interface": {"name": "Gi0/1", "enabled": true, "mtu": 1500}}, which statement is accurate?
- enabled is a string and mtu is a string
- enabled is a boolean and mtu is a number, because neither is in quotation marks
- All three values are strings because they appear inside an object
- The syntax is invalid because booleans are not permitted in JSON
Which data format uses indentation rather than brackets or tags to express structure, and is used by Ansible playbooks?
- JSON
- XML
- YAML
- CSV
Which HTTP verb would you use to retrieve a list of interfaces from a REST API without changing anything?
- GET
- POST
- PUT
- DELETE
A script sends a REST call and receives HTTP status code 401. What does this indicate?
- The request succeeded and a resource was created
- The request was malformed and could not be parsed
- Authentication is required or the supplied credentials or token are invalid
- The server encountered an internal error
Which data format is used natively by NETCONF for encoding configuration data?
- JSON
- XML
- YAML
- Plain text CLI
What does it mean that a REST API is stateless?
- The API cannot modify any device configuration
- Each request carries all the information needed to process it, and the server keeps no session context between calls
- The API returns the same data every time regardless of the request
- The API can only be called once per authentication token