PDII Exam Questions

Total 193 Questions


Last Updated On : 16-Jan-2025

A developer is asked to replace the standard Case creation screen with a custom screen that takes users through a wizard before creating the Case. The org only has users running Lightning Experience. What should the developer override the Case New Action with to satisfy the requirements?


A. Lightning Page


B. Lightning Record Page


C. Lightning Component


D. Lightning Flow





C.
  Lightning Component

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?


A. Define a method that creates test data and annotate with @testSetup.


B. Define a method that creates test data and annotate with @createData.


C. Ensure proper usage of test data factory in all test methods.


D. Reduce the amount of test methods in the class.





A.
  Define a method that creates test data and annotate with @testSetup.

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?


A. Turn off triggers, flows, and validations when running tests.


B. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method,


C. Move the prerequisite reference data setup to a @testSetup method in the test class.


D. Move the prerequisite reference data setup to the constructor for the test class.





C.
  Move the prerequisite reference data setup to a @testSetup method in the test class.

A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called rsutils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library, Which statement properly loads the static resource within the LWC?


A. import jsUtilities from ‘@salesforce/rescurceUr1/jaUtiles’;


B. const jsUtilivy = SA.get{'SResource.isUtils');


C. impore {jsUtilities} from ‘@salasforce/resourceUrl/jsUtils’;





A.
  import jsUtilities from ‘@salesforce/rescurceUr1/jaUtiles’;

Consider the queries in the options below and the following Information:

* For these queries, assume that there are more than 200,000 Account records.

* These records Include soft-deleted records; that is, deleted records that are still in the Recycle Bin.

* There are two fields that are marked as External Id on the Account. These fields are customer_Number_c and ERR_Key_ s.

Which two queries are optimized for large data volumes?

Choose 2 answers


A. SELECT I4 FROM Account WHERE Name !— NULL


B. SELECT 1d FROM Accounts WHERE Name != '° AND Customer_Number_c- "ValueA’


C. SELECT ID FROM Account WHRE id IN :aListVariable


D. SELECT Id FROM Account WHERE Name != ‘ ‘AND IsDeleted = false





B.
  SELECT 1d FROM Accounts WHERE Name != '° AND Customer_Number_c- "ValueA’

C.
  SELECT ID FROM Account WHRE id IN :aListVariable

Universal Charities (UC) uses Salesforce to collect electronic donations in the form of credit card deductions from individuals and corporations. When a customer service agent enters the credit card information, it must be sent to 8 3rd-party payment processor for the donation to be processed, UC uses one payment processor for individuals and a different one for corporations. What should a developer use to store the payment processor settings for the different payment processors, so that their system administrator can modify the settings once they are deployed, if needed?


A. Custom object


B. Custom metadata


C. Hierarchy custom setting


D. List custom setting





C.
  Hierarchy custom setting

Universal Containers is leading a development team that follows the source-driven development approach in Salesforce. As part of their continuous integration and delivery (CL/CD) process, they need to automatically deploy changes to multiple environments, including sandbox and production. ‘Which mechanism or tool would best support their CI/CD pipeline in source-driven development?


A. Salesforce CLI with Salesforce DX


B. Salesforce Extensions for Visual Studio Code


C. Change Sets


D. Ant Migration Tool





A.
  Salesforce CLI with Salesforce DX

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?


A. Use a chained batch Apex to split the data into smaller batches.


B. Implement an asynchronous callout using the Continuation class,


C. Increase the timeout limit in the callout options,


D. Use the @future annotation to make the callout asynchronous.





D.
  Use the @future annotation to make the callout asynchronous.

Universal Containers develops a Visualforce page that requires the inclusion of external JavaScript and C55 files. They want to ensure efficient loading and caching of the page. Which feature should be utilized to achieve this goal?


A. ActionFunction


B. PageBlockTable


C. Static resources


D. RemoteAction





C.
  Static resources

A developer used custom settings to store some configuration data that changes occasionally. However, tests are now Failing in some of the sandboxes that were recently refreshed. What should be done to eliminate this issue going forward?


A. Set the setting type on the custom setting to List.


B. Replace custom settings with static resources.


C. Set the setting type on the custom setting to Hierarchy.


D. Replace custom settings with custom metadata.





D.
  Replace custom settings with custom metadata.


Page 7 out of 20 Pages
Previous