Salesforce Exam Questions

How should one prevent soql injection when using dynamic soql?

How should one prevent soql injection when using dynamic soql? (No Answer)

A.
XMLStreanWriter, XMLStreamReader

B.
Messaging.InboundEmailHandler

C.
with sharing keyword

D.
Utilize the String.escapeSingleQuotes(string) method