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.
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.
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).
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.
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.
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)
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.
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.
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.
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
...
...
This section is not available anymore. Please use the main Exam Page.SY0-601 Exam Questions
Log in to ExamTopics
Sign in:
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.
ApplebeesWaiter1122
Highly Voted 2 years, 1 month agoworkhard
Highly Voted 2 years, 2 months agoshady23
Most Recent 1 year, 1 month agoBD69
1 year, 4 months agoBD69
1 year, 4 months agokewokil120
1 year, 4 months agoSoleandheel
1 year, 7 months agoThaKyd88
1 year, 7 months agoBD69
1 year, 4 months agoAfel_Null
1 year, 8 months agoSoleandheel
1 year, 7 months agoworkhard
2 years, 1 month agoExlr8me
2 years, 2 months ago[Removed]
2 years, 4 months agohsdj
2 years, 4 months agoopesy
2 years, 4 months ago[Removed]
2 years, 4 months ago