Free JN0-421 Exam Braindumps (page: 6)

Page 5 of 18

Click the Exhibit button.
Exhibit:



Referring to the exhibit, what is the type of the myConfig variable on line 17 of the Python script?

  1. template
  2. dictionary
  3. string
  4. list

Answer(s): C


Reference:

from jnpr.junos import Device from jnpr.junos.utils.config import Config from jnpr.junos.exception import *
from jinja2 import Template import yaml import sys with open('vMX-1.yml', 'r') as fh:
data = yaml.load(fh.read())

with open('test.j2', 'r') as t_fh:
t_format = t_fh.read()

template = Template(t_format)
myConfig = template.render(data)
print(type(myConfig))

python3 script.py
<class 'str'>



The <rpc-reply> XML tag is a member of which NETCONF protocol layer?

  1. Transport
  2. Content
  3. Messages
  4. Operations

Answer(s): A

Explanation:

The NETCONF protocol uses an RPC-based communication model. NETCONF peers use <rpc> and <rpc-reply> elements to provide transport-protocol-independent framing of NETCONF requests and responses.


Reference:



Click the Exhibit button.
Exhibit:



The Ansible playbook shown in the exhibit is executed against a set of Junos network devices. Each Junos device is configured with a user account in the super-user login class. The user account uses SSH-key-based authentication with a passphrase of user123.
What is the result of executing this playbook against the Junos network devices?

  1. The playbook executes, but fails with a "ConnectAuthError" due to the missing passphrase argument to the junos_get_facts module
  2. The playbook fails due to a YAML syntax error.
  3. The playbook executes and prints the version of Junos running on each network device as the value of response.facts.version
  4. The playbook executes and prints "VARIABLE IS NOT DEFINED!" as the value response.facts.version

Answer(s): C



Which statement is true about a Junos ephemeral configuration database?

  1. It can be used to trigger a commit script
  2. It can be used to reduce commit time
  3. It can be used to archive previous versions of the ephemeral configuration
  4. It can be used to validate configuration data semantics

Answer(s): B


Reference:






Post your Comments and Discuss Juniper JN0-421 exam with other Community members:

JN0-421 Discussions & Posts