nerdexam
CompTIACompTIA

XK0-005 · Question #1824

XK0-005 Question #1824: Real Exam Question with Answer & Explanation

The correct answer is B: Due to its ease of use and broad compatibility, JSON is frequently used for configuration files and. JSON (JavaScript Object Notation) is a widely used, human-readable data interchange format known for its simplicity and broad compatibility across programming languages. It is frequently employed for configuration files and as a format for web APIs.

Scripting, Containers, and Automation

Question

Which of the following characteristics of YAML and JSON are the most accurate?

Options

  • AJSON uses indentation and substantial white space, while YAML relies on curly braces and
  • BDue to its ease of use and broad compatibility, JSON is frequently used for configuration files and
  • CJSON is a data interchange format used for configuration files and APIs, whereas YAML is a
  • DYAML is preferred for its rigorous data type and significant support for complex data structures,

Explanation

JSON (JavaScript Object Notation) is a widely used, human-readable data interchange format known for its simplicity and broad compatibility across programming languages. It is frequently employed for configuration files and as a format for web APIs.

Common mistakes.

  • A. This statement incorrectly describes the formats; JSON primarily uses curly braces and square brackets, not indentation for structure, while YAML heavily relies on indentation and white space.
  • C. This statement is incomplete and misleading as both JSON and YAML are data interchange formats used for configuration and APIs, and the sentence structure for YAML is cut off.
  • D. While YAML is human-readable and supports complex data structures, this statement overstates YAML's 'rigorous data type' compared to JSON in some contexts and JSON also supports complex structures.

Concept tested. Characteristics of JSON data format

Reference. https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/overview

Topics

#YAML#JSON#Data formats#Configuration files

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions