Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

PDF PDII Study Guide

Page: 12 / 13
Total 196 questions

Salesforce Certified Platform Developer II (SP23) Questions and Answers

Question 45

A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be

displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process.

How should a developer implement the callouts?

Options:

A.

An HTTP REST callout for the billing callout and a Continuation for the tax callout

B.

A Continuation for both the billing callout and the tax callout

C.

An HTTP REST callout for both the billing callout and the tax callout

D.

A Continuation for the billing callout and an HTTP REST callout for the tax callout

Question 46

Universal Containers develops a Salesforce application that requires frequent interaction with an external REST API.

To avoid duplicating code and improve maintainability, how should they implement the APL integration for code reuse?

Options:

A.

Use a separate Apex class for each API endpoint to encapsulate the integration logic,

B.

Include the API integration code directly in each Apex class that requires it.

C.

Create a reusable Apex class for the AFL integration and invoke it from the relevant Apex classes.

D.

Store the APT integration code as a static resource and reference it in each Apex class.

Question 47

A developer is creating a Lightning web component that displays a list of records in a lightning-datatable. After saving a new record to the database, the list is not updating.

What should the developer change in the code above for this to

happen?

Options:

A.

Call rafrasnApex() ON this.dazta.

B.

Create a new variable to store the result and annotate it with @track.

C.

Create a variable to store the result and call refreshpex().

D.

Add the @track decorator to the data variable.

Question 48

Consider the above trigger intended to assign the Account to the manager of the Account's region,

Which two changes should a developer make in this trigger to adhere to best practices?

Options:

A.

Use a Map to cache the results of the Region._c query by Id.

B.

Move the Region__c query to outside the loop.

C.

Use a Map accountMap instead of List accountList.

D.

Remove the last line updating accountList as It Is not needed.

Page: 12 / 13
Total 196 questions