Pass4itsure > Juniper > Automation and DevOps > JN0-221 > JN0-221 Online Practice Questions and Answers

JN0-221 Online Practice Questions and Answers

Questions 4

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”) ...

Buy Now
Questions 5

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"]

Buy Now
Questions 6

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

Buy Now
Questions 7

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']

Buy Now
Questions 8

What is an example of correct XML syntax?

A. vMX1

B. vMX1

C. vMX1

D. vMX1

Buy Now
Questions 9

In Python, my_list = [1, 2, 3] is an example of which type of operation?

A. membership

B. comparison

C. assignment

D. bitwise

Buy Now
Questions 10

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"

Buy Now
Questions 11

What are three elements of Infrastructure as Code (IaC)? (Choose three.)

A. code review

B. integration

C. flow

D. feedback

E. version control

Buy Now
Questions 12

Which API does the Junos CLI use to modify the configuration database?

A. REST API

B. XML API

C. JET API

D. RPC API

Buy Now
Questions 13

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

A. curl

B. Puppet

C. Chef

D. Postman

Buy Now
Exam Code: JN0-221
Exam Name: Automation and DevOps, Associate
Last Update: Nov 28, 2024
Questions: 63
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99