CCNA Automation JSON and YAML Data Formats Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. In YAML, the colon (:) is used to separate _____ and values.

Explanation

In YAML mappings, a colon separates each key from its corresponding value.

Submit
Please wait...
About This Quiz
CCNA Automation Json and Yaml Data Formats Quiz - Quiz

This quiz evaluates your understanding of JSON and YAML data formats used in Cisco network automation. Master the syntax, structure, and practical applications of these essential formats for automating network tasks with tools like Ansible, Python, and REST APIs. Ideal for students preparing for CCNA Automation certification.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. In JSON, boolean values are represented as _____ or false.

Explanation

JSON represents boolean values using the lowercase literals `true` and `false`. Therefore, the blank is `true`. These values are written without quotation marks.

Submit

3. Which data format is preferred for Ansible inventory files and playbooks?

Explanation

YAML is preferred because its readable, indentation-based syntax makes configuration easy to write and review. Ansible playbooks are typically written in YAML to define tasks, variables, and handlers, and YAML inventory files are also supported. Ansible can additionally use INI inventories, but YAML is the standard choice for playbooks and structured configuration.

Submit

4. JSON is natively supported by JavaScript and most programming languages. Is this true?

Explanation

JSON is a widely used text format for representing structured data. JavaScript includes built-in methods such as `JSON.parse()` and `JSON.stringify()`, while most programming languages provide standard-library features or libraries for reading and writing JSON.

Submit

5. In YAML, dictionaries (maps) are represented using _____ notation.

Explanation

In YAML, a dictionary (or map) organizes information as pairs, where each key identifies a value. A colon separates the key from its value, and indentation can show nested mappings. This key-value structure makes related data easy to read and represent in configuration files in a consistent format.

Submit

6. Which Cisco tool uses JSON extensively for API interactions in network automation?

Explanation

Cisco DNA Center’s REST API uses JSON extensively to exchange structured data between automation scripts and the platform. JSON-formatted requests can retrieve information about network devices, sites, and clients, or trigger configuration and management tasks. NETCONF typically uses XML, while SNMP v2 and Telnet do not use JSON as their primary interaction format.

Submit

7. In JSON, arrays are ordered collections of values enclosed in _____.

Explanation

In JSON, an array groups values in a specific order, with each value separated by commas. The opening and closing square brackets mark where the array begins and ends.

Submit

8. YAML does not require quotation marks around string values. Is this true?

Explanation

YAML allows many string values to be written without quotation marks, especially plain strings containing ordinary text. Quotes are optional in these cases, but may be needed when a value contains special characters, leading or trailing whitespace, or could be interpreted as another data type, such as a boolean or number. Thus, the statement is true.

Submit

9. Which format is more concise: JSON or YAML?

Explanation

JSON can be more concise when serialized in compact form: objects and arrays can fit on one line with minimal whitespace, while YAML commonly uses line breaks and indentation for readability. This can make JSON compact for transmission or storage, although YAML may be shorter for some hand-written configurations.

Submit

10. Ansible playbooks primarily use which data format for configuration files?

Explanation

Ansible playbooks primarily use YAML because its simple, human-readable syntax makes configuration easy to write and maintain. YAML supports structured data such as lists and key-value pairs, which Ansible uses to define tasks, variables, and other playbook settings.

Submit

11. Which data format uses curly braces {} to denote objects and is language-independent?

Explanation

JSON uses curly braces `{}` to represent objects containing key-value pairs. It is a language-independent data-interchange format, so different programming languages can read and generate it.

Submit

12. What is the correct way to represent an empty array in JSON?

Explanation

In JSON, square brackets represent arrays, so `[]` denotes an array containing no elements. `{}` represents an empty object, `null` is a distinct value, and `undefined` is not valid JSON.

Submit

13. In JSON, the null value represents the absence of data. Is this statement true or false?

Explanation

In JSON, `null` is a special value used to indicate that no value is present for a field. It differs from a missing field, which is simply omitted from the JSON object.

Submit

14. Which REST API typically uses JSON for request and response payloads?

Explanation

RESTful APIs commonly use JSON to represent data in request and response bodies because it is lightweight and easy for applications to exchange and parse. FTP transfers files, SNMP manages network devices, and Telnet provides remote command-line access rather than typical JSON-based resource interactions.

Submit

15. YAML is human-readable and uses _____ to define key-value pairs.

Explanation

YAML uses indentation to organize data and show relationships between elements, especially in nested structures. This whitespace-based format helps both readers and parsers identify the hierarchy of the data.

Submit

16. In JSON, string values must be enclosed in which type of quotation marks?

Explanation

JSON requires string values to be enclosed in double quotation marks. Single quotes and backticks are not valid delimiters for JSON strings.

Submit

17. What does JSON stand for?

Explanation

JSON stands for JavaScript Object Notation. It is a lightweight text format used to store and exchange structured data, commonly between web applications and servers.

Submit

18. In YAML, how are lists represented?

Explanation

In YAML, lists are commonly written as block sequences, with each item introduced by a hyphen and placed on its own line. Indentation shows how the items relate to surrounding data. Square brackets can also represent lists in YAML’s flow style, but hyphens and indentation are the standard block format.

Submit

19. Which of the following is a valid JSON data type?

Explanation

`null` is a valid JSON value representing the absence of a value. JSON also supports strings, numbers, booleans, arrays, and objects. `undefined`, `symbol`, and `function` are JavaScript values, but they are not valid JSON data types.

Submit

20. In YAML, what character is used to denote the start of a comment?

Explanation

In YAML, the hash symbol (`#`) begins a comment. Text following it on the same line is treated as a comment rather than as part of the data, unless the symbol appears within a quoted string.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
In YAML, the colon (:) is used to separate _____ and values.
In JSON, boolean values are represented as _____ or false.
Which data format is preferred for Ansible inventory files and...
JSON is natively supported by JavaScript and most programming...
In YAML, dictionaries (maps) are represented using _____ notation.
Which Cisco tool uses JSON extensively for API interactions in network...
In JSON, arrays are ordered collections of values enclosed in _____.
YAML does not require quotation marks around string values. Is this...
Which format is more concise: JSON or YAML?
Ansible playbooks primarily use which data format for configuration...
Which data format uses curly braces {} to denote objects and is...
What is the correct way to represent an empty array in JSON?
In JSON, the null value represents the absence of data. Is this...
Which REST API typically uses JSON for request and response payloads?
YAML is human-readable and uses _____ to define key-value pairs.
In JSON, string values must be enclosed in which type of quotation...
What does JSON stand for?
In YAML, how are lists represented?
Which of the following is a valid JSON data type?
In YAML, what character is used to denote the start of a comment?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!