Courseiva
Data SerializationmediumMultiple ChoiceObjective-mapped

JNCIA-DevOps Data Serialization Practice Question

An automation script reads a configuration template where boolean values are represented as 'yes' and 'no' in YAML. When parsed using PyYAML in Python, how are these values interpreted?

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

They are interpreted as Python boolean True and False values.

In YAML 1.1 (which PyYAML predominantly implements), unquoted words like 'yes', 'no', 'true', 'false', 'on', and 'off' are automatically parsed into native boolean values.

Answer analysis

Option-by-option breakdown

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

  • They are converted to integer 1 and 0 values.

    Why it's wrong here

    Incorrect. They are resolved as booleans, not integers.

  • They are interpreted as Python boolean True and False values.

    Why this is correct

    Correct. PyYAML automatically converts 'yes' and 'no' into native boolean types.

  • They remain as literal string objects ('yes' and 'no').

    Why it's wrong here

    Incorrect. Without quotes, PyYAML resolves them as booleans.

  • The parser raises a ConstructorError because only 'true' and 'false' are valid.

    Why it's wrong here

    Incorrect. YAML specification supports multiple string representations for booleans.

About these practice questions

This JNCIA-DevOps question is part of Courseiva's 307-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.