Courseiva
Data SerializationeasyMultiple ChoiceObjective-mapped

JNCIA-DevOps Data Serialization Practice Question

An engineer needs to represent an ordered list of IP addresses in a YAML configuration file for a Junos automation playbook. Which valid YAML syntax correctly defines a sequence of items?

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

ip_addresses: - 192.168.1.1 - 192.168.1.2

In YAML, lists or sequences are represented using a hyphen followed by a space (-) at the beginning of each line.

Answer analysis

Option-by-option breakdown

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

  • ip_addresses = {192.168.1.1, 192.168.1.2}

    Why it's wrong here

    Incorrect. Curly braces and assignment operators are part of Python or JSON syntax, not valid YAML sequence definitions.

  • ip_addresses: [192.168.1.1: 192.168.1.2]

    Why it's wrong here

    Incorrect. Colons inside inline lists are invalid unless defining key-value mapping elements.

  • ip_addresses: - 192.168.1.1 - 192.168.1.2

    Why this is correct

    Correct. The hyphen (-) prefix defines a list/sequence in YAML.

  • ip_addresses: * 192.168.1.1 * 192.168.1.2

    Why it's wrong here

    Incorrect. Asterisks are used for anchors and aliases in YAML, not list items.

About these practice questions

One of 306 original JNCIA-DevOps practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.