JNCIA-DevOps Junos Automation Stack And DevOps Concepts Practice Question
An engineer is automating Junos device deployments using Ansible. They need to push a set of hierarchical configuration changes to a cluster of MX Series routers and ensure the changes are committed only if there are no syntax errors, while keeping the connection open for subsequent tasks. Which Ansible module and parameter combination should be used?
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
✓
junipernetworks.junos.junos_config with 'update: merge' and 'diff: true'
The junipernetworks.junos.junos_config module manages Junos configurations, and the 'confirm' or 'diff' parameters manage operational validation, while the transport connection is handled automatically by the collection.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
junipernetworks.junos.junos_command with 'commands: ["configure", "commit check"]'
Why it's wrong here
junos_command executes raw CLI commands rather than structured declarative configuration management.
- ✓
junipernetworks.junos.junos_config with 'update: merge' and 'diff: true'
Why this is correct
junos_config with update: merge applies hierarchical configuration blocks and diff: true displays configuration changes.
- ✗
ansible.builtin.template with 'dest: /config/juniper.conf'
Why it's wrong here
Directly writing files to the Junos file system bypasses management plane validation and mgd.
- ✗
netconf_config with 'provider: junos'
Why it's wrong here
While generic netconf modules exist, the dedicated junipernetworks.junos collection is the standard JNCIA-DevOps recommended toolset.
About these practice questions
One of 307 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 →
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.