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.
The Lightning Component allows users to click a button to save their changes and then redirects them to a different page. Currently, when the user hits the Save button, the records are getting saved, but they are not redirected. Which three techniques can a developer use to debug the JavaScript? 1
A developer wrote a class named AccountHistoryManager that relies on field history tracking. The class has a static method called getAccountHistory that takes in an Account as a parameter and returns a list of associated AccountHistory object records. The following test fails:
Java
@isTest
public static void testAccountHistory(){
Account a = new Account(name = ' test ' );
insert a;
a.name = a.name + ' 1 ' ;
update a;
List < AccountHistory > ahList = AccountHistoryManager.getAccountHistory(a);
System.assert(ahList.size() > 0);
}
What should be done to make this test pass?
The use of the transient keyword in Visualforce page helps with which performance issue?
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?
A developer wrote the following method to find all the test accounts in the org:
Java
public static Account[] searchTestAccounts() {
List < List < SObject > > searchList = [FIND ' test ' IN ALL FIELDS RETURNING Account(Name)];
return (Account[]) searchList[0] ;
}
However, the test method below fails.
Java
@isTest
public static void testSearchTestAccounts() {
Account a = new Account(name= ' test ' );
insert a;
Account [] accounts = TestAccountFinder.searchTestAccounts();
System.assert(accounts.size() == 1);
}
What should be used to fix this failing test?
A developer is tasked with creating a Lightning web component that is responsive on various devices. Which two components should help accomplish this goal?
A company has an Apex process that makes multiple extensive database operations and web service callouts. The database processes and web services can take a long time to run and must be run sequentially. How should the developer write this Apex code without running into governor limits and system limitations? 123
Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded?
A developer is building a complex commission calculation engine in Apex that is called from an Opportunity trigger. During QA it was reported that the calculations are incorrect. The developer has representative test data and passing test methods in their developer sandbox. Which three tools or techniques could the developer use to execute the code and pause it at key lines to visually inspect values of various Apex variables?
Which statement is true regarding savepoints?
