Free Salesforce Platform Developer II Practice Test Questions

161 questions Updated 18-Nov-2026
Question 11 Choose 3
Refer to the following code snippet:

A developer created a JavaScript function as part of a Lightning web component (LWC) that surfaces information about Leads by wire calling geyFetchLeadList whencertain criteria are met.
Which three changes should the developer implement in the Apex class above to ensure the LWC can display data efficiently while preserving security?
(Choose 3 answers)
Question 12 Choose 1
A developer created a Lightning web component that uses a Lightning_record_edit_fom to
collect Information about Leads. Users complain that they only see one error message at a
time about their input when trying to save a Lead record.
Which best practice should the developer use to perform the validations on more than one
held, thus allowing more than one error message to be displayed simultaneously?
Question 13 Choose 1
Universal Containers needs to integrate with their own, existing, internal custom web application. The web application accepts JSON payloads, resizes product images, and sends the resized images back to Salesforce. What should the developer use to implement this integration?
Question 14 Choose 2
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)
Question 15 Choose 2
A company has reference data stored in multiple custom metadata records that represent default information and delete behavior for certain geographic regions. When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact's address information. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message. Depending on company personnel resources, what are two ways to automate this?
(Choose 2 answers)
Question 16 Choose 1
Which code snippet processes records in the most memory efficient manner, avoiding governor limits such as "Apex heap size too large"?
Question 17 Choose 1
Given the following containment hierarchy:

HTML
< template >
< c-my-child-components >


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?
Question 18 Choose 1
Refer to the test method below:
Question 19 Choose 1
Which interface needs to be implemented by an Aura component so that it may be displayed in modal dialog by clicking a button on a Lightning record page?
Question 20 Choose 3
What are three reasons that a developer should write Jest tests for Lightning web components?
(Choose 3 answers)

Experience the real exam before you take it

Our timed 2026 Salesforce Platform Developer II practice test mirrors the format, number of questions and time limit of the official exam.

The #1 challenge isn't just knowing the material, it's managing the clock. The simulation builds your speed and stamina, so you walk in knowing exactly what to expect.

Take Salesforce Platform Developer II practice exam
  • Build exam stamina: stay focused and accurate for the entire duration.
  • Master time management: learn to pace yourself so you never have to rush.
  • A new test every time: a randomised set from the Salesforce Platform Developer II (Plat-Dev-301) question pool on every attempt.
  • Unlimited attempts: practice until you're 100% confident, not just once.