Advertisements

YAML Practice Tests: 119 Questions Explained

Advertisements
Practice tests for YAML: syntax, indentation, scalars, anchors, tags and Ansible files - every answer explained
1
1/5
(64) Ratings
0 students
Created by Vitalii Shumylo
Advertisements

What you'll learn

  • Check your YAML knowledge across three tests
  • Find your weak areas – each test covers one area of YAML
  • Learn why each wrong option is wrong, not just which option is right
  • Spot the classic traps: tabs, missing spaces, the Norway problem, octal and version numbers
  • Practise under time pressure with a full mixed mock exam
This course includes:
119 questions on-demand video
1 articles
0 downloadable resources
1 lessons
Full lifetime access
Access on mobile and TV
Certificate of completion
Advertisements

Course content

Requirements

  • Basic comfort with a text editor and the command line
  • No lab is needed to take the tests

Description

Do you write YAML for configs, CI pipelines or Ansible – or are you just starting to? These practice tests check what you need to write files that load the first time: documents and indentation, block and flow style, editor setup, sequences and mappings, quoting and scalar types, block scalars, anchors and tags, and the YAML rules behind Ansible inventories and playbooks.

You get 3 practice tests with 119 questions in total (40, 40, 39). Every question was checked twice before release: once by the author against the official documentation, and once by an independent reviewer who answered it blind – any disagreement was settled with a source.

What makes the explanations useful

Each answer tells you why the right option is right and why each wrong option is wrong. The wrong options are real features, commands and settings that are easy to pick by mistake – that is where most of the learning is.

How the tests are built

  • Practice Test 1: YAML Syntax, Structure and Editor Setup: documents and streams, indentation and the no-tabs rule, comments, block and flow style, JSON compatibility, YAML 1.1 vs 1.2, online parsers, and editor setup in nano, Vim and VS Code.
  • Practice Test 2: Data Structures, Scalars, Tags and Ansible YAML: sequences and mappings, duplicate keys, quoting, null, booleans, numbers and dates, block scalars, anchors, aliases and merge keys, tags, multi-document files, and YAML in Ansible playbooks and inventories.
  • Practice Test 3: Full Mock Exam: a mixed exam across all areas – take it last, in one sitting.

Questions use single-answer and multiple-answer formats; the number of answers to pick is always stated. Suggested time: 60 minutes per test.

Versions: YAML 1.2.2 specification (with YAML 1.1 behaviour in older parsers), PyYAML 6.0, ansible-core 2.19+ and ansible-lint, VS Code with the Red Hat YAML extension, Vim 9 and GNU nano, as of October 2026.

Please note: these are original practice questions written by an instructor. This course is not affiliated with or endorsed by Red Hat; Ansible and Red Hat are Red Hat trademarks.

Who this course is for:

  • DevOps engineers and system administrators who write YAML configs
  • Ansible, Docker Compose and CI/CD users who want fewer parser errors
  • Students of YAML courses who want to test what they learned
Advertisements
5494A56DEE04421E215A
Advertisements
Advertisements
Free Online Courses with Certificates
Logo
Register New Account