Which Python code block is an example of a context manager?
A. while True: device – Device(host-“vmx-1”, user-“lab”, passwd-“lab123”) ...
B. try: device – Device(host-“vmx-1”, user-“lab”, passwd-“lab123”)
...
except:
print(“Unable to connect to the vMX1”)
C. with Device(host=”vmx-1”, user=”lab”, passwd=”lab123”) as device: ...
D. for host in [“vmx-1”, “vmx-2”]: device – Device(host-host, user-“lab”, passwd-“lab123”) ...
Click the Exhibit button.
>>> print(hardware_count)
{`MX960':10, `SRX300': 22, `QFX5100': 4}
Referring to the exhibit, what is the correct method to retrieve the value associated only with "MX960"?
A. hardware_count.keys()
B. hardware_count.values()
C. hardware_count[0]
D. hardware_count["MX960"]
Click the Exhibit button.
{ "interface": "ge-0/0/1.0" }
Which type of data is contained in the key of the JSON object shown in the exhibit?
A. string
B. name
C. integer
D. interface
Click the Exhibit button.
Referring to the exhibit, what is the output from the print(x) line?
A. [`b', `c']
B. [`b', `c', `d']
C. [`a', `b', `c']
D. [`a', `b']
In Python, my_list = [1, 2, 3] is an example of which type of operation?
A. membership
B. comparison
C. assignment
D. bitwise
Click the Exhibit button.
You need to translate the configuration shown in the exhibit into a PyEZ RPC call. Which line shows the proper PyEZ syntax?
A. dev.rpc.get_route_information(table="inet.0")
B. dev.rpc.get-route-information(table="inet.0")
C. dev.rpc.get_route_information:table="inet.0"
D. dev.rpc.get-route-information:table="inet.0"
What are three elements of Infrastructure as Code (IaC)? (Choose three.)
A. code review
B. integration
C. flow
D. feedback
E. version control
Which API does the Junos CLI use to modify the configuration database?
A. REST API
B. XML API
C. JET API
D. RPC API
Which two tools should be used to test REST APIs? (Choose two.)
A. curl
B. Puppet
C. Chef
D. Postman