Juniper JN0-222 Exam
Automation and DevOps Associate (JNCIA-DevOps) (Page 4 )

Updated On: 9-Feb-2026

Which two statements about the Junos PyEZ configuration module are correct? (Choose two )

  1. The configuration module does not support loading a rescue configuration
  2. The configuration module supports loading a rescue configuration
  3. PyEZ does not support performing an exclusive lock on the configuration database.
  4. The lock() method can be used to lock the configuration database.

Answer(s): B,D



What is a valid JSON object?

  1. ''hostname:vmx-1''
  2. { ''hostname'' : ''vmx-1''}
  3. { ''vmx-1: 172.25.11.1''}
  4. { ''vmx-1'', ''172.25.11.1''}

Answer(s): B



Which Python code block is an example of an context manager?


  1. while True:
    device -- Device(host-''vmx-1'', user-''lab'', passwd-''lab123'')
    ...
  2. try:
    device -- Device(host-''vmx-1'', user-''lab'', passwd-''lab123'')
    ...
  3. with Device(host=''vmx-1'', user=''lab'', passwd=''lab123'') as device:
    ...
  4. for host in [''vmx-1'', ''vmx-2'']:
    device -- Device(host-host, user-''lab'', passwd-''lab123'')
    ...

Answer(s): A



Which statement is correct about the Junos XML API?

  1. The API uses NETCONF for off-box automation.
  2. The API is only executed when a configuration is committed
  3. The API uses HTTPS for securing off-box automation.
  4. The API only works for on-box automation tools.

Answer(s): A



Referring to the exhibit.

Which two statements are correct? (Choose two.)

  1. The retrieved configuration will be from the Junos candidate configuration.
  2. The configuration will be retrieved in JSON format.
  3. The configuration will be retrieved in XML format.
  4. The retrieved configuration will be from the Junos active configuration.

Answer(s): A,B






Post your Comments and Discuss Juniper JN0-222 exam prep with other Community members:

Join the JN0-222 Discussion