exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 299 discussion

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



Refer to the exhibit. An application has been created to serve a whole enterprise. Based on use and department requirements, changes are requested on a quarterly basis. When evaluating the application design, which two actions improve code maintainability? (Choose two.)

  • A. Place all import statements on a single line at the top of the code.
  • B. Cache responses to API calls for later reuse on other code.
  • C. Replace the requests library with the http.client library in the code.
  • D. Parameterize similar code blocks inside functions and reuse within the code.
  • E. Add comments in appropriate locations to aid in understanding the code.
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

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
kirrim
6 months, 3 weeks ago
Selected Answer: DE
Agree, the requests web call and casting the result into a JSON result variable could be done as a function, since it happens in multiple places in the code. Also, there are no comments, which should be there describing what the code is doing for future readability/supportability.
upvoted 2 times
...
[Removed]
1 year, 2 months ago
Selected Answer: DE
D & E are correct.
upvoted 2 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