Platform-Developer-I Dumps

Platform-Developer-I Free Practice Test

Salesforce Platform-Developer-I: Platform Developer I

QUESTION 1

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 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

Correct Answer: AB

QUESTION 2

Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application may apply for more than one job.
What should a developer implement to represent that an applicant has applied for a job?

Correct Answer: A

QUESTION 3

A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/
} } Which is the correct implementation?

Correct Answer: A

QUESTION 4

Which two settings must be defined in order to update a record of a junction object? Choose 2 answers

Correct Answer: BC

QUESTION 5

A developer created these three Rollup Summary fields in the custom object, Project__c:
Platform-Developer-I dumps exhibit
The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project.
Which should the developer use to implement the business requirement in order to minimize maintenance overhead?

Correct Answer: B