PDII Practice Questions
Salesforce Certified Platform Developer II ( Plat-Dev-301 )
Last Update 1 day ago
Total Questions : 161
Dive into our fully updated and stable PDII practice test platform, featuring all the latest Developers exam questions added this week. Our preparation tool is more than just a Salesforce study aid; it's a strategic advantage.
Our free Developers practice questions crafted to reflect the domains and difficulty of the actual exam. The detailed rationales explain the 'why' behind each answer, reinforcing key concepts about PDII. Use this test to pinpoint which areas you need to focus your study on.
How should a developer reference a third-party JavaScript library from a Lightning component?
A Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?
Consider the following code snippet:

As part of the deployment cycle, a developer creates the following test class:
When the test class runs, the assertion fails.
Which charge should the developer implement in the Apex test method to ensure the test method execute successfully?
Consider the following code snippet:

Which two steps should the developer take to add flexibility to change the endpolnt and credentials without needing to modify code?
Choose 2 answers
Universal containers needs to integrate with several external systems. The process is initiated when a record is created in Salesforce. The remote systems do not require Salesforce to wait for a response before continuing.
What is the recommended best solution to accomplish this?
A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. What should the developer ensure to correct these errors?
An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquisition) Opportunity records need to be loaded into the Salesforce instance.
When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass Loading the Opportunities, but the daily users still need to have the Contract records created.
What is the most extendable way to update the Apex trigger to accomplish this?
A company has a Lightning Page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data. What can a developer use to analyze and diagnose the problem in the Lightning Page?
Users upload .csv files in an external system to create account and contact records in Salesforce. Up to 200 records can be created at a time. The users need to wait for a response from Salesforce in the external system, but the data does not need to synchronize between the two systems.
Based on these requirements, which method should a developer use to create the records in Salesforce?
A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen.
Which functionality consideration impacts the final decision?
