Decide Fast & Get 50% Flat Discount on This Special Offer | Limited Time Offer - Ends In COUPON CODE: SAVE50%

Salesforce Plat-Dev-301 Free Exam Questions (Updated 2026)

    1. Page: 1/33
      Total 161 Questions
    Question No 1
    public class searchFeature { public static List<List<object>> searchRecords(string searchquery) { return [FIND searchquery IN ALL FIELDS RETURNING Account, Opportunity, Lead]; } } // Test Class @isTest private class searchFeature_Test { @TestSetup private static void makeData() { //insert opportunities, accounts and lead } private static searchRecords_Test() { List<List<object>> records = searchFeature.searchRecords('Test'); System.assertNotEquals(records.size(),0); } } However, when the test runs, no data is returned and the assertion fails. Which edit should the developer make to ensure the test class runs successfully?
    Choose the Choices:


    Question No 2
    A developer is asked to look into an issue where a scheduled Apex is running into DML limits. Upon investigation, the developer finds that the number of records processed by the scheduled Apex has recently increased to more than 10,000. What should the developer do to eliminate the limit exception error?
    Choose the Choices:


    Question No 3
    A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder. Which two settings should the developer configure within the xml resource file?
    Choose the Choices:


    Question No 4
    A developer is writing a Visualforce page that queries accounts in the system and presents a data
    table with the results. The users want to be able to filter the results based on up to five fields.
    However, the users want to pick the five fields to use as filter fields when they run the page. Which
    Apex code feature is required to facilitate this solution?
     
    Choose the Choices:


    Question No 5
    A Salesforce org has more than 50,000 contacts. A new business process requires a calculation that aggregates data from all of these contact records. This calculation needs to run once a day after business hours. Which two steps should a developer take to accomplish this?
    Choose the Choices:



    1. Page: 1/33
      Total 161 Questions