Activate Your Black Friday Offer: 75% Discount on Exam Bundles! Use coupon code below! - Ends in 0d 00h 00m 00s - Coupon code: 75onlydt

JN0-224 Questions and Answers

Question # 6

Which two statements are correct about the REST API?

Choose two

A.

It is considered to be stateful.

B.

It uses TFTP for transport.

C.

It is considered to be stateless.

D.

It uses HTTP for transport.

Full Access
Question # 7

Which two data serialization formats are used for automation?

Choose two

A.

NAPALM

B.

JSON

C.

NETCONF

D.

YAML

Full Access
Question # 8

Which two statements are correct about using REST API with Juniper Mist?

Choose two

A.

The API returns an XML payload.

B.

The API returns a JSON payload.

C.

It supports the HTTP PUT method.

D.

It supports the HTTP PATCH method.

Full Access
Question # 9

Which data serialization language does a REST API use?

A.

XML

B.

JSON

C.

CSV

D.

YAML

Full Access
Question # 10

You need to retrieve data from the Junos XML API. Which of the following would you use to accomplish this task?

A.

NETCONF

B.

SNMP

C.

RDP

D.

SOAP

Full Access
Question # 11

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?

A.

The Junos device does not have NETCONF over SSH enabled.

B.

The Junos device had a RPC execution timeout.

C.

The Junos device tried to connect to the backup routing-engine.

D.

The Junos device is broken and needs to be replaced.

Full Access
Question # 12

Referring to the exhibit below, which two XPath expressions will select all user nodes?

Choose two

XML

< system >

< host-name > router < /host-name >

< root-authentication >

< encrypted-password > $5$qpeLtgny$CxpyDUY...agdfxb7cjBKtX6 < /encrypted-password >

< /root-authentication >

< login >

< user >

< name > user1 < /name >

< uid > 2001 < /uid >

< class > super-user < /class >

< authentication >

< encrypted-password > $5$mKl4WHYI$...j9So160BGEJXaCCPJGy. < /encrypted-password >

< /authentication >

< /user >

< user >

< name > user2 < /name >

< uid > 2002 < /uid >

< class > super-user < /class >

< authentication >

< encrypted-password > $5$JZDcAQ12$...E23D8fk9gmZNa6kTEtz70 < /encrypted-password >

< /authentication >

< /user >

< user >

< name > user3 < /name >

< uid > 2003 < /uid >

< class > super-user < /class >

< authentication >

< encrypted-password > $5$JZDcAQ12$...X23d8fK9gmZNa6kActd6. < /encrypted-password >

< /authentication >

< /user >

< /login >

< /system >

A.

/system/login/user

B.

/user

C.

//user

D.

@user

Full Access
Question # 13

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?

A.

< name >

B.

< dhcp-local-server >

C.

< group >

D.

< interface >

Full Access
Question # 14

Which Python operator is used to compare two objects for inequality?

A.

!=

B.

&

C.

%

D.

=

Full Access
Question # 15

Which two statements about the Junos REST API Explorer are correct?

Choose two

A.

It is enabled by default.

B.

You must configure a port on the Junos device to connect.

C.

It has to be manually enabled.

D.

You do not need to configure a port on the Junos device to connect.

Full Access
Question # 16

Click the Exhibit button.

JSON

{

"configuration" : {

"@" : {

"junos:commit-seconds" : "1615325087",

"junos:commit-localtime" : "2024-03-09 14:24:47 MST",

"junos:commit-user" : "user"

},

"routing-options" : {

"static" : {

"route" : [

{

"name" : "0.0.0.0/0",

"next-hop" : ["10.10.10.1", "10.10.20.1"]

}

]

}

}

}

}

With reference to the exhibit, what is the data type of the next-hop statement?

A.

YAML sequence

B.

JSON array

C.

YAML mapping

D.

JSON object

Full Access
Question # 17

Which statement is correct about Python variables that are defined in the global namespace?

A.

Global variables are stored in disk storage and can be used by any Python script executed on this device.

B.

Global variables can only be referenced in the module's code within the global namespace.

C.

Global variables must have the data type explicitly declared.

D.

Global variables can be referenced in any portion of the module's code.

Full Access
Question # 18

Which two statements about Python tuples are correct?

Choose two

A.

The values in a tuple can be modified at any time after they have been created.

B.

Tuples are defined using square brackets.

C.

The values in a tuple cannot be modified once they have been created.

D.

Tuples are defined using parentheses.

Full Access
Question # 19

Which two automation tools make use of YAML?

Choose two

A.

JSNAPy

B.

PyEZ

C.

Junos REST API

D.

Junos REST API Explorer

Full Access