Courseiva
Junos Automation Stack And DevOps ConceptshardMultiple ChoiceObjective-mapped

JNCIA-DevOps Junos Automation Stack And DevOps Concepts Practice Question

In a DevOps pipeline managing Junos devices, an engineer implements 'Infrastructure as Code' (IaC). Which practice best exemplifies this methodology when applied to Junos routing policies?

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

Defining routing policies in Jinja2 templates and YAML data files, committing them to Git, and automatically pushing them via Ansible playbooks.

IaC defines infrastructure in declarative configuration files stored in version control, allowing automated testing and deployment.

Answer analysis

Option-by-option breakdown

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

  • Writing custom Python scripts that use regex to parse 'show route' outputs on the fly.

    Why it's wrong here

    Parsing CLI output with regex is screen scraping, which is brittle and not IaC.

  • Defining routing policies in Jinja2 templates and YAML data files, committing them to Git, and automatically pushing them via Ansible playbooks.

    Why this is correct

    Correct. Using templates, data files, version control, and automation tools embodies IaC.

  • Manually logging into each router via SSH during a maintenance window to type out policy-options statements.

    Why it's wrong here

    Manual CLI entry is the opposite of Infrastructure as Code.

  • Using dynamic routing protocols like BGP to automatically advertise prefixes without human intervention.

    Why it's wrong here

    BGP is a control-plane routing protocol, not Infrastructure as Code.

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.