Valid 70-486 Dumps shared by ExamDiscuss.com for Helping Passing 70-486 Exam! ExamDiscuss.com now offer the newest 70-486 exam dumps, the ExamDiscuss.com 70-486 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 70-486 dumps with Test Engine here:
You are developing an ASP.NET MVC application that uses forms authentication. The application uses SQL queries that display customer order data. Logs show there have been several malicious attacks against the servers. You need to prevent all SQL injection attacks from malicious users against the application. How should you secure the queries?
Correct Answer: C
Explanation/Reference: Explanation: SQL Injection Prevention, Defense Option 1: Prepared Statements (Parameterized Queries) The use of prepared statements (aka parameterized queries) is how all developers should first be taught how to write database queries. They are simple to write, and easier to understand than dynamic queries. Parameterized queries forcethe developer to first define all the SQL code, and then pass in each parameter to the query later. This coding style allows the database to distinguish between code and data, regardless of what user input is supplied. Prepared statements ensure that anattacker is not able to change the intent of a query, even if SQL commands are inserted by an attacker. Reference: SQL Injection Prevention Cheat Sheet