Q1medium
A medical database contains sensitive patient data. The DBA creates the following object. What security benefit does this provide?
Topic-wise practice questions for Database Management Systems. Test your knowledge, check solutions on demand, and pace your preparation.
"SELECT * FROM Users WHERE username = '" + userInput + "';"
An attacker enters ' OR '1'='1 into the field. What is the most effective architectural way
to prevent this SQL Injection attack?
[2023-10-01 12:00] User: 'guest_acc'
[2023-10-01 12:00] Query: SELECT * FROM users WHERE id = 1; DROP TABLE