Objective 6.7

200-301

Recognize components of JSON-encoded data.

Objective 6.7 sits in Automation and Programmability, which carries 10% of the CCNA exam. The questions below are original, written from the official objective title above, and each explanation cites the Cisco page it rests on.

Objective title verbatim from the official objectives. Cisco exam page ↗

A worked example

Shown solved, with the whole explanation open: this is what every question here carries.

6-7Automation and Programmability

A device returns this JSON to an automation script.

JSON
{  "hostname": "sw-core-02",  "snmp": { "communities": ["labro", "netops"], "version": "2c" },  "vlans": [ { "id": 10, "name": "data" }, { "id": 20, "name": "voice" } ],  "uptime_days": 41}

Which value in the document is an object?

The value of communitiescommunities holds two strings between square brackets. That is an array whose elements are strings.
The value of hostnamehostname is paired with a quoted string. A string is one of the four primitive types rather than a structured one.
The value of vlansvlans opens with a square bracket, so it is an array. Its elements happen to be objects, which is what makes it easy to misread.
The value of snmpCorrect · your answerCorrect. It is written between curly brackets.

Correct.

Checked against datatracker.ietf.org, August 2026

Concept

JSON has two structured types and brackets tell them apart. Curly brackets hold name/value pairs, square brackets hold an ordered list of elements, and either kind can be nested inside the other to any depth.

Why D

Curly brackets mark an object, so the member named snmp is paired with an object that holds two members of its own. RFC 8259 defines an object as an unordered collection of name/value pairs and an array as an ordered sequence of values, which is the difference the brackets show.

Source

An object is an unordered collection of zero or more name/value pairs, where a name is a string and a value is a string, number, boolean, null, object, or array. An array is an ordered sequence of zero or more values.

IETF RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format, checked August 2026
#json#objects-and-arrays#data-encoding

Now you: objective 6.7 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 3

6-7Automation and Programmability

A parser rejects this payload produced by a monitoring script.

JSON
{  "interface": "GigabitEthernet0/1",  "enabled": True,  "mtu": 1500}

Which rule of the JSON grammar does it break?

Sample question 2 of 3

6-7Automation and ProgrammabilityChoose 2

A device rejects a payload an automation script produced, and an engineer checks each value in it against the JSON grammar. Which two values are legal? (Choose two.)

Sample question 3 of 3

6-7Automation and Programmability

An API returns structured data as text in braces with name and value pairs. Which format is that?

That’s 3 of the full CCNA bank.

Keep going free: 10 questions per certification in bank practice, with no account.

Continue practicing

Read the sources

These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.

More objectives in Automation and Programmability