Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Salesforce Certified Platform Developer 1 (SP25)

Last Update 3 hours ago Total Questions : 204

The Salesforce Certified Platform Developer 1 (SP25) content is now fully updated, with all current exam questions added 3 hours ago. Deciding to include PDI practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our PDI exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these PDI sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Salesforce Certified Platform Developer 1 (SP25) practice test comfortably within the allotted time.

Question # 11

A Next Best Action strategy uses an Enhance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors.

What is the correct definition of the Apex method?

A.

apex

Copy

@InvocableMethod

global static List < List < Recommendation > > getLevel(List < ContactWrapper > input)

{ /*implementation*/ }

B.

apex

Copy

@InvocableMethod

global Recommendation getLevel(ContactWrapper input)

{ /*implementation*/ }

C.

apex

Copy

@InvocableMethod

global List < List < Recommendation > > getLevel(List < ContactWrapper > input)

{ /*implementation*/ }

D.

apex

Copy

@InvocableMethod

global static List < Recommendation > getLevel(List < ContactWrapper > input)

{ /*implementation*/ }

Question # 12

Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values.

What can the developer use to accomplish this?

A.

Validation rules

B.

Apex triggers

C.

Record triggered flows

D.

Quick Actions

Question # 13

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with

Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see

Accounts they do not own.

What should the developer use to enforce sharing permissions for the currently logged in user while using the custom search tool?

A.

Use the with sharing keyword on the class declaration.

B.

Use the without sharing keyword on the class declaration.

C.

Use the userInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.

D.

Use the schema describe calls to determine if the logged-in user has access to the Account object.

Question # 14

Which two events need to happen when deploying to a production org?

Choose 2 answers

A.

All custom objects must have visibility set to a value other than in Development.

B.

All Apex code must have at least 75% test coverage.

C.

All triggers must have some test coverage

D.

All Visual flows must have at least 1% test coverage.

Question # 15

The Job_Application__c custom object has a field that is a master-detail relationship to the Contact object, where the Contact object is the master.

As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is ' Technology ' , while also retrieving the Contact ' s Job_Application__c records.

Based on the object ' s relationships, what is the most efficient statement to retrieve the list of Contacts?

A.

[SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Accounts.Industry = ' Technology ' ]

B.

[SELECT Id, (SELECT Id FROM Job_Application__c) FROM Contact WHERE Accounts.Industry = ' Technology ' ]

C.

[SELECT Id, (SELECT Id FROM Job_Application__c) FROM Contact WHERE Account.Industry = ' Technology ' ]

D.

[SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Account.Industry = ' Technology ' ]

Question # 16

A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable.

Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?

A.

accountRec, isDeletable()

B.

Schema,sObjectType,Account, isDeletable ()

C.

accuntRec, sObjectType,isDeletable()

D.

Account,isDeleteable

Question # 17

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineltem trigger.

Which method allows access to the price book?

A.

Use Test .getStandardPricebookid() to get the standard price book ID.

B.

Use @isTest [SeeAllData=true| and delete the existing standard price book.

C.

Use @Testvisible to allow the test method to see the standard price book.

D.

Use Test. loadData () and a static resource to load a standard price book.

Question # 18

Universal Containers hires a developer to build a custom search page to help users find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.

Which consideration should the developer be aware of when deciding between SOQL and SOSL?

Choose 2 answers

A.

SOSL is faster for text searches.

B.

SOQL is able to return more records

C.

SOQL Is faster for text searches.

D.

SOSL is able to return more records.

Question # 19

How is a controller and extension specified for a custom object named " Notice " on a Visualforce page?

A.

apex:page standardController= " Notice_c " extensions= " myControllerExtension " ”

B.

apex:page controllers= " Notice_c, myContcollerExtension "

C.

apex:pege=Notice extends= " myControllerExtension”

D.

apex:page controller= " Notice_c " extensions= " myControllerExtension "

Question # 20

Consider the following code snippet:

apex

CopyEdit

public class with sharing AccountsController {

@AuraEnabled

public List < Account > getAllAccounts(){

return [SELECT Id, Name, Industry FROM Account];

}

}

Apex Test Class Snippet:

apex

CopyEdit

@isTest

private class with sharing AccountsController_Test {

@testSetup

private static void makeData(){

User user1 = [SELECT Id FROM User WHERE Profile.Name = ' System Administrator ' AND isActive = true LIMIT 1];

User user2 = [SELECT Id FROM User WHERE Profile.Name = ' Standard User ' AND UserName = ' test@test.com ' AND isActive = true LIMIT 1];

TestUtils.insertAccounts(10, user1.Id);

TestUtils.insertAccounts(20, user2.Id);

}

@isTest

private static void getAllAccounts_StandardUser_Test(){

List < Account > result = AccountsController.getAllAccounts();

System.assertEquals(20, result.size());

}

}

When the test class runs, the assertion fails.

Which change should the developer implement in the Apex test method to ensure the test method executes successfully?

A.

Query the Administrator user into memory and enclose lines 15 and 16 within the System.runAs(user); method.

B.

Query the Standard User into memory and enclose lines 15 and 16 within the System.runAs(); method.

C.

Add @isTest(seeAllData=true); to line 12 and enclose lines 15 and 16 within Test.startTest(); and Test.stopTest();.

D.

Add System.runAs(user); to line 14 and enclose line 15 within Test.startTest(); and Test.stopTest();.

Go to page: