Free JN0-222 Exam Braindumps (page: 5)

Page 4 of 26

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



Exhibit.

What is the purpose of the G character shown in the exhibit?

  1. The G sign is a JSON object that holds XML elements from the Junos configuration segment.
  2. The 0 sign is a JSON object that holds XML attributes from the Junos configuration segment.
  3. The 0 sign is a JSON array that holds Xf.1L attributes from the Junos configuration segment.
  4. The e sign is a JSON array that holds XML elements from the Junos configuration segment.

Answer(s): C






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

JN0-222 Discussions & Posts