Excellent JN0-221 PDF Dumps With 100% TestValid Exam Passing Guaranted [Jul-2021]
100% Pass Your JN0-221 Automation and DevOps, Associate (JNCIA-DevOps) at First Attempt with TestValid
NEW QUESTION 13
Which Python code block is an example of a context manager?
while True:
- A. ...
for host in ["vmx-1", "vmx-2"]: - B. device - Device(host-host, user-"lab", passwd-"lab123")
... - C. device - Device(host-"vmx-1", user-"lab", passwd-"lab123")
...
try: - D. device - Device(host-"vmx-1", user-"lab", passwd-"lab123")
...
except:
print("Unable to connect to the vMX1")
with Device(host="vmx-1", user="lab", passwd="lab123") as device:
Answer: D
Explanation:
Explanation/Reference: https://packetpushers.net/using-python-context-managers/
NEW QUESTION 14
Which HTTP status code indicates a response to a successful request?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION 15
Exhibit.
Referring to the exhibit, which XML XPath expression will only show the IP address XML elements?
- A. /name
- B. //name
- C. /address/name
- D. //address/name
Answer: C
NEW QUESTION 16
Which two statements are correct about Junos PyEZ Tables and Views? (Choose two.)
- A. The juniper_junos_configmodule enables the use of PyEZ Tables and Views
- B. PyEZ Tables and Views are defined using YAML
- C. The juniper_junos_tablemodule enables the use of PyEZ Tables and Views
- D. PyEZ Tables and Views are defined using CSV
Answer: B,C
Explanation:
Explanation/Reference: https://www.juniper.net/documentation/en_US/junos-ansible/topics/topic-map/junos-ansible- data-retrieving-using-junos-pyez-tables.html
NEW QUESTION 17
Which two statements about Junos PyEZ RPC(s) are correct? (Choose two.)
- A. PyEZ RPCs can be used to view only the interface configuration
- B. PyEZ RPCs return CSV data
- C. PyEZ RPCs return XML data
- D. PyEZ RPCs can be used to view the active device configuration
Answer: A,C
NEW QUESTION 18
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?
- A. user@router# show interfaces | find json
- B. user@router# show interfaces | display json
- C. user@router# show interfaces | except json
- D. user@router# show interfaces | match json
Answer: B
NEW QUESTION 19
You need an Ansible Playbook to log in to multiple devices with different login credentials. For compliance purposes, you are not allowed to prompt the user for the credentials or allow the credentials be stored in planted on the control machine for each device.
Which two actions will fulfill this task? (Choose two.)
- A. Define the credentials in a vaulted file.
- B. Define the credentials as variables in the playbook.
- C. Define the generated SSH keys to use in the playbook on the devices.
- D. Define the credentials as variables in the host's file
Answer: A,C
NEW QUESTION 20
Exhibit
Referring to the exhibit, what will be two results of this playbook before saving it to a file? (Choose two.)
- A. to retrieve the candidate configuration
- B. to include only the system/services
- C. retrieve the committed configuration
- D. to include everything but the system/services
Answer: B,C
NEW QUESTION 21
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. sets
- B. tuples
- C. lists
- D. dictionaries
Answer: B
Explanation:
Explanation/Reference: https://docs.python.org/2/library/sets.html
NEW QUESTION 22
Exhibit.
Referring to the exhibit, which XPath statement would retrieve the commit-user attribute in the candidate configuration?
- A. configuration/junos: commit-user
- B. configuration/@ junos: commit-user
- C. configuration/commit-user
- D. configuration:@ junos: commit-user
Answer: D
Explanation:
Explanation
NEW QUESTION 23
Which two programing languages would be used for on-box scripting with Junos devices? (Choose two.)
- A. Python
- B. Ansible
- C. XSLT
- D. Puppet
Answer: A,C
Explanation:
Explanation/Reference: https://eng.juniper.net/site/global/build/operating_system/junos/management_plane/ on_box_automation/index.gsp
NEW QUESTION 24
Exhibit.
Which command produces the output shown in the exhibit?
- A. user@router# show version I display xzil
- B. user@router> show version | display xml rpc
- C. user@router> show version I display json
- D. user@router> show version I display xml
Answer: D
NEW QUESTION 25
Exhibit.
Referring to the exhibit, which statement is correct?
- A. The RPC execution output is saved to a file on the Ansible control machine
- B. The RPC execution output is not saved
- C. The RPC execution output is saved to a file on R1
- D. The RPC execution output is saved to memory on R1
Answer: B
NEW QUESTION 26
What are two examples of XPath axes? (Choose two.)
- A. parent
- B. sibling
- C. grandchild
- D. grandparent
Answer: A,B
NEW QUESTION 27
Which type of data is contained in the key of the JSON object shown in the exhibit?
- A. name
- B. integer
- C. string
- D. interface
Answer: D
NEW QUESTION 28
Exhibit.
Referring to the exhibit, which two statements are correct? (Choose two )
- A. The Junos configuration database is explicitly locked and unlocked.
- B. The connection to the Junos device is automatically opened and closed.
- C. The connection to the Junos device is explicitly opened and closed.
- D. The Junos configuration database is automatically locked and unlocked.
Answer: B,D
NEW QUESTION 29
Prior to creating a Junos automation script, you want to understand the output format of a new isolated RPC calls to use in the script.
What is the provided on Junos devices to help accomplish this task?
- A. PyEZ
- B. NETCONF
- C. RPC on Demand
- D. REST API Explorer
Answer: D
NEW QUESTION 30
Which feature is used in XML to ensure that all attributes and elements have unique names?
- A. XPath
- B. namespace
- C. predicate
- D. selectors
Answer: A
NEW QUESTION 31
As part of an application to manage network devices, you must query hundreds of network devices and return the unique set of IP prefixes 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. tuples
- B. sets
- C. lists
- D. dictionaries
Answer: B
NEW QUESTION 32
You are asked to write an automation script using Python. When you execute the script, you notice that your code sends an RpcTimeoutError error.
In this scenario, what would be the reason for this error?
- A. The RPC syntax is incorrect
- B. The Juniper device rejects the connection
- C. The Juniper device took too long to reply to the RPC call
- D. The Python script was not able to connect to the Juniper device
Answer: C
NEW QUESTION 33
Ansible playbooks are written in which format?
- A. YAML
- B. JSON
- C. XML
- D. Python
Answer: B
NEW QUESTION 34
......
Trend for JN0-221 pdf dumps before actual exam: https://www.testvalid.com/JN0-221-exam-collection.html