exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 166 discussion

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

Which two statements describe advantages of static code analysis over unit tests? (Choose two.)

  • A. It checks for potential tainted data where input is not checked.
  • B. It enforces proper coding standards and style.
  • C. It performs a quick analysis of whether tests will pass or fail when run.
  • D. It checks for race conditions in threaded applications.
  • E. It estimates the performance of the code when run.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
Bloody_sausage
Highly Voted 2 years, 6 months ago
It's A and B. "Taint sources are locations in the program where data is being read from a potentially risky source, and include things like environment variables, data, files, file metadata" This is something that we look at during static code analysis along with proper coding style and standards.
upvoted 20 times
...
wunderup
Highly Voted 2 years, 12 months ago
Are A and B the correct answers? C may be wrong.
upvoted 8 times
...
Teringzooi
Most Recent 7 months, 3 weeks ago
Selected Answer: AB
Correct answer: A & B
upvoted 2 times
...
designated
8 months, 3 weeks ago
Selected Answer: AB
A and B are correct. Static code analysis complements dynamic testing to provide additional advantages: - Error detection: Static code analysis can identify hundreds of classes of bugs related to concurrency, tainted data, data flow, and static and dynamic memory. Some bugs are nearly impossible to detect with dynamic testing. - Security vulnerabilities detection: Static code analysis can detect common vulnerabilities, such as those identified by OWASP, in the code and imported libraries. - Low cost: Static code analysis may be easily automated without the overhead of writing test cases, instrumenting the code, and program execution. - Coding standards compliance: Static analysis tools can analyze source syntax and enforce coding standards. - Better source code: Static code analysis tools can identify unused code.
upvoted 3 times
...
ferock
1 year ago
Selected Answer: AB
Static code analysis complements dynamic testing to provide additional advantages: - Error detection: Static code analysis can identify hundreds of classes of bugs related to concurrency, tainted data, data flow, and static and dynamic memory. Some bugs are nearly impossible to detect with the dynamic testing. - Security vulnerabilities detection: Static code analysis can detect common vulnerabilities, such as those identified by OWASP, in the code and imported libraries. - Low cost: Static code analysis may be easily automated without the overhead of writing test cases, instrumenting the code, and program execution. - Coding standards compliance: Static analysis tools can analyze source syntax and enforce coding standards. - Better source code: Static code analysis tools can identify the unused code. Source: Cisco DEVCOR 350-901 Study Guide
upvoted 4 times
...
hartak
1 year, 3 months ago
Selected Answer: AB
I agree with Bloody_sausage and B3nd3cida.
upvoted 2 times
...
B3nd3cida
2 years ago
will go with A and B based on: https://owasp.org/www-community/controls/Static_Code_Analysis
upvoted 4 times
...
cooruyber
2 years, 6 months ago
I would go for A and B, as D sounds like being too much related to the running code.
upvoted 2 times
...
ravenfz
2 years, 7 months ago
For me B is one of the answers but though choice between A and D. Tainted data where input is not checked is not being tested by unit testing and therefore is a benefit of SCA. On the other hand, race conditions are also possible to check on SCA.
upvoted 1 times
...
conman
2 years, 8 months ago
A and D
upvoted 1 times
...
w3rkw3rk
2 years, 10 months ago
The answers are B and D
upvoted 2 times
Elvergalarga
2 years, 2 months ago
it's very difficult determine race conditions by just watching the code
upvoted 1 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