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 7 out of 39 Pages

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. Invoke an Apex class with the method annotated as @AuraEnabled to perform the query


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


C. Create a Process Builder to execute the query and invoke from the Lightning component


D. Write the query in a custom Lightning web component wrapper and invoke from the Lightning component





D.
  Write the query in a custom Lightning web component wrapper and invoke from the Lightning component

Universal Containers implements a private sharing model for the Convention_Attendee_ _c custom object. As part of a new quality assurance effort, the company created an Event_Reviewer_ _c user lookup field on the object. Management wants the event reviewer to automatically gain Read/Write access to every record they are assigned to. What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?


A. Create a criteria-based sharing rule on the Convention Attendee custom object to share the records to a group of Event Reviewers.


B. Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.


C. Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers.


D. Create a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.





B.
  Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

Users report that a button on a custom Lightning web component (LWC) is not saving the data they enter. The button looks to be clicked, but the LWC simply sits there, seemingly doing nothing. What should the developer use to ensure error messages are properly displayed?


A. Add a try-catch block surrounding the DML statement.


B. Use the Database method with a110rNone Set to false.


C. Add the tag to the component.


D. Add JavaScript and HTML to display an error message.





D.
  Add JavaScript and HTML to display an error message.

Which statement is true regarding savepoints?


A. You can roll back to any savepoint variable created in any order.


B. Static variables are not reverted during a rollback.


C. Reference to savepoints can cross trigger invocations.


D. Savepoints are not limited by DML statement governor limits.





B.
  Static variables are not reverted during a rollback.

Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private. A lookup on the Candidate object sets an employee as an Interviewer. What should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user?


A. The record can be shared using an Apex class.


B. The record can be shared using a permission set.


C. The record can be shared using a sharing rule.


D. The record cannot he shared with the current setup.





A.
  The record can be shared using an Apex class.


Page 7 out of 39 Pages
Previous