PDI Practice Test Questions

236 Questions


Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:


which three statements are accurate about debug logs? Choose 3 answers


A. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.


B. The maximum size of a debug log is 5 MB.


C. Only the 20 most recent debug logs for a user are kept.


D. Debug logs can be set for specific users, classes, and triggers.


E. System debug logs are retained for 24 hours.





C.
  Only the 20 most recent debug logs for a user are kept.

D.
  Debug logs can be set for specific users, classes, and triggers.

E.
  System debug logs are retained for 24 hours.

Which three Salesforce resources can be accessed from a Lightning web component? Choose 3 answers


A. SVG resources


B. Third-party web components


C. Content asset files


D. Static resources


E. All external libraries





A.
  SVG resources

D.
  Static resources

E.
  All external libraries

A developer is tasked with building a custom Lightning web component to collect Contact information. The form will be shared among many different types of users in the org. There are security requirements that only certain fields should be edited and viewed by certain groups of users. What should the developer use in their Lightning Web Component to support the security requirements?


A. force-input-field


B. ui-input-field


C. aura-input-field


D. lightning-input-field





A.
  force-input-field

Consider the following code snippet:


Given the multi-tenant architecture of the Salesforce platform, what Is a best practice a developer should Implement and ensure successful execution of the method?


A. Avoid executing queries without a limit clause.


B. Avoid returning an empty List of records.


C. Avoid using variables as query filters.


D. Avoid performing queries inside for loops.





D.
  Avoid performing queries inside for loops.

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*/ }


Page 4 out of 20 Pages
Previous