Go Back on PDII Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

PDII Practice Test


Page 3 out of 39 Pages

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


A developer created a Lightning web component that uses a lightning-record-edit-form 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.

What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously with minimal JavaScript intervention?


A. Try/catch/finally block


B. External JavaScript library


C. Validation rules


D. Apex trigger





B.
  External JavaScript library


Instead of waiting to send emails to support personnel directly from the finish method of a batch Apex process , Universal Containers wants to notify an external system in the event that an unhandled exception occurs. What is the appropriate publish/subscribe logic to meet this requirement?


A. Publish the error event using the Eventbus. publish () method.


B. No publishing is necessary. Have the external system subscribe to the BatchapexErrorEvent.


C. Publish the error event using the addError method.


D. Publish the error event with a Flow.





B.
  No publishing is necessary. Have the external system subscribe to the BatchapexErrorEvent.


Universal Containers stores user preferences in a hierarchy custom setting, user Prefs_c, with a checkbox field, show _help co. Company-level defaults are stored at the organizational level, but may be overridden at the user level. If a user has not overridden preferences, then the defaults should be used. How should the show_Help_ c preference be retrieved for the current user?


A. Boolean show = User_Prefa_ c.getValuea().Show_Help_ co;


B. Boolean show = User Prefs c.getValues(UserInfo.getUserid{)).Show_Help c;


C. Boolean show = User_Prefs_c.getlnstance(].Show Help c;


D. Boolean show = User Prefs_c.show Melp_c;





B.
  Boolean show = User Prefs c.getValues(UserInfo.getUserid{)).Show_Help c;


A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build a single Java application that can create, retrieve, and update common object records in all of the different orgs. Which method of integration should the application use?


A. SOAP API with the Partner WSDL


B. Apex REST Web Service


C. SOAP API with the Enterprise WSDL


D. Metadata APT





A.
  SOAP API with the Partner WSDL



Page 3 out of 39 Pages
Previous