exam questions

Exam JN0-220 All Questions

View all questions & answers for the JN0-220 exam

Exam JN0-220 topic 1 question 34 discussion

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

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
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference: https://media.readthedocs.org/pdf/junos-pyez/latest/junos-pyez.pdf

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
lxs
4 years, 3 months ago
D is not correct because there is no such module in pyez lib. The module responsible for scp is utils. https://www.juniper.net/documentation/en_US/junos-pyez/topics/reference/general/junos-pyez-modules-overview.html
upvoted 1 times
...
Nabeel453
4 years, 3 months ago
Whats the Right Answer ? A or D
upvoted 1 times
...
Shamos
4 years, 7 months ago
utils is a module while scp is utility under utils . So I guess answer is A
upvoted 1 times
...
osmankh1
4 years, 8 months ago
jnpr.junos.utils This is the module that contains classes like SCP and so forth for the purpose asked in this question
upvoted 1 times
...
prince200
5 years, 2 months ago
A. only utils is listed as a module. scp is a function within utils. https://www.juniper.net/documentation/en_US/junos-pyez/information-products/pathway-pages/junos-pyez-developer-guide.pdf see page 27
upvoted 2 times
...
johnelvis
5 years, 3 months ago
D is correct PyEz is package, utils is a directory under PyEz and scp is module under utils and put is a class under it. Other modules are fs, start_shell, sw,config & ftp https://junos-pyez.readthedocs.io/en/latest/jnpr.junos.utils.html#module-jnpr.junos.utils.scp
upvoted 2 times
...
gastonreppeto77
5 years, 4 months ago
Junos PyEZ Developer Guide -- utils is a MODULE-- Includes configuration utilities, file system utilities, shell utilities, software installation utilities, and secure copy utilities. The utils module defines submodules and classes that handle software installation, file system and copy operations, and configuration management. -- scp is a CLASS of utils MODULE : You can use the Junos PyEZjnpr.junos.utils.scp.SCP class to secure copy (SCP) files between the local host and a device running Junos OS. The SCP utility is used to conjunction with :class:`jnpr.junos.utils.sw.SW` when transferring the Junos image to the device. https://www.juniper.net/documentation/en_US/junos-pyez/information-products/pathway-pages/junos-pyez-developer-guide.pdf https://junos-pyez.readthedocs.io/en/latest/_modules/jnpr/junos/utils/scp.html#SCP https://www.juniper.net/documentation/en_US/junos-pyez/topics/reference/general/junos-pyez-modules-overview.html
upvoted 4 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