Juniper JN0-220 (JNCIA-DEVNET)
Juniper JN0-220 (JNCIA-DEVNET)
Juniper JN0-220 (JNCIA-DEVNET)
Question #1
You are creating a Python data type that contains a collection of multiple ordered values. As
part of your script, you must make changes to the values that are stored in your data type.
In this scenario, which data type should you use?
A. list
B. tuple
C. dictionary
D. set
Correct Answer: A
Question #2
A. Ansible core modules for the Junos OS are developed by Ansible developers
B. Ansible Galaxy modules for the Junos OS are developed by Juniper Networks
developers
C. Ansible Galaxy modules for the Junos OS and Ansible core modules for the Junos
OS can coexist on the same control machine
D. Ansible Galaxy modules for the Junos OS and Ansible core modules for the Junos
OS cannot coexist on the same control machine
Correct Answer: AC
Question #3
Which statement is correct about Python variables once they are created?
A. A global variable can only be used by functions that are defined later
B. All variables in Python can be used by any function within the script
C. A global variable can be used by any function within the script
D. A global can only be used within the function that created it
Correct Answer: C
Reference: https://stackoverflow.com/questions/423379/using-global-variables-in-a-
function
Question #4
Question #5
Correct Answer: A
Reference: http://yaml.org/spec/spec.pdf
Question #6
Correct Answer: A
Question #7
According to the Manifesto for Agile Software Development, what is a principle of this
development practice?
Correct Answer: D
Reference: https://www.agilealliance.org/agile101/12-principles-behind-the-agile-
manifesto/
Question #8
Click the Exhibit button.
The exhibit demonstrates the output from which type of session?
A. REST API
B. Ansible
C. PyEZ
D. NETCONF
Correct Answer: D
Reference: https://www.ietf.org/mail-archive/web/netconf/current/msg05567.html
Question #9
What are two XML elements of the NETCONF Message layer? (Choose two.)
A. <lock>
B. <unlock>
C. <rpc>
D. <rpc-reply>
Correct Answer: CD
Question #10
Which two statements regarding NETCONF are true? (Choose two.)
Correct Answer: AD
Question #11
Which Python operator tests two variables to see if they contain the same value?
A. !=
B. != =
C. = =
D. =
Correct Answer: C
Reference: https://www.programiz.com/python-programming/operators
Question #12
A. It saves the current configuration as a rescue configuration only if one does not
exist
B. It prints the rescue configuration if one already exists
C. It prints the rescue configuration after it has been replaced
D. It always saves the current configuration as a rescue
Correct Answer: AB
Question #13
You are enabling HTTPS for the REST API on a Junos device. You are using a self-signed SSL
certificate and must ensure that the commit does not fail.
In this scenario, which certificate must be provided for HTTPS?
A. client certificate
B. server certificate
C. PKI certificate
D. SSH certificate
Correct Answer: B
Reference:
https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-
statement/server-certificate-edit-system-services-rest-https.html
Question #14
A. /var/chroot/rest-api/var/log
B. /var/home
C. /var/tmp
D. /var/log
Correct Answer: A
Reference:
https://www.juniper.net/documentation/en_US/junos/information-products/pathway-
pages/rest-api/rest-api.pdf
(50)
Question #15
Which feature of Ansible provides encrypted files to house sensitive data such as login
credentials and keys?
Correct Answer: B
Reference: https://docs.ansible.com/ansible/2.4/vault.html
Question #16
Correct Answer: CD
Reference:
https://www.juniper.net/documentation/en_US/junos/topics/reference/general/junos-xml-
protocol-configuration-mapping-to-json.html
Question #17
A. 3000
B. 8443
C. 3443
D. 443
Correct Answer: C
Reference:
https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-
statement/port-edit-system-services-rest.html
Question #18
Correct Answer: AC
Question #19
Correct Answer: AC
Question #20
A. The result of performing the operation once is exactly the same as the result of
performing it repeatedly without any intervening actions.
B. The result of performing the operation once is not exactly the same as the result
of performing it repeatedly without any intervening actions.
C. The result of performing the operation once will not allow the operation to be run
again without any intervening actions to correct the failure.
D. The result of performing the operation once will not allow the operation to be run
again without any intervening actions.
Correct Answer: A
Reference: https://docs.ansible.com/ansible/latest/reference_appendices/glossary.html
Question #21
What are two characteristics found in a modern DevOps environment? (Choose two.)
Correct Answer: BD
Question #22
Which two Junos platforms support the REST API? (Choose two.)
A. SRX Series
B. ACX Series
C. EX Series
D. MX Series
Correct Answer: AD
Question #23
Which Junos process handles automation requests involving the XML API, YANG, the REST
API, and SNMP functions?
A. chassisd
B. rpd
C. jsd
D. mgd
Correct Answer: D
Reference: http://overloadedbits.eu/jnics_devops_01_overview/
Question #24
A. a mapping
B. a set
C. a tuple
D. a sequence
Correct Answer: B
Question #25
Which Junos process is responsible for handling automation requests involving the JET API?
A. mgd
B. dcd
C. rpd
D. jsd
Correct Answer: D
Reference: https://www.juniper.net/documentation/en_US/junos/topics/concept/jet-
application-interaction-with-junos.html
Question #26
A. Ansible
B. Salt
C. Chef
D. Puppet
Correct Answer: B
Question #27
Your manager wants you to use Ansible to upgrade your Junos devices to the current JTAC
supported release.
Which two modules would you use to accomplish this task? (Choose two.)
A. junos_package
B. junos_config
C. juniper_junos_system
D. juniper_junos_software
Correct Answer: AD
Question #28
A. 2
B. 8
C. 0
D. 5
Correct Answer: A
Reference: https://swcarpentry.github.io/python-novice-inflammation/02-loop/
Question #29
Correct Answer: AC
Question #30
What are two components of continuous integration and continuous delivery? (Choose two.)
Correct Answer: AB
Question #31
A. HTTP
B. XML
C. JSON
D. YAML
Correct Answer: A
Reference: https://www.juniper.net/documentation/en_US/junos/information-
products/pathway-pages/rest-api/rest-api.pdf
Question #32
Which two commands would be used to view the interface configuration on a Junos device
in JSON format? (Choose two.)
Correct Answer: BC
Reference:
https://www.juniper.net/documentation/en_US/junos/topics/reference/general/junos-xml-
protocol-configuration-mapping-to-json.html
Question #33
A. REST API
B. JET API
C. SNMP API
D. XML API
Correct Answer: D
Reference: https://books.google.com.pk/books?id=tICPHiJG-
RYC&pg=PA46&lpg=PA46&dq=Junos+CLI+communicates+directly+with
+API&source=bl&ots=s3TzxrCmwx&sig=DivGQx_t9S487sz8ncOuEj8wc4c&hl=en&sa=X&ved
=2ahUKEwij3a-
I7areAhULzYUKHQ_ACEIQ6AEwBHoECAYQAQ#v=onepage&q=Junos%20CLI%20communica
tes%20directly%20with%20API&f=false
Question #34
You are asked to securely copy a software image to a remote device using a Python script.
Which PyEZ module would you use to perform these changes?
A. utils
B. config
C. ftp
D. scp
Correct Answer: D
Reference: https://media.readthedocs.org/pdf/junos-pyez/latest/junos-pyez.pdf
Question #35
A. sharing
B. automation
C. culture
D. measurement
Correct Answer: C
Question #36
Which two statements are true for Network Reliability Engineering (NRE)? (Choose two.)
Correct Answer: AC
Question #37
The REST API retrieves data from a connected device in which two formats? (Choose two.)
A. XML
B. YAML
C. binary
D. JSON
Correct Answer: AD
Reference:
https://www.juniper.net/documentation/en_US/junos/information-products/pathway-
pages/rest-api/rest-api.pdf
(13)
Question #38
Correct Answer: B
Question #39
What is Python?
Correct Answer: D
Question #40
Which statement is correct about Python?
A. The Python interpreter is written using the Visual Basic programming language
B. Python strictly enforces the use of indentation and white space
C. Python requires that you manually delete unused objects from memory
D. Python behavior is influenced by the host OS
Correct Answer: D
Question #41
The REST API uses which two protocols for transport? (Choose two.)
A. HTTPS
B. HTTP
C. TELNET
D. SSH
Correct Answer: AB
Question #42
A. XML
B. XSD
C. Ansible
D. JSON
Correct Answer: D
Reference: https://medium.com/@williamhayes/yaml-is-a-superset-of-json-it-is-explained-
in-more-detail-here-1d758a069508
Question #43
Given the <name> username </name> XML code, what is the entire string, including the
opening and closing tags, called?
A. element node
B. name node
C. text node
D. data node
Correct Answer: A
Question #44
A. SLAX
B. Python
C. YAML
D. XML
Correct Answer: B
Question #45
A. Ruby
B. Puppet
C. Chef
D. Python
Correct Answer: D
Reference: https://github.com/Juniper/py-junos-eznc
Question #46
A. [5]
B. [5,4,6]
C. [5,2,4,6]
D. [2,4,6]
Correct Answer: B
Question #47
A. objects
B. array
C. string
D. number
Correct Answer: AB
Reference: https://javaee.github.io/tutorial/jsonp001.html
Question #48
Which two commands belong to the NETCONF Operation layer? (Choose two.)
A. <commit>
B. <rpc>
C. <rpc-reply>
D. <get>
Correct Answer: AD
Question #49
A. juniper_junos_rpc
B. juniper_junos_config
C. juniper_junos_command
D. juniper_junos_facts
Correct Answer: D
Question #50
Which two statements are true about data structures? (Choose two.)
A. YAML is human readable and supports serializing arbitrary native data structures
B. YAML follows the lowest common denominator data types and requires simple
processing between different programming environments
C. JSON is language dependent, which uses conventions that are familiar to
programmers of languages like C, C++, Java, Perl, and Python
D. JSON is simple to generate and parse, though human readability is sacrificed
Correct Answer: AD
Question #51
Correct Answer: A
Reference: https://www.tutorialspoint.com/ansible/ansible_playbooks.htm
Question #52
A. XML document
B. JSON document
C. Python coding
D. Ruby coding
Correct Answer: A
Question #53
A. .tar
B. .xml
C. .xls
D. .xsd
Correct Answer: D
Reference: https://fileinfo.com/extension/xsd
Question #54
Correct Answer: A
Question #55
A. an XML command
B. a CLI command
C. a SLAX command
D. an XLST command
Correct Answer: B
Reference: https://www.juniper.net/documentation/en_US/junos/topics/topic-map/junos-
configuartion-viewing.html
Question #56
You are asked to gather interface information from a Junos device. Your environment
supports the JSON format. To determine how interface information is represented, you
decide to view all of the configured interface key-value pairs in the current Junos candidate
configuration.
In this scenario, which command will provide the information that you need?
Correct Answer: B
Question #57
Which two statements about the XML API are true? (Choose two.)
Correct Answer: CD
Question #58
You are asked to update a PyEZ script that will check for errors when connecting or loading
configurations on a Junos device.
Which two command statements should be added to the script to accomplish this task?
(Choose two.)
A. elseif statement
B. try statement
C. else statement
D. except statement
Correct Answer: BD
Reference: https://www.juniper.net/documentation/en_US/junos-
pyez/topics/example/junos-pyez-program-configuration-data-loading-from-file.html
Question #59
Which pipe command is used to show the XML response to a Junos CLI command?
A. | display xml
B. | match xml
C. | compare xml
D. | find xml
Correct Answer: A
Reference:
https://books.google.com.pk/books?id=f1oPDAAAQBAJ&pg=PA68&lpg=PA68&dq=pipe+com
mand+is+used+to+show+the+XML+response+to+a
+Junos+CLI+command&source=bl&ots=XouEscoYg2&sig=1VNyda1sh5Pt_15QrCZwv6CSv3
w&hl=en&sa=X&ved=2ahUKEwih9rvC-
KreAhVShxoKHanDCZAQ6AEwBHoECAEQAQ#v=onepage&q=pipe%20command%20is%20u
sed%20to%20show%20the%20XML%20response%20to%20a%
20Junos%20CLI%20command&f=false
Question #60
Correct Answer: C
Question #61
A. FTP
B. NETCONF
C. HTTPS
D. Telnet
Correct Answer: B
Reference: https://www.juniper.net/documentation/en_US/junos-
ansible/topics/example/junos-ansible-playbooks-device-os-installing.html
Question #62
Correct Answer: AC
Question #63
What is the correct command to enable the REST API Explorer on a Junos device?
Correct Answer: D
Reference: https://www.juniper.net/documentation/en_US/junos/topics/example/rest-api-
explorer-example.html
Question #64
Correct Answer: C
Question #65
A. Waterfall
B. Scrum
C. Kanban
D. Lean
Correct Answer: A
Reference: https://searchsoftwarequality.techtarget.com/definition/waterfall-model