Official Bank 0/167

Salesforce Certified Platform Developer II (PDII) Exam (Plat-Dev-301) - Salesforce Exam Questions

Last updated on June 20, 2026

97% Exam Compliance
167 Total Questions
1
Question
A developer is asked to develop a new AppFxchange application. A feature of the program creates Survey records when a Case reaches a certain stage and is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers.

What should the developer use to store and package the custom configuration settings for the app?
Options
A Custom metadata
B Custom settings
C Custom objects
D Custom labels
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of all the test data that is needed to perform the tests. What should the developer
do to speed up test execution?
Options
A Ensure proper usage of test data factory in all test methods.
B Define a method that creates test data and annotate with @createData.
C Define a method that creates test data and annotate with @testSetup.
D Reduce the amount of test methods in the class.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
Universal Containers is using a custom Salesforce application to manage customer support cases. The support team needs to collaborate with external partners to resolve certain cases. However, they want to control the visibility and access to the cases shared with the external partners. Which Salesforce feature can help achieve this requirement?
Options
A Apex managed sharing
B Criteria-based sharing rules
C Role hierarchy
D Sharing sets
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
A company has a Lightning page with many Lightning Components, some that cache reference dat
Options
A Salesforce Lightning Inspector Event Log tab
B Salesforce Lightning Inspector Actions tab
C Salesforce Lightning Inspector Transactions tab
D Salesforce Lightning Inspector Storage tab
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
A developer wrote the following method to find all the test accounts in the org:

Exhibit

What should be used to fix this failing test?
Options
A @testsetup method to set up expected data
B @isTest (SeeAllData=true) to access org data for the test
C Test. fixsdSsarchReaulta [) method to set up expected data
D Teat.loadData to set up expected data
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.