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 working on an integration between Salestorce and an external system. The integration requires sending a large amount of data to the external systern, which can cause long response times and timeouts. To optimize the performance and avoid timeouts, which technique should be used?
Options
A Increase the timeout limit in the callout options,
B Implement an asynchronous callout using the Continuation class,
C Use a chained batch Apex to split the data into smaller batches.
D Use the @future annotation to make the callout asynchronous.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
A Salesforce Platform Developer is leading a team that is tasked with deploying a new application to production. The team has used source-driven development, and they want to ensure that the application is deployed successfully.

What tool or mechanism should be used to verify that the deployment is successful?
Options
A Apex Test Execution
B Salesforce DX CLI
C Force.com Migration Tool
D Salesforce Inspector
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
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!

4
Question
A developer is creating a page in App Builder that will be used in the Salesforce mobile app.

Which two practices should the developer follow to ensure the page operates with optimal performance? Choose 2 answers
Select 2
Options
A Analyze the page with Performance Analysis for App Builder.
B Limit the number of Tabs and Accordion components.
C Limit 25 fields on the record detail page.
D Limit five visible components on the page.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
Consider the following code snippet:

Exhibit

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?
Options
A Annotate the method with the @Future annotation
B Break down the query into two individual queries and join the two result sets.
C Create a formula field to combine the createdDate and RecordType value, then filter based on the formula.
D Use the Database queryLocator method to retrieve the accounts.
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.