exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 305 discussion

Actual exam question from Cisco's 350-901
Question #: 305
Topic #: 1
[All 350-901 Questions]



Refer to the exhibit. A developer must review an intern's code for a script they wrote to automate backups to the storage server. The script must connect to the network device and copy the running-config to the server. When considering maintainability, which two changes must be made to the code? (Choose two.)

  • A. Refactor the code placing the "for" loop steps inside a single nc method.
  • B. The intern must use IP addresses because DNS is unreliable.
  • C. The command sent to the network device is incorrect.
  • D. The code is incorrect because the class does not have an __init__() method.
  • E. Rename the class to "ArchiveManaqer".
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

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
it0
Highly Voted 2 years, 4 months ago
As the goal is maintainability, the focus should be on reusability (A) of the code and readability of the code (E)
upvoted 8 times
...
samael666
Most Recent 5 months ago
Selected Answer: BD
the use of domains makes mandatory a correct functioning of DNS. and D we should do beacuse the connection manager is a class.
upvoted 1 times
...
Amycert
9 months ago
Selected Answer: AE
only A and E make sense
upvoted 1 times
...
ThePokemonNuzlockingMaster
1 year, 11 months ago
Selected Answer: AE
Ignoring the fact that B, C and D are all just incorrect, A and E are the only ones that refer to code maintainability. A and E are 100% correct
upvoted 3 times
...
sandotxang
2 years, 2 months ago
Selected Answer: AE
As question is looking for "maintainability" should be A and E - Refactor the code placing the “for” loop steps inside a single nc method - Rename the class to "ArchiveManaqer".
upvoted 3 times
...
xChdjdufurpew
2 years, 3 months ago
The command is correct. I just tested it. C is not a valid option.
upvoted 3 times
...
pedromarase
2 years, 4 months ago
I'd go for A - D
upvoted 3 times
pedromarase
2 years, 4 months ago
nope, go for C&D
upvoted 1 times
...
...
[Removed]
2 years, 5 months ago
Selected Answer: AC
I think A & C are more correct.
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 ...