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

A developer is working on a network automation script that needs to process configuration data. The data is provided in a human-readable format, uses indentation to define structure, and supports comments. Which data format is being described?

  1. AJSON
  2. BYAML
  3. CXML
  4. DCSV
Show answer & explanation

Correct answer: B. YAML

YAML (YAML Ain't Markup Language) is specifically designed to be human-readable, uses indentation for structure, and supports comments, making it popular for configuration files.

Why the other options are wrong

  • A. JSON uses curly braces and square brackets for structure, not indentation, and does not natively support comments.
  • C. XML uses tags to define structure, not indentation, and supports comments but is generally less human-readable than YAML.
  • D. CSV is a plain-text format for tabular data, separated by commas, and does not use indentation for structure or support comments in the same way.

YAML

YAML (YAML Ain't Markup Language) is a human-friendly data serialization standard for all programming languages. It is often used for configuration files and in applications where data is being stored or transmitted.

  • Human-readable syntax
  • Uses indentation for structure (whitespace significant)
  • Supports comments with '#'
  • Commonly used for configuration files and data exchange

Memory trick: YAML is the friendly config file, easy to read and comment.

More Software Development and Design questions