Junior — Middle
Explain what a YAML file is and what it is used for.
sobes.tech AI
Answer from AI
YAML (YAML Ain't Markup Language) is a human-readable data serialization format, often used for configuration files.
Main features of YAML:
- Easy for humans to read and write
- Uses indentation for nesting, similar to Python
- Supports lists, dictionaries, and scalar values
It is used for storing application settings, describing infrastructure (for example, in Kubernetes), CI/CD pipelines, and other tasks where it is important to describe data structures conveniently and clearly.
Example of a YAML file:
server:
port: 8080
host: localhost
features:
- login
- signup
- dashboard