DevNet Associate (DEVASC) v1.0Software Development and DesignEasy

A developer is creating a new application that needs to securely send sensitive configuration data between two microservices. The data must be human-readable for debugging purposes but also easily parseable by machines. Which data format is best suited for this requirement, combining readability with structured data representation?

  1. ACSV
  2. BBinary
  3. CHTML
  4. DJSON
Show answer & explanation

Correct answer: D. JSON

JSON (JavaScript Object Notation) is a lightweight, human-readable data interchange format that is also easily parseable by machines. It is widely used in web applications and microservices for transmitting structured data.

Why the other options are wrong

  • A. CSV is human-readable but lacks structured data representation, making complex data difficult to model.
  • B. Binary formats are efficient for machines but are not human-readable for debugging.
  • C. HTML is primarily for structuring web content, not for data interchange between services.

JSON

JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate.

  • Uses key-value pairs and ordered lists of values.
  • Commonly used for transmitting data in web applications (e.g., sending data from a server to a web page).
  • Language independent, making it widely applicable across different programming languages.

Memory trick: Just Send Objects Neatly for easy parsing.

More Software Development and Design questions