Exam style questions across every PDII domain
Last Update 3 days ago
Total Questions : 161
Start with our free PDII practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real Developers exam. Each PDII exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your Salesforce weak domains, see where you're losing marks, and build a focused study plan in minutes.
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?
