PDI Exam Questions

Total 236 Questions

Last Updated Exam : 22-Oct-2024

Consider the following code snippet for a Visualforce page that is launched using a Custom Button on the Account detail page layout.


When the Save button is pressed the developer must perform a complex validation that involves multiple objects and, upon success, redirect the user to another Visualforce page. What can the developer use to meet this business requirement?


A. Custom controller


B. Controller extension


C. Validation rule


D. Apex trigger





B.
  Controller extension

Which annotation exposes an Apex class as a RESTful web service?


A.


B.


C.


D.





C.
  

Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?


A. Exception


B. Messaging


C. OrgLimits


D. Limits





D.
  Limits

A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? Choose 2 answers


A. VS Code


B. SFDX CLI


C. Change Sets


D. Developer Console





A.
  VS Code

B.
  SFDX CLI

Which two are phases in the Aura application event propagation framework? Choose 2 answers


A. Emit


B. Control


C. Default


D. Bubble





C.
  Default

D.
  Bubble

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 5 out of 24 Pages
Previous