PDII Web TestEngine demo

Exit VCEDump PDII Salesforce Certified Platform Developer II (Plat-Dev-301)
Question 11 of 67
0% complete
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.

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in