exam questions

Exam JN0-420 All Questions

View all questions & answers for the JN0-420 exam

Exam JN0-420 topic 1 question 17 discussion

Actual exam question from Juniper's JN0-420
Question #: 17
Topic #: 1
[All JN0-420 Questions]

Click the Exhibit button.
Exhibit:



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

  • A. template
  • B. dictionary
  • C. string
  • D. list
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference: https://www.juniper.net/documentation/en_US/cso3.1/topics/task/operational/cd-config-template-working-config-designing.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BiaxIde
Highly Voted 4 years, 8 months ago
Correct answer is C: 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'>
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago