Salesforce Exam Questions

How should one prevent soql injection when using dynamic soql?

How should one prevent soql injection when using dynamic soql?

A.
Database class method

B.
code contained in a trigger

C.
Utilize the String.escapeSingleQuotes(string) method

D.
with sharing keyword