QuestionQ61
VerifiedSecure, monitor, troubleshoot Azure solutionsA Python API uses a SQL statement to retrieve a document from Azure Database for PostgreSQL. The API receives the document ID from user input, and the current implementation inserts that ID directly into the SQL statement.
You need to secure execution of the SQL statement while minimizing the chance of SQL injection. How should the current implementation be modified?
Each configuration may be used once, more than once, or not at all.
Drag & Drop
Modify the SQL statement structure.
Bind user input.
Execute the statement.
Community Discussion