Courseiva
NETCONF And XML APImediumMultiple ChoiceObjective-mapped

JNCIA-DevOps NETCONF And XML API Practice Question

You want to retrieve only the system hostname from the Junos running configuration using NETCONF. Which filtering technique is most efficient?

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

Subtree filtering using XML element tags matching the configuration hierarchy

Tag-based filtering allows requesting specific configuration hierarchies by including empty container tags in the <get-config> request.

Answer analysis

Option-by-option breakdown

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

  • Subtree filtering using XML element tags matching the configuration hierarchy

    Why this is correct

    Subtree filtering uses specific XML elements to mirror the configuration tree and filter the output.

  • XPath expression filtering via the select attribute

    Why it's wrong here

    While XPath is supported, standard subtree tag filtering is the native Junos XML API approach for simple element extraction.

  • Regular expression pattern matching within the <filter> attribute

    Why it's wrong here

    NETCONF subtree and XPath filters do not use generic regex pattern matching inside attributes.

  • Retrieving the entire configuration and parsing it locally with a Python script

    Why it's wrong here

    Retrieving the full configuration is inefficient when only a specific leaf is needed.

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 →

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.