PDI Exam Questions

Total 236 Questions

Last Updated Exam : 22-Nov-2024

Einstein Next Best Action Is configured at Universal Containers to display recommendations to internal users on the Account detail page. If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system. Which three factors should a developer keep Hi mind when implementing the Apex method? Choose 3 answers


A. The method must use the @AuraEnabled annotation.


B. The method must use the @Future annotation.


C. The method must use the @invocableMethod annotation.


D. The method must be defined as static.


E. The method must be defined as public.





B.
  The method must use the @Future annotation.

D.
  The method must be defined as static.

E.
  The method must be defined as public.

Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?


A. Use a CEILING formula on each of the Latest availability date fields.


B. Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.


C. Use a LATEST formula on each of the latest availability date fields.


D. Use a Max Roll-Up Summary field on the Latest availability date fields.





D.
  Use a Max Roll-Up Summary field on the Latest availability date fields.

An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web Components to use. What is the correct definition of a Lightning Web Component property that uses the getAccounts method?


A. Option A


B. Option B


C. Option C


D. Option D





C.
  Option C

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers


A. insert pageRef.


B. Test.setCurrentPage(pageRef);


C. public ExtendedController(ApexPages StandardController cntrl) { }


D. ApexPages.CurrentPage().getParameters().put('input\’, 'TestValue');


E. String nextPage - controller.save().getUrl();





B.
  Test.setCurrentPage(pageRef);

D.
  ApexPages.CurrentPage().getParameters().put('input\’, 'TestValue');

E.
  String nextPage - controller.save().getUrl();

A developer created a Lightning web component called statusComponent to be inserted into the Account record page.
Which two things should the developer do to make the component available?


A. Add true to the statusComponent.js-meta ml file.


B. Add lighting _RecordPage to the statusComponent.js-meta ml file.


C. Add < masterLabel>Account to the statusComponent.js-meta ml file.


D. Add Lightning_RecordPage to the statusComponent.js file.





A.
  Add true to the statusComponent.js-meta ml file.

B.
  Add lighting _RecordPage to the statusComponent.js-meta ml file.

A company has a custom object, Order c, that has a required, unique external ID field called OrderNumber _______c.
Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of order _______c records using the external ID field?


A. Option A


B. Option B


C. Option C


D. Option D





B.
  Option B

A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively.
Which design framework should the developer consider to ensure scalability and maintainability?


A. Flux (view, action, dispatcher, and store)


B. Waterfall Model


C. Agile Development


D. Model-View-Controller (MVC)





C.
  Agile Development

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

When the code execution, which two events occur as a result of the Apex transaction? When the code executes, which two events occur as a result of the Apex transaction? Choose 2 answers


A. If executed in an asynchronous context, the apex transaction is likely to fall by exceeding the DML governor limit


B. The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.


C. he Apex transaction fails with the following message. "SObject row was retrieved via SOQL without querying the requested field Account.Is.Tech c''.


D. If executed In a synchronous context, the apex transaction is likely to fall by exceeding the DHL governor limit.





A.
  If executed in an asynchronous context, the apex transaction is likely to fall by exceeding the DML governor limit

A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page. How should this be accomplished?


A. Fire a notification.


B. Update a property on the parent.


C. Call a method in the Apex controller.


D. Create a custom event.





D.
  Create a custom event.

A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface.
Which approach can be used to accomplish this?


A. Wrap the Lightning Web Component In an Aura Component and surface the Aura Component as a Visualforce tab.


B. Embed the Lightning Web Component is a Visualforce Component and add directly to the page layout.


C. Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.


D. Use a Visualforce page with a custom controller to invoke the Lightning Web Component using a call to an Apex method.





C.
  Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.


Page 12 out of 24 Pages
Previous