A data analyst receives a data file from a web API containing customer order information. The file is text-based and human-readable. It organizes data using key-value pairs and can represent complex relationships, such as a single order containing a list of multiple products with their own attributes. Which of the following file formats is most likely being used?
The correct answer is .json. JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format that is easy for humans to read and for machines to parse. It is built on two structures: a collection of name/value pairs (objects) and an ordered list of values (arrays). This structure makes it ideal for representing complex, nested data, such as an order that contains a list of products, which is a common requirement for web APIs.
The .csv (Comma-Separated Values) format is not the correct answer. While it is text-based and human-readable, it is designed for flat, tabular data and does not natively support nested or hierarchical data structures.
The .xlsx format is also incorrect. It is the file format for Microsoft Excel spreadsheets and is fundamentally a binary format (a zip archive of XML files), not a simple text-based file suitable for lightweight API communication.
The .dat extension is incorrect because it is a generic extension for a data file and does not define a specific format. A .dat file's structure is determined by the application that created it and is not inherently human-readable or designed for structured, nested data in a standardized way.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are key-value pairs in JSON?
Open an interactive chat with Bash
How does JSON handle nested data structures?
Open an interactive chat with Bash
Why is JSON popular for web APIs?
Open an interactive chat with Bash
CompTIA Data+ DA0-002 (V2)
Data Concepts and Environments
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .