exam questions

Exam SY0-601 All Questions

View all questions & answers for the SY0-601 exam

Exam SY0-601 topic 1 question 313 discussion

Actual exam question from CompTIA's SY0-601
Question #: 313
Topic #: 1
[All SY0-601 Questions]

Which of the following can reduce vulnerabilities by avoiding code reuse?

  • A. Memory management
  • B. Stored procedures
  • C. Normalization
  • D. Code obfuscation
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
ApplebeesWaiter1122
Highly Voted 2 years, 1 month ago
Selected Answer: D
Code obfuscation is a technique used to make code more difficult to understand or reverse engineer. It involves transforming the code in a way that retains its functionality but makes it harder for an attacker to analyze and exploit any vulnerabilities present. One aspect of code obfuscation is to avoid code reuse, where common code patterns or functions are deliberately modified or transformed to make them less recognizable.
upvoted 15 times
...
workhard
Highly Voted 2 years, 2 months ago
From Mike Meyers Guide: "The downside to code reuse is that bad actors know that Web apps rely on it. These libraries must run in memory to work for the app. Bad actors know they’re running and try to get access to this code and can cause lots of trouble if they do get access. Over the years, attacks have appeared that exploit the reused code, exposing previously unknown vulnerabilities. The IT industry’s response to these attacks varies from the no-execute (NX) bit, built into every CPU, to specialized tools designed to hide, disable, or scramble the reused code." Might help to shed some light.
upvoted 9 times
...
shady23
Most Recent 1 year, 1 month ago
Selected Answer: D
D. Code obfuscation
upvoted 1 times
...
BD69
1 year, 4 months ago
Trick question to trip up programmers. Code reuse, in this case, is not about DRY (don't repeat yourself) nor about a dev team sharing code, but rather regarding reverse engineering of code. The term "Code Reuse" is used incorrectly by the exam author. It should be code exposure or reverse engineering. If you do think like a developer, you should see right away that A,B & C have nothing to do with code reuse (stored procs don't actually prevent code reuse in the software sense - think about it).
upvoted 6 times
BD69
1 year, 4 months ago
- so all you're left with is D
upvoted 2 times
...
...
kewokil120
1 year, 4 months ago
Selected Answer: D
Code obfuscation is a technique used to make code more difficult to understand
upvoted 1 times
...
Soleandheel
1 year, 7 months ago
B. Stored procedures... is the correct answer Stored procedures are database programs that are typically written in SQL and stored in the database itself. They encapsulate and execute specific functions or operations on the data within the database. One of the advantages of using stored procedures is that they can reduce vulnerabilities related to code reuse because they limit direct access to the database and its data. Instead of writing the same SQL code multiple times in different parts of the application, developers can encapsulate it within a stored procedure. This reduces the likelihood of SQL injection attacks and other security vulnerabilities associated with code duplication and reuse. Don't just blindly go with what the majority chooses on these answers. Do your own research. Stored procedures is certainly the right answer not Code obfuscation.
upvoted 1 times
ThaKyd88
1 year, 7 months ago
A stored procedure is a set of Structured Query Language (SQL) statements with an assigned name, which are stored in a relational database management system (RDBMS) as a group, so it can be REUSED and shared by multiple programs. I don't believe its stored procedures.
upvoted 2 times
...
BD69
1 year, 4 months ago
SPs don't prevent code reuse at all. They just run code on the back end specific to querying a database. A bad SQL dev might have redundant SPs (I've seen violation of the DRY principle hundreds of times on the SQL end, inside SPs and duplicated SPs that could be condensed into a single SP)
upvoted 1 times
...
...
Afel_Null
1 year, 8 months ago
Selected Answer: B
Stored procedures are basically functions. In programming, if any piece of code is going to be used more than once, you're supposed to wrap it in a function, and then call the function, instead of the same code. Code obfuscation is contrary to one of the coding practices - make your code as clean as possible, so that other developers don't waste time trying to learn what does each function do.
upvoted 2 times
Soleandheel
1 year, 7 months ago
You're very correct. B is the right answer. I'm surprised so many people have it wrong here. It tells you can not always trust the majority on these answers. Stored procedures is the only amswer that meets all the criteria in the question.
upvoted 1 times
...
...
workhard
2 years, 1 month ago
https://www.sciencedirect.com/science/article/pii/S0950584918301484
upvoted 2 times
...
Exlr8me
2 years, 2 months ago
Selected Answer: D
what kind of questions is this?? anyway the answer is D
upvoted 3 times
...
[Removed]
2 years, 4 months ago
Selected Answer: D
I checked that option too, but that doesn't mean that developers from the same team can't use the code. In any case, it is the closest alternative to what I think.
upvoted 1 times
...
hsdj
2 years, 4 months ago
Selected Answer: D
D. code obfuscation seems the best way to do it
upvoted 1 times
...
opesy
2 years, 4 months ago
Selected Answer: D
Hmmm! D seems like it . This will ensure other programmers are unable to reuse your code thereby reducing vulnerabilities in others code. 🤔
upvoted 6 times
[Removed]
2 years, 4 months ago
I checked that option too, but that doesn't mean that developers from the same team can't use the code. In any case, it is the closest alternative to what I think.
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 ...