MySQL 8.0 Database Administrator — Question 108

Which two queries are examples of successful SQL injection attacks? (Choose two.)

Answer options

Correct answer: D, E

Explanation

The correct answers, D and E, both demonstrate SQL injection by manipulating the query logic. Option D uses a condition that always evaluates to true (1=1), allowing unauthorized access, while option E attempts to insert a new user through an altered email condition. The other options either do not reflect SQL injection or do not successfully manipulate the database in a harmful way.