Juniper jn0-222 practice test

Automation and DevOps, Associate Exam


Question 1

You are using the curl tool to include multiple RPCs in a REST API request.
Which HTTP method must be used for this request?

  • A. GET
  • B. PUT
  • C. POST
  • D. HEAD
Answer:

C

Discussions
0 / 1000

Question 2

Exhibit.

Referring to the exhibit, which XML XPath expression will only show the IP address XML elements?

  • A. //address/name
  • B. //name
  • C. /name
  • D. /address/name
Answer:

A

Explanation:
https://www.w3schools.com/xml/xpath_syntax.asp

Discussions
0 / 1000

Question 3

While conducting an automation test, you must issue a command using the curl tool to request the
text
formatted output from the show interfaces ge-0/0/0 terse command.
In this scenario, which command would you use?
A.
curl
""u
"lab:lab123"
"
http://10.210.10.155:3000/rpc/get-interface-
information&format=text&interface-name=ge
- 0/0/0&terse="
B. curl ""u "lab:lab123" "
http://10.210.10.155:3000/rpc/[email protected]
name=ge-0/0/0?terse=
"
C.
curl
""u
"lab:lab123"
"
http://10.210.10.155:3000/rpc/get-interface-
[email protected]=text&interface-name=ge-0/0/0
? terse="
D.
curl
""u
"lab:lab123"
"
http://10.210.10.155:3000/rpc/get-interface-
[email protected]=text?interface-name=ge
- 0/0/0&terse="

Answer:

D

Discussions
0 / 1000

Question 4

Which character is used to separate multiple parameters in a single REST API call?

  • A. &
  • B. #
  • C. ?
  • D. =
Answer:

A

Explanation:
Reference:
https://www.juniper.net/documentation/en_US/junos-space-sdk/13.1/apiref/com.juniper.junos_space.sdk.help/html/reference/Commonbehav.html

Discussions
0 / 1000

Question 5

Which Junos system process handles NETCONF automation commands?

  • A. snmpd
  • B. eventd
  • C. mgd
  • D. jsd
Answer:

C

Explanation:
Reference:
https://www.oreilly.com/library/view/automating-junos-administration/9781491928875/ch01.html

Discussions
0 / 1000

Question 6

What are two components of the Waterfall model of software development? (Choose two.)

  • A. a large volume of code changes between releases
  • B. a small volume of code changes between releases
  • C. a short interval of time between releases
  • D. a long interval of time between releases
Answer:

A, D

Discussions
0 / 1000

Question 7

What is the purpose of an XSD file?

  • A. to define the allowed elements and hierarchy of an XML document
  • B. to define the scripting language of an XML document
  • C. to define the security and access permissions for an XML document
  • D. to define the shortcuts that can be used in an XML document
Answer:

A

Explanation:
Reference:
https://www.proficomms.cz/files/datasheets/Juniper/junosos.pdf
(p.4)

Discussions
0 / 1000

Question 8

Which two statements about Junos PyEZ RPC(s) are correct? (Choose two.)

  • A. PyEZ RPCs return XML data
  • B. PyEZ RPCs can be used to view only the interface configuration
  • C. PyEZ RPCs can be used to view the active device configuration
  • D. PyEZ RPCs return CSV data
Answer:

A, B

Discussions
0 / 1000

Question 9

Which two tools should be used to test REST APIs? (Choose two.)

  • A. curl
  • B. Puppet
  • C. Chef
  • D. Postman
Answer:

A, D

Discussions
0 / 1000

Question 10

Given the <name> username </name> XML code, what is the information between the opening and
closing tags called?

  • A. name node
  • B. data node
  • C. text node
  • D. element node
Answer:

D

Explanation:
Reference:
https://www.juniper.net/documentation/en_US/junos/topics/concept/junos-script-automation-xmloverview.html
https://www.ibm.com/docs/fi/db2-for-zos/11?topic=nodes-text

Discussions
0 / 1000
To page 2