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 14 out of 48 Pages

Which two events need to happen when deploying to a production org? Choose 2 answers


A. All triggers must have at least 1% test coverage.


B. All Apex code must have at least 75% test coverage.


C. All triggers must have at least 75% test coverage.


D. All test and triggers must have at least 75% test coverage combined





A.
  All triggers must have at least 1% test coverage.

B.
  All Apex code must have at least 75% test coverage.

A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects. When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?


A. @future


B. @RemoteAction


C. @InvocableMethod


D. @AuraEnaled





C.
  @InvocableMethod

What are three ways for a developer to execute tests in an org? Choose 3.


A. Bulk API


B. Tooling API


C. Setup Menu


D. Salesforce DX


E. Metadata API.





B.
  Tooling API

C.
  Setup Menu

D.
  Salesforce DX

For which three items can a trace flag be configured? Choose 3 answers


A. Process Builder


B. Visualforce


C. Apex Class


D. Apex Trigger


E. User





C.
  Apex Class

D.
  Apex Trigger

E.
  User

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?


A. Use the schema describe calls to determine if the logged-in users has access to the Account object.


B. Use the without sharing keyword on the class declaration.


C. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.


D. Use the with sharing keyword on the class declaration.





D.
  Use the with sharing keyword on the class declaration.


Page 14 out of 48 Pages
Previous