PDI Exam Questions

Total 236 Questions

Last Updated Exam : 22-Oct-2024

What are two considerations for running a flow in debug mode? Choose 2 answers


A. Callouts to external systems are not executed when debugging a flow.


B. Clicking Pause or executing a Pause element closes the flow and ends debugging.


C. Input variables of type record cannot be passed into the flow,


D. DML operations will be rolled back when the debugging ends.





B.
  Clicking Pause or executing a Pause element closes the flow and ends debugging.

C.
  Input variables of type record cannot be passed into the flow,

A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page. Without writing unnecessary code, which controller should be used for this purpose?


A. Standard list controller


B. Standard controller


C. Lightning controller


D. Custom controller





B.
  Standard controller

Refer to the code snippet below:

Which three Considerations must the developer implement to make the method available within the Lightning web component? Choose 3 answer


A. The method must specify the (cacheable-trun) attribute


B. The method must specify the (continuation-true) attribute


C. The method must be annotaled with true Invocablemethod annolation


D. The method cannot mutate the result set retrieved from the database.


E. The method must be annotated with the AureEnabled annolation





A.
  The method must specify the (cacheable-trun) attribute

D.
  The method cannot mutate the result set retrieved from the database.

E.
  The method must be annotated with the AureEnabled annolation

What are two benefits of using External IDs? Choose 2 answers


A. An External ID field can be used Co reference an ID from another external system.


B. An External ID can be a formula field to help create a unique key from two fields in Salesforce.


C. An External ID can be used with Salesforce Mobile to make external data visible.


D. An External ID is indexed and can improve the performance of SOQl quenes.





A.
  An External ID field can be used Co reference an ID from another external system.

D.
  An External ID is indexed and can improve the performance of SOQl quenes.

Which two sfdx commands can be used to add testing data to a Developer sandbox?


A. Forced: data:bulk:upsert


B. Forced: data: object :upsert


C. Forced: data: tree: upsert


D. Forced: data:async:upsert





A.
  Forced: data:bulk:upsert

C.
  Forced: data: tree: upsert

Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer ad to create the most efficient model that supports the business need?


A. Add a Master-Detail field on the Account object to the Global Address object


B. Add a Master-Detail field on the Global Address object to the Account object.


C. Add a Lookup field on the Account object to the Global Address object.


D. Add a Lookup field on the Global Address object to the Account object





B.
  Add a Master-Detail field on the Global Address object to the Account object.

A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?


A. Add cuatom controller attributes to display the message.


B. Include on the Visualforce page.


C. Use a try/catch with a custom exception class.


D. Perform the DML using the Database.upsert() method.





B.
  Include on the Visualforce page.

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation. What would be the best solution for this requirement?


A. Submit a REST API Callojt with a JSON payload and validate the f elds on a third patty system


B. Use an Approval Process to enforce tne completion of a valid email address using an outbound message action.


C. Use a before-save Apex trigger on the Lead object to validate the email address and display an error message If it Is invalid


D. Use a custom Lightning web component to make a callout to validate the fields on a third party system.





C.
  Use a before-save Apex trigger on the Lead object to validate the email address and display an error message If it Is invalid

Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?


A. Option A


B. Option B


C. Option C


D. Option D





A.
  Option A

Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls. At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen. What should a developer use to satisfy this requirement?


A. An Apex controller


B. An Apex REST class


C. An outbound message


D. An invocable method





B.
  An Apex REST class


Page 2 out of 24 Pages
Previous