Exam H12-891_V1.0 Topic 1 Question 135 Discussion
Actual exam question for Huawei's H12-891_V1.0 exam
Question #: 135
Topic #: 1
Question #: 135
Topic #: 1
An engineer needs todownload the configuration file vrpcfg.cfgto a local device throughSFTP, rename the configuration file to backup.cfg, and upload it to thedefault directory of the device.
The configuration file is located at /vrpcfg.cfg (default directory of the remote device), and the local directory is C:\.
Which of the followingPython Paramikocode lines can implement the required operations?
The configuration file is located at /vrpcfg.cfg (default directory of the remote device), and the local directory is C:\.
Which of the followingPython Paramikocode lines can implement the required operations?
Suggested Answer: B Vote an answer
Comprehensive and Detailed Explanation:
#Thecorrect sequence of operations:
Download the file from remote device(/vrpcfg.cfg) # Store as C:\backup.cfg.
Upload the renamed file (backup.cfg) back to the remote device.
#Breaking Down the Correct Option (B):
#sftp.get('/vrpcfg.cfg', r'C:\backup.cfg')# Downloads vrpcfg.cfg from the remote device and renames it backup.
cfg in C:\.
#sftp.put(r'C:\backup.cfg', '/')# Uploads backup.cfg back to the remote device.
#Reference:Huawei HCIE Datacom - Python SFTP File Transfer Using Paramiko
#Thecorrect sequence of operations:
Download the file from remote device(/vrpcfg.cfg) # Store as C:\backup.cfg.
Upload the renamed file (backup.cfg) back to the remote device.
#Breaking Down the Correct Option (B):
#sftp.get('/vrpcfg.cfg', r'C:\backup.cfg')# Downloads vrpcfg.cfg from the remote device and renames it backup.
cfg in C:\.
#sftp.put(r'C:\backup.cfg', '/')# Uploads backup.cfg back to the remote device.
#Reference:Huawei HCIE Datacom - Python SFTP File Transfer Using Paramiko
by Sabina at Sep 04, 2026, 05:06 AM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).