Security Engineering
A team is choosing a format for hand-edited tool configurations. It must allow # comments, use explicit key = value pairs grouped in named tables, and not depend on indentation for meaning. Which format fits?
Show the answer
Correct answerC. TOML
AWhy not this: XML allows comments but uses tags and attributes, not key = value pairs grouped in named tables.
BWhy not this: JSON has no comment syntax and uses braces and colons rather than key = value tables.
CWhy this is right: TOML combines # comments, key = value assignment and [table] headers, with structure independent of indentation.
DWhy not this: YAML supports # comments but expresses structure through indentation, which the team wants to avoid.
TOML uses key = value pairs under [table] headers, supports # comments, and ignores indentation. YAML allows comments but its structure depends on indentation, while JSON has no comments.