CompTIA Data+ (DA0-002)Data Concepts and EnvironmentsMedium
A data engineering team is adopting a new standard for exchanging data between different microservices within their application. They need a human-readable, lightweight data interchange format that supports nested structures and arrays, and is widely supported across various programming languages. Which file format would be the most appropriate choice?
- AXML (Extensible Markup Language)
- BJSON (JavaScript Object Notation)
- CParquet
- DCSV (Comma Separated Values)
Show answer & explanationAnswer & explanation
Correct answer: B. JSON (JavaScript Object Notation)
JSON is a lightweight, human-readable data interchange format that natively supports nested structures (objects) and arrays, making it ideal for complex data exchange between microservices. Its widespread adoption across programming languages further strengthens its suitability.
Why the other options are wrong
- A. XML supports nested structures but is often more verbose and less lightweight than JSON, and parsing can be more complex.
- C. Parquet is a columnar storage format optimized for analytical queries and storage efficiency, not primarily for human-readable data interchange between services.
- D. CSV is a flat, tabular format that does not natively support nested structures or arrays, making it unsuitable for complex data exchange.
JSON (JavaScript Object Notation)
A lightweight data-interchange format. It is easy for humans to read and write and easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language Standard ECMA-262 3rd Edition - December 1999.
- Human-readable and self-describing.
- Supports nested objects and arrays.
- Language-independent standard.
- Common for web APIs and microservice communication.
- Smaller file sizes compared to XML for similar data.
Memory trick: JSON is the modern, flexible choice for web data.