Courseiva
Python And PyEZmediumMultiple ChoiceObjective-mapped

JNCIA-DevOps Python And PyEZ Practice Question

When writing a Python script to interact with Junos devices, you want to ensure that password credentials are not hardcoded in the source code. What is a recommended best practice supported by PyEZ?

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

Using SSH key-based authentication or environment variables/config files (.junodes)

PyEZ natively supports configuration files like ~/.junodes or passing parameters dynamically, but also respects environment variables or SSH keys.

Answer analysis

Option-by-option breakdown

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

  • Disabling authentication in the script

    Why it's wrong here

    Incorrect. Junos devices require authentication.

  • Storing credentials in plaintext in a public GitHub repository

    Why it's wrong here

    Incorrect. This is a severe security risk.

  • Hardcoding credentials in base64 encoding

    Why it's wrong here

    Incorrect. Base64 is encoding, not encryption or secure storage.

  • Using SSH key-based authentication or environment variables/config files (.junodes)

    Why this is correct

    Correct. PyEZ supports SSH keys and standard credential management practices.

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.