PDII Salesforce Certified Platform Developer II (Plat-Dev-301) Free Practice Exam Questions (2025 Updated)
Prepare effectively for your Salesforce PDII Salesforce Certified Platform Developer II (Plat-Dev-301) certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2025, ensuring you have the most current resources to build confidence and succeed on your first attempt.
A developer is creating a Lightning web component that displays a list of records in a lightning-datatable. After saving a new record to the database, the list is not updating.
What should the developer change in the code above for this to
happen?
A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they are saved and then make a callout to a RESTful web service. The web service can only receive, at most, one record per call.
What should a developer do to implement these requirements?
Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers’ sales representatives can edit the orders on the same Visualforce page.
What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?
An Apex trigger creates an order co record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders.
What is the optimal technique for 2 developer to troubleshoot this?
An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary’ to control this feature.
The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.
What is the optimal way to implement these requirements?
Universal Containers wants to notify an external system, in the event that an unhandled exception occurs, by publishing a custom event using Apex.
What is the appropriate publish/subscribe logic to meet this requirement?
A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity
to be considered high value is an amount greater than or equal to $1,000,000. However, this criteria value can change over time.
There is a new requirement to also display high value opportunities in a Lightning web component.
Which two actions should the developer take to meet these business requirements, and also prevent the business logic that obtains the high value opportunities from
being repeated in more than one place?
Choose 2 answers
A developer needs to add code to a Lightning web component's configuration file so the component only renders for a desktop size form factor when on a record page.
What should the developer add to the component's record page target configuration to meet this requirement?
A)
B)
C)
D)
Which technique can run custom logic when a Lightning web component is loaded?
Given the following containment hierarchy:
What is the correct way to communicate the new value of a property named ‘’passthrough’’ to my-parent-component if the property is defined within my-child-component?
A)
B)
C)
D)
A developer is tasked with creating a Lightning web component that is responsive on various devices,
Which two components should help accomplish this goal?
Choose 2 answers
What are three reasons that a developer should write Jest tests for Lightning web components?
Choose 3 answers
An Apex class does not achieve expected code coverage. The testsetup method explicitly calls a method In the Apex class..
How can the developer generate the code coverage?
A developer has a Visualforce page that automatically assigns ewnership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails.
What can cause this problem?
An Apex trigger and Apex class increment a counter, Edit __C, any time the Case is changed.
A)
B)
C)
D)
Consider the following code snippet:
The Apex method is executed in an environment with a large data volume count for Accounts, and the query is performing poorly.
Which technique should the developer implement to ensure the query performs optimally, while preserving the entire result set?
A company wants to incorporate a third-party weh service to set the Address fields
when an Account is inserted, if they have not already been set.
What is the optimal way to achieve this?
Which statement is true regarding savepoints?
A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints, SP1, SP2, and 5P3 {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 2 roll back to SP3 to continue with final execution. However, when the roll back to SP3 is called, a Funtime error occurs.
Why does the developer receive a runtime error?
Users report that a button on a custom Lightning web component (LWC) is not
saving the data they enter. The button looks to be clicked, but the LWC simply sits
there, seemingly doing nothing.
What should the developer use to ensure error messages are properly displayed?