PCES Practice Questions - OpenEDG PCES - Certified Entry-Level Security Professional With Python Exam

Question Number 5


Which is the correct way to prevent SQL injection in Python with sqlite3?
✔ Correct Answer:
cursor.execute('SELECT * FROM users WHERE name=?', (name,))