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

Exact2Pass Menu

Salesforce Certified Platform Developer II ( Plat-Dev-301 )

Last Update 8 hours ago Total Questions : 161

The Salesforce Certified Platform Developer II ( Plat-Dev-301 ) content is now fully updated, with all current exam questions added 8 hours ago. Deciding to include PDII practice exam questions in your study plan goes far beyond basic test preparation.

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

Question # 11

A Salesforce developer is hired by a multi-national company to build a custom Lightning application that shows employees their employment benefits and earned commissions over time. The application must acknowledge and respect the user ' s locale context for dates, times, numbers, currency, and currency symbols. When using Aura components, which approach should the developer implement to ensure the Lightning application complies with the user ' s locale? 3

A.

Use the $User global variable to retrieve the user preferences.4

B.

Create a Hierarchical custom setting to store user preferences.5

C.

Use the $Locale value provider to retrieve the user preferences.67

D.

Use the $Label global value provider.89

Question # 12

A software company uses a custom object, Defect__c, to track defects in their software. Defect__c has organization-wide defaults set to private. Each Defect__c has a related list of Reviewer__c records, each with a lookup field to User that is used to indicate that the User will review the Defect__c. What should be used to give the User on the Reviewer__c record read only access to the Defect__c record on the Reviewer__c record? 34

A.

View All on Defect__c

B.

Criteria-based sharing56

C.

Lightning web component78

D.

Apex managed sharing910

Question # 13

A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints, SP1, SP2, and SP3 (created in order), before the final execution of the process. During the final execution process, the developer has a routine to roll back to SP1 for a given condition. Once the condition is fixed, the code then calls a roll back to SP3 to continue with final execution. However, when the roll back to SP3 is called, a runtime error occurs. Why does the developer receive a runtime error?

A.

The developer has too many DML statements between the savepoints.

B.

SP3 became invalid when SP1 was rolled back.

C.

The developer should have called SP2 before calling SP3.

D.

The developer used too many savepoints in one trigger session.

Question # 14

An org has a requirement that addresses on Contacts and Accounts should be normalized to a company standard by Apex code any time that they are saved. What is the optimal way to implement this?

A.

Apex triggers on Contact and Account that normalize the address

B.

Apex trigger on Account that calls the Contact trigger to normalize the address

C.

Apex trigger on Contact that calls the Account trigger to normalize the address

D.

Apex triggers on Contact and Account that call a helper class to normalize the address

Question # 15

Which interface needs to be implemented by an Aura component so that it may be displayed in a modal dialog by clicking a button on a Lightning record page?

A.

lightning:editAction

B.

lightning:quickAction

C.

force:lightningEditAction

D.

force:lightningQuickAction

Question # 16

A developer created a class that implements the Queueable Interface, as follows:

Java

public class without sharing OrderQueueableJob implements Queueable {

public void execute(QueueableContext context) {

// implementation logic

System.enqueueJob(new FollowUpJob());

}

}

As part of the deployment process, the developer is asked to create a corresponding test class. Which two actions should the developer take to successfully execute the test class? 1

A.

Implement seeAllData=true to ensure the Queueable job is able to run in bulk mode.2

B.

Implement Te3st.isRunningTest() to prevent chaining jobs during test execution.

C.

Ensure the running user of the test class has, at least, the View All permission on the Order object.

D.

Enclose System.enqueueJob(new OrderQueueableJob()) within Test.startTest and Test.stopTest().

Question # 17

A developer created the following test method:

Java

@isTest(SeeAllData= true)

public static void testDeleteTrigger(){

Account testAccount = new Account(name = ' Test1 ' );

insert testAccount;

List < Account > testAccounts = [SELECT Id, Name from Account WHERE Name like ' Test% ' ];

System.assert(testAccounts.size() > 0);

delete testAccounts;

testAccounts = [SELECT Id, Name from Account WHERE Name like ' Test% ' ];

System.assert(testAccounts.size() == 0);

}

The developer org has five accounts where the name starts with " Test " . The developer executes this test in the Developer Console.

After the test code runs, which statement is true?

A.

There will be five accounts where the name starts with " Test " .

B.

There will be no accounts where the name starts with " Test " .

C.

There will be six accounts where the name starts with " Test " .

D.

The test will fail.

Question # 18

Which method should be used to convert a Date to a String in the current user’s locale?

A.

Date.parse

B.

String.format

C.

String.valueOf

D.

Date.format

Question # 19

Which use case can be performed only by using asynchronous Apex?

A.

Querying tens of thousands of records

B.

Making a call to schedule a batch process to complete in the future

C.

Calling a web service from an Apex trigger

D.

Updating a record after the completion of an insert1

Question # 20

Universal Containers is leading a development team that follows the source-driven development approach in Salesforce. As part of their continuous integration and delivery (CI/CD) process, they need to automatically deploy changes to multiple environments, including sandbox and production. Which mechanism or tool would best support their CI/CD pipeline in source-driven development?

A.

Salesforce CLI with Salesforce DX

B.

Change Sets

C.

Salesforce Extensions for Visual Studio Code

D.

Ant Migration Tool

Go to page: