DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Databases Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
easy
Databases
Which of the following database queries is vulnerable to an SQL Injection attack?
A
client.query('SELECT * FROM users WHERE id = $1', [userId])
B
client.query(`SELECT * FROM users WHERE id = ${userId}`)
C
prisma.user.findUnique({ where: { id: userId } })
D
db.select().from(users).where(eq(users.id, userId))
Check Answer