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

Test Engine: $20 $80

PDF + Engine: $25 $99

PDI Practice Test


Page 11 out of 48 Pages

Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?


A. Use the Data Loader command line.


B. Create a Schedulable Apex class.


C. Schedule a report.


D. Define a Data Export scheduled job.





D.
  Define a Data Export scheduled job.

Explanation: Scheduling a Data Export job is the best way to back up all the data and attachments in a Salesforce org once a month. The Data Export job can be scheduled to run at a certain frequency so that the data can be backed up on a regular basis. This makes it easy to restore the data in case of any emergency.

A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?


A. Create a flow to execjte the query and invoke from the Lightning component


B. Write the query in a custom Lightning web component wrapper ana invoke from the Lightning component,


C. Invoke an Apex class with the method annotated as &AuraEnabled to perform the query.


D. Use the Salesforce Streaming API to perform the SOQL query.





B.
  Write the query in a custom Lightning web component wrapper ana invoke from the Lightning component,

A developer is creating a Lightning web component to showa list of sales records. The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field. How should this be enforced so that the component works for both users without showing any errors?


A. Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.


B. Use Security. stripInaccessible to remove fields inaccessible to the current user.


C. Use Lightning Data Service to get the collection of sales records.


D. Use Lightning Locker Service to enforce sharing rules and field-level security.





B.
  Use Security. stripInaccessible to remove fields inaccessible to the current user.

Universal Containers has a Visualforce page that displays a table of every Container c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with the page load errors?


A. Use JavaScript remotlng with SOQL Offset.


B. Implement pagination with a StandardSetController.


C. Implement pagination with an OffaetController.


D. Use lazy loading and a transient List variable.





B.
  Implement pagination with a StandardSetController.

Which three statements are true regarding custom exceptions in Apex? (Choose three.)


A. A custom exception class must extend the system Exception class.


B. A custom exception class can implement one or many interfaces.


C. A custom exception class cannot contain member variables or methods.


D. A custom exception class name must end with “Exception”.


E. A custom exception class can extend other classes besides the Exception class.





B.
  A custom exception class can implement one or many interfaces.

D.
  A custom exception class name must end with “Exception”.

E.
  A custom exception class can extend other classes besides the Exception class.


Page 11 out of 48 Pages
Previous