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

A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contact's Edit button and provide this functionality?


A. A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience


B. A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience


C. A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience


D. A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience





A.
  A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience

A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?


A. @BeforeTest


B. @isTest(SeeAllData=True)


C. @TestSetup


D. @PreTest





C.
  @TestSetup

What should a developer use to obtain the Id and Name of all the Leads. Accounts, and Contacts that hove the company name "Universal Containers"?


A. FIND 'Universal Containers' IN Name Fields RETURNING leadjid, name), accounted, name), contacted, name)


B. FIND Universal Containers' IN CompanyName Fietds RETURNING lead{ld. name), accounted, name), contacted, name)


C. SELECT lead(id, name). accountOd, name), contacted, name) FROM Lead, Account, Contact WHERE Name = "universal Containers'


D. SELECT Lead.id. Lead.Name, Account.Id, AccountName, Contacted, Contact.Name FROM Lead, Account, Contact WHERE CompanvName * Universal Containers'





A.
  FIND 'Universal Containers' IN Name Fields RETURNING leadjid, name), accounted, name), contacted, name)

A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records. hich two approaches can the developer use to ensure Pricing _Structure c records are available when the test class is executed? Choose 2 answers


A. Use a Test Date Factory class.


B. Use the @raTeat (seeAllData=true) annotation.


C. Use the Test. leadtear{} method,


D. Use without shering on the class declaration.





A.
  Use a Test Date Factory class.

C.
  Use the Test. leadtear{} method,

Universal Container wants Opportunities to no longer be editable when reaching the Clousd stage. How should a develoiper accomplish this?


A. Use the Process Automation setting.


B. Mark fields as read-only on the page layout.


C. Use flow Builder


D. Use a validation rule.





D.
  Use a validation rule.


Page 13 out of 48 Pages
Previous