JNCIA-DevOps Data Serialization Practice Question
An automation script needs to convert a JSON string containing Juniper interface statistics into a YAML format to maintain consistency with existing Ansible variable files. When performing this conversion, which structural capability does YAML support that standard JSON does not?
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
✓
Support for comments
YAML natively supports complex keys (such as using objects or tuples as keys) and comments, whereas standard JSON requires all keys to be strings and does not support comments.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Support for comments
Why this is correct
YAML supports inline comments using the '#' character, whereas JSON does not support comments.
- ✗
Support for numeric floating-point values
Why it's wrong here
Both formats natively represent integers and floating-point numbers.
- ✗
Support for boolean data types
Why it's wrong here
Both JSON and YAML support boolean data types natively.
- ✗
Support for nested arrays
Why it's wrong here
Both formats natively support nesting arrays and lists.
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 →
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.