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

What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements. Which approach should the developer use to be sure that the Apex class is working according tospecification?


A. Create a test class to execute the business logic and run the test in the Developer Console.


B. Include a savepoint and Database,rollback.


C. Include a try/catch block to the Apex class.


D. Run the code in an Execute Anonymous block n the Deceloper Consider.





A.
  Create a test class to execute the business logic and run the test in the Developer Console.

A Salesforce Administrator used Flow Builder to create a flow named ‘’accountOnboarding’’. The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the component?


A. Lightning-flow


B. Aura:flow


C. Lightning:flow


D. Aura:flow





C.
  Lightning:flow

A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?


A. Public class CreditcardPayment extends Payment { public override void makePayment(Decimal amount) { /*implementation*/ }


B. Public class CreditCardPayment implements Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ }


C. Public class CreditCardPayment extends Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } }


D. Public class CreditCardPayment implements Payment { public override void makePayment(Decimal amount) { /*Implementation*/ } }





A.
  Public class CreditcardPayment extends Payment { public override void makePayment(Decimal amount) { /*implementation*/ }

Ursa Major Solar has a custom object, serviceJob-o, with an optional Lookup field to Account called partner-service-Provider_c. The TotalJobs-o field on Account tracks the total number of serviceJob-o records to which a partner service provider Account is related. What is the most efficient way to ensure that the Total job_o field kept up to data?


A. Change TotalJob_o to a roll-up summary field.


B. Create a record-triggered flow on ServiceJob_o.


C. Create an Apex trigger on ServiceJob_o.


D. Create a schedule-triggered flow on ServiceJob_o.





B.
  Create a record-triggered flow on ServiceJob_o.

Assuming that naze is 8 String obtained by an tag on 8 Visualforce page, which two SOQL queries performed are safe from SOQL injection? Choose 2 answers


A. Option A


B. Option B


C. Option C


D. Option D





C.
  Option C

D.
  Option D


Page 10 out of 48 Pages
Previous