Q11
Multiple choice
Exhibit.
public class LeadController {
public static List<Lead> getFetchLeadList(String searchTerm, Decimal aRevenue) {
String safeTerm = '%'+searchTerm.escapeSingleQuotes()+ '%';
return [
SELECT Name, Company, AnnualRevenue
FROM Lead
WHERE AnnualRevenue >= :aRevenue
AND Company LIKE :safeTerm
LIMIT 20
];
}
}
A developer created a JavaScript function as part of a Lightning Web Component (LWC) that surfaces information about leads by imperatively calling getFetchLeadList when certain criteria are met.
What are the changes the developer should implement in the Apex class above to ensure the LWC can display data efficiently while preserving security? (Choose three)
Select all that apply.