JNCIA-DevOps: Juniper Networks Certified Associate – Automation and DevOps — Question 5
Which two statements are true about data structures? (Choose two.)
Answer options
- A. YAML is human readable and supports serializing arbitrary native data structures
- B. YAML follows the lowest common denominator data types and requires simple processing between different programming environments
- C. JSON is language dependent, which uses conventions that are familiar to programmers of languages like C, C++, Java, Perl, and Python
- D. JSON is simple to generate and parse, though human readability is sacrificed
Correct answer: A, C
Explanation
Option A is correct because YAML is designed to be human-readable and can serialize complex data structures. Option C is also correct as JSON is indeed based on language-specific conventions that are common among several programming languages. Options B and D are incorrect; B misrepresents YAML's capabilities, and D inaccurately suggests that JSON sacrifices readability when it is still relatively readable compared to other formats.