Automation and DevOps - Associate (JNCIA-DevOps) Questions and Answers
Which two are the primary automation tools handled by the management process (mgd)?
Choose two
What are two benefits of using the Junos REST API?
Choose two
Click the Exhibit button.
XML
< dhcp-local-server >
< group >
< name > jdhcp-group < /name >
< interface >
< name > fxp0.0 < /name >
< /interface >
< interface >
< name > irb.0 < /name >
< /interface >
< /group >
< /dhcp-local-server >
Referring to the exhibit, which element is the parent of the < interface > element?
Which three formats are designed for data serialization?
Choose three
In Python, what are global variables?
Which three of the following are valid REST HTTP methods?
Choose three
Which transport protocol is used for remote JET API calls?
Which statement is correct about Python variables that are defined in the global namespace?
Which two statements are valid regarding the NETCONF port in Junos?
Choose two
Click the Exhibit button.
Python
> > > with Device(host = "172.25.11.2", user = "lab", passwd = "lab123") as dev:
... dev.open()
... dev.close()
...
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/jnpr/junos/device.py", line 1347, in open
self._conn = netconf_ssh.connect(
File "/usr/local/lib/python3.8/dist-packages/ncclient/manager.py", line 168, in connect
return connect_ssh(*args, **kwds)
File "/usr/local/lib/python3.8/dist-packages/ncclient/manager.py", line 135, in connect_ssh
session.connect(*args, **kwds)
File "/usr/local/lib/python3.8/dist-packages/ncclient/transport/ssh.py", line 291, in connect
raise SSHError("Could not open socket to %s:%s" % (host, port))
ncclient.transport.errors.SSHError: Could not open socket to 172.25.11.2:830
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " < stdin > ", line 1, in < module >
File "/usr/local/lib/python3.8/dist-packages/jnpr/junos/device.py", line 1450, in __enter__
self.open()
File "/usr/local/lib/python3.8/dist-packages/jnpr/junos/device.py", line 1379, in open
raise EzErrors.ConnectRefusedError(self)
jnpr.junos.exception.ConnectRefusedError: ConnectRefusedError(172.25.11.2)
What would cause the error shown in the exhibit to occur?
Which protocol serves as the underlying protocol used by Junos PyEZ for establishing connections to devices?
You need to secure device credentials and hide the user's password input while running scripts.
Which Python module would you import for this purpose?
Which two statements about Python tuples are correct?
Choose two
Click the Exhibit button.
YAML
configuration:
protocols:
ospf:
area:
- interface:
- name: ge-0/0/0.0
- name: lo0.0
name: 0.0.0.0
export:
- share-agg
Based on the exhibit, what is the data type used for the OSPF area 'name' statement?
You are making a Junos REST API request.
In this scenario, which three data formats are supported when data is returned?
Choose three
Which two processes manage all Junos automation?
Choose two
Which two statements are correct about using REST API with Juniper Mist?
Choose two
Select the Exhibit button.
Plaintext
[edit]
user@router# show system services rest
http;
https {
server-certificate REST_certificate;
}
traceoptions {
flag lighttpd;
}
enable-explorer;
With reference to the exhibit, traceoptions have been enabled to troubleshoot an issue in which REST API requests are returning no data. In this scenario, which directory contains the traceoptions file?
Which REST API authentication method relies on usernames and passwords?