| Exam Code/Number: | Plat-Dev-201Join the discussion |
| Exam Name: | Salesforce Certified Platform Developer |
| Certification: | Salesforce |
| Question Number: | 240 |
| Publish Date: | Oct 16, 2026 |
|
Rating
100%
|
|
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat:
List<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers
A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default } | Opportunity record type, and set certain default values based on the record type before inserting the record.
How can the developer find the current user's default record type? ns
Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation.
What are two characteristics of declarative development over programmatic customization?
Choose 2 answers
The code below deserializes input into a list of Accounts.
Which code modification should be made to insert the Accounts so that field-level security is respected?
What should a developer use to fix a Lightning web component bug in a sandbox?