THE DEV BENCH
📄 YAMLmedium

3. Nested maps by indentation

Write YAML for a container: image is nginx:1.27, and a nested "resources" map with cpu "500m" and memory "256Mi".

How to approach this

Nesting in YAML is pure indentation — no braces. `resources:` on one line, then `cpu:` and `memory:` indented two more spaces beneath it. Consistent indentation is everything; a single misaligned space changes the structure.

config.yaml