Courseiva
NETCONF And XML APIhardMultiple ChoiceObjective-mapped

JNCIA-DevOps NETCONF And XML API Practice Question

An automation script attempts to unlock a candidate configuration datastore that was previously locked by a different NETCONF session. Which RPC is required to force-terminate that session and release the lock?

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

<kill-session><session-id>...</session-id></kill-session>

The <kill-session> RPC allows terminating another active NETCONF session, which automatically releases any locks held by that session.

Answer analysis

Option-by-option breakdown

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

  • <kill-session><session-id>...</session-id></kill-session>

    Why this is correct

    <kill-session> forcefully terminates the specified session ID and releases its locks.

  • <unlock target="candidate" force="true"/>

    Why it's wrong here

    The <unlock> element does not accept a force attribute; locks are owned by session IDs.

  • <release-lock session-id="..."/>

    Why it's wrong here

    <release-lock> is not a standard NETCONF RPC element.

  • <close-session><session-id>...</session-id></close-session>

    Why it's wrong here

    <close-session> is graceful and can only be invoked by the session owner on its own session.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

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.