Courseiva
Data SerializationmediumMultiple ChoiceObjective-mapped

JNCIA-DevOps Data Serialization Practice Question

An engineer receives a YAML configuration snippet for a PyEZ automation script, but the script fails with a parser error. Upon inspection, the error is caused by improper indentation levels. Which rule must be strictly followed regarding indentation in YAML syntax?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Spaces must be used for indentation, and tabs are strictly forbidden.

YAML requires the use of space characters for indentation. Tab characters are strictly forbidden for indentation purposes.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Indentation is completely optional if curly braces are used.

    Why it's wrong here

    While JSON-style flow formatting uses braces, proper structure and nesting still rely on accurate syntax rules.

  • Tabs must be used consistently for every level of indentation.

    Why it's wrong here

    YAML specification explicitly forbids the use of tab characters for indentation.

  • Indentation must always be exactly four spaces per level.

    Why it's wrong here

    YAML allows any number of spaces for indentation as long as it is consistent within the same block, though two spaces is standard convention.

  • Spaces must be used for indentation, and tabs are strictly forbidden.

    Why this is correct

    YAML relies on a fixed indentation space count and prohibits tabs to prevent indentation ambiguity.

About these practice questions

This JNCIA-DevOps question is part of Courseiva's 306-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Juniper Networks exam blueprint

This JNCIA-DevOps practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JNCIA-DevOps exam.