Full JN0-221 Practice Test and 105 unique questions with explanations waiting just for you! [Q22-Q44]

Share

Full JN0-221 Practice Test and 105 unique questions with explanations waiting just for you!

Automation and DevOps Dumps JN0-221 Exam for Full Questions - Exam Study Guide

NEW QUESTION 22
Which two statements about the Junos PyEZ configuration module are correct? (Choose two )

  • A. The lock() method can be used to lock the configuration database.
  • B. The configuration module supports loading a rescue configuration
  • C. The configuration module does not support loading a rescue configuration
  • D. PyEZ does not support performing an exclusive lock on the configuration database.

Answer: A,B

 

NEW QUESTION 23
Exhibit.

Referring to the exhibit, where would the junos. conf file be found?

  • A. a directory located on R1
  • B. a local directory on the Ansible control machine
  • C. a directory on juniper__}uno3_conf
  • D. a directory on the device list in inventory_hostname

Answer: B

 

NEW QUESTION 24
Which statement is correct about the Junos XML API?

  • A. The API uses NETCONF for off-box automation.
  • B. The API is only executed when a configuration is committed
  • C. The API only works for on-box automation tools.
  • D. The API uses HTTPS for securing off-box automation.

Answer: A

 

NEW QUESTION 25
Why is a REST API considered stateless?

  • A. The client requests to the server do not include state information.
  • B. The REST API is an international API.
  • C. No client context is stored on the server between requests.
  • D. The state of the server is not important when making requests.

Answer: A

 

NEW QUESTION 26
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 27
Which Junos system process handles NETCONF automation commands?

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

Answer: C,D

 

NEW QUESTION 28
What are two popular methods of data serialization? (Choose two.)

  • A. YAML
  • B. Python
  • C. JSON
  • D. SLAX

Answer: A,B

Explanation:
Explanation/Reference: https://docs.python-guide.org/scenarios/serialization/

 

NEW QUESTION 29
Click the Exhibit button.

Referring to the exhibit, what is the function of the registerkey?

  • A. to set an input value for the juniper_junos_rpc module
  • B. to define a variable containing the return value from the module
  • C. to print a result to standard out
  • D. to configure a global setting for the playbook

Answer: B

 

NEW QUESTION 30
Which statement about element nodes is correct?

  • A. Only a single root element node is allowed
  • B. Element nodes cannot be nested in other element nodes
  • C. Only the root element node can contain other element nodes
  • D. Element nodes only consist of a single line of code

Answer: D

 

NEW QUESTION 31
Exhibit.

Referring to the exhibit, which statement about the Ansible Playbook is correct?

  • A. The Ansible Playbook execution will fail
  • B. The Ansible Playbook will report a syntax error
  • C. The Ansible Playbook will prompt for credentials
  • D. The Ansible Playbook will execute successfully

Answer: C

 

NEW QUESTION 32
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 33
Exhibit.

Referring to the exhibit, what is the correct method to retrieve the value associated only with ''MX960''?

  • A. hardware_count. value ()
  • B. hardware_count.keys ()
  • C. harware_count [''MX960'']
  • D. hardware_count (0)

Answer: C

 

NEW QUESTION 34
Junos PyEZ is a microframework used to operate the Junos OS using which language?

  • A. Python
  • B. Ruby
  • C. Chef
  • D. Puppet

Answer: A

Explanation:
Explanation/Reference: https://www.juniper.net/documentation/en_US/junos-pyez/topics/concept/junos-pyez- overview.html#:~:text=Junos%20PyEZ%20is%20a%20microframework,operating%20system%20(Junos%
20OS).

 

NEW QUESTION 35
Ansible playbooks are written in which format?

  • A. YAML
  • B. JSON
  • C. XML
  • D. Python

Answer: B

 

NEW QUESTION 36
Referring to the exhibit.

which two statements are correct? (Choose two.)

  • A. The configuration will be retrieved in JSON format.
  • B. The retrieved configuration will be from the Junos active configuration.
  • C. The configuration will be retrieved in XML format.
  • D. The retrieved configuration will be from the Junos candidate configuration.

Answer: B,D

 

NEW QUESTION 37
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 38
What is the purpose of an XSD file?

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

Answer: B

 

NEW QUESTION 39
Exhibit.

You are asked to create a block of code containing a list of desserts.
What would you do to correct the YAML block shown in the exhibit?

  • A. The YAML block should not have a comment
  • B. The YAML block should start with # /bash/bin.
  • C. The item - ice cream should be in quotes.
  • D. The item - cake should not be indented.

Answer: D

 

NEW QUESTION 40
What is the outcome of the Python a = b operator?

  • A. The variable are compared to determine if they have different data types.
  • B. The variables will be subtracted from each other.
  • C. The variables will be added together
  • D. The variables are compared to determine if they have the same value.

Answer: D

 

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

  • A. version control
  • B. flow
  • C. feedback
  • D. code review
  • E. integration

Answer: A,B,E

 

NEW QUESTION 42
Which statement is correct about YAML?

  • A. YAML strings must have quotation marks.
  • B. YAML is not case-sensitive.
  • C. YAML uses spaces for indentation
  • D. YAML files must start

Answer: C

 

NEW QUESTION 43
Exhibit.

You have the configuration shown in the exhibit, but are unable to access the REST API Explorer.
Which configuration is necessary to solve this problem?

  • A. Configure an IPv4 address on ge-0/0/0 0.
  • B. Configure a firewall filter to explicitly permit SSH.
  • C. Configure a secondary IPv6 address on ge-0/0/0.0.
  • D. Configure the rest service to be active on port 80.

Answer: C

 

NEW QUESTION 44
......

Authentic Best resources for JN0-221 Online Practice Exam: https://www.itexamsimulator.com/JN0-221-brain-dumps.html