JSON supports objects, arrays, strings, numbers, booleans, and null. It has no native date or comment type.
2 / 5
How does YAML primarily denote structure?
YAML uses significant indentation (spaces, never tabs) to represent nested structure, making it readable for config files.
3 / 5
What is a YAML anchor (&) used for?
A YAML anchor (&name) labels a node so it can be referenced and reused elsewhere via an alias.
4 / 5
How do you reference a YAML anchor?
A YAML alias*name reuses the content of the anchor with the same name, reducing duplication.
5 / 5
What is one key difference between JSON and YAML?
YAML is largely a superset of JSON that adds comments (#), anchors/aliases, and indentation-based syntax, whereas JSON is stricter and has no comments.