Loading provider exams...
↑
JN0-221 Practice Exam — Free Juniper Certification Prep
Join Us Among the Stars Sign Up & unlock 100% of Exam Questions
63 Practice Questions
3 Study Modes
Free
View exam details › Topic All Topics
Sort Question Number
Question 1 Python/PyEZ Report a problem Save question Ask AstroTutor
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" Show Answer
Question 2 NETCONF/XML API Report a problem Save question Ask AstroTutor
Question 3 Data Serialization Report a problem Save question Ask AstroTutor
Question 4 Data Serialization Report a problem Save question Ask AstroTutor
Question 5 Data Serialization Report a problem Save question Ask AstroTutor
What is the default port for NETCONF connections over SSH?
What are two popular methods of data serialization? (Choose two.)
A Python B JSON C SLAX D YAML Show Answer As part of an application to manage network devices, you must query hundreds of network devices and return the unique set of IP prefixes blocked by configured firewall filters. To accomplish this task, you will require a mutable data type that contains unordered, unique elements.
Which Python data type will fulfill these requirements?
A dictionaries B lists C tuples D sets Show Answer What is a valid JSON object?
A "hostname:vmx-1" B { "hostname": "vmx-1"} C ["vmx-1:172.25.11.1"] D {"vmx-1", "172.25.11.1"} Show Answer
Question 6 Python/PyEZ Report a problem Save question Ask AstroTutor
Question 7 Python/PyEZ Report a problem Save question
Question 8 REST API Report a problem Save question
Question 9 Data Serialization Report a problem Save question
Question 10 Python/PyEZ Report a problem Save question
Question 11 NETCONF/XML API Report a problem Save question
Question 12 REST API Report a problem Save question
Question 13 Data Serialization Report a problem Save question
Question 14 NETCONF/XML API Report a problem Save question
Question 15 Junos Automation Stack and DevOps Concepts Report a problem Save question
Question 16 Data Serialization Report a problem Save question
Question 17 REST API Report a problem Save question
Question 18 Junos Automation Stack and DevOps Concepts Report a problem Save question
Question 19 Data Serialization Report a problem Save question
Question 20 Python/PyEZ Report a problem Save question
Question 21 NETCONF/XML API Report a problem Save question
Question 22 Data Serialization Report a problem Save question
Question 23 REST API Report a problem Save question
Question 24 Junos Automation Stack and DevOps Concepts Report a problem Save question
Question 25 Junos Automation Stack and DevOps Concepts Report a problem Save question Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ad Want a break from the ads?
Become a Supporter and enjoy a completely ad-free experience, plus unlock Learn Mode, Exam Mode, AstroTutor AI, and more.
Go ad-free
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
Ask AstroTutor
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") ... Show Answer 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"] Show Answer You are using the curl tool to include multiple RPCs in a REST API request.
Which HTTP method must be used for this request?
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 Show Answer 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'] Show Answer What is an example of correct XML syntax?
A <Devices><hostname>vMX1<Devices/> B <Devices><hostname>vMX1</hostname><Devices/> C <Devices><hostname>vMX1</hostname></Devices> D <Devices><hostname>vMX1<Devices/></hostname> Show Answer Ansible playbooks are written in which format?
A XML B Python C JSON D YAML Show Answer In Python, my_list = [1, 2, 3] is an example of which type of operation?
A membership B comparison C assignment D bitwise Show Answer Which API does the Junos CLI use to modify the configuration database?
A REST API B XML API C JET API D RPC API Show Answer What are three elements of Infrastructure as Code (IaC)? (Choose three.)
A code review B integration C flow D feedback E version control Show Answer What will determine which data serialization format is used for interfacing with a system?
A programming language version B the operating system C IDE specifications D the system's API Show Answer Which curl command will successfully retrieve interface information from a Juniper device?
A curl ""u "lab:lab123" https://10.200.1.1:3443/rpc/get-interface-information -X POST B curl ""u "lab:lab123" http://10.200.1.1:3000/rpc/get-interface-information -X GET C curl ""u "lab:lab123" https://10.200.1.1:8443/rpc/get-interface-information -X GET Show Answer Which statement about using Ansible with a Junos device is correct?
A Ansible modules are executed on the control server B SFTP must be used to allow communication between the Ansible control server and the Junos device C An Ansible agent must be installed and running on the Junos device D An Ansible playbook is a set of tasks written in XML Show Answer 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 Show Answer 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 Show Answer Which Junos system process handles NETCONF automation commands?
A snmpd B eventd C mgd D jsd Show Answer Which code block shows valid YAML syntax?
A Switches: - s1 - s2 B Switches: s1 s2 C Switches: {s1, s2} D Switches: ["s1", "s2"] Show Answer What is the advantage of using the REST API?
A The REST API enables Junos devices to participate in other REST management system environments B The REST API is enabled by default on all Junos devices C By default, the REST API retrieves data from a Junos device in CSV format D By default, the REST API retrieves data from a Junos device in HTML format Show Answer Which two statements about Ansible are true? (Choose two.)
A Ansible modules only execute a change if required B By default, Ansible core modules use NETCONF to connect to the remote host C By default, Ansible playbooks are executed locally D Ansible uses an agentless architecture Show Answer Which two statements about Ansible are correct? (Choose two.)
A All Ansible host and group variables must be defined in the /etc/ansible/hosts directory B Groups can be nested and a device is allowed to participate in multiple groups C Separate host and group variable files can be used for larger environments D Groups cannot be nested and a device is allowed to participate only a single group Show Answer