Courseiva
Python And PyEZhardMultiple ChoiceObjective-mapped

JNCIA-DevOps Python And PyEZ Practice Question

When modifying a Junos device configuration using the PyEZ Config table-driven or Context manager (with Config(dev) as cu:), what is the default behavior regarding locking the candidate configuration?

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

It automatically locks the candidate configuration upon entry and unlocks it upon exit.

When entering the Config context manager in PyEZ, it automatically locks the candidate configuration database to prevent concurrent edits and unlocks it upon exiting the context.

Answer analysis

Option-by-option breakdown

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

  • It locks the global database and forces all other users into maintenance mode.

    Why it's wrong here

    It only locks the candidate configuration for the current configuration session, not the global routing engine or operational state.

  • It requires an explicit cu.lock() call before any load operation can take place.

    Why it's wrong here

    While cu.lock() exists, it is handled automatically when using the context manager.

  • It automatically locks the candidate configuration upon entry and unlocks it upon exit.

    Why this is correct

    Automatic locking is a core feature of the PyEZ Config context manager to ensure transactional safety.

  • It locks the running configuration and restarts the mgd daemon.

    Why it's wrong here

    The running configuration cannot be locked directly; PyEZ targets the candidate configuration.

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.