A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer identifies the following method as a security threat:
ist
return Database.query('SELECT Id, FirstName, LastName FROM Contact WHERE LastName Like
s'+lastName+'s'")?;
What are two ways the developer can update the method to prevent a SOQL injection attack?
Choose 2 answers
Theron
30 days agoBen
1 months agoHannah
2 days agoFarrah
7 days agoAlesia
17 days agoCristen
1 months agoVanda
2 months agoLon
9 days agoElizabeth
11 days agoVallie
1 months agoNichelle
2 months agoLaquita
15 days agoCheryl
1 months agoJame
1 months agoStephaine
2 months agoLashandra
2 months agoLevi
2 months ago