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

PDI Exam Questions Tutorials

Page: 10 / 18
Total 235 questions

Platform Developer I (SP23) Questions and Answers

Question 37

A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.

What to do now?

Options:

A.

The method must be decorated with (cacheable=true).

B.

The method must be decorated with @AuraEnabled.

C.

The method must return a JSON Object.

D.

The method must return a String of a serialized JSON Array.

Question 38

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?

Options:

A.

Standard list controller

B.

Standard controller

C.

Lightning controller

D.

Custom controller

Question 39

Which two settings must be defined in order to update a record of a junction object? Choose 2 answers

Options:

A.

Read access on the primary relationship

B.

Read/Write access on the secondary relationship

C.

Read/Write access on the primary relationship

D.

Read/Write access on the junction object

Question 40

While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors.

Why did the method fail in the sandbox test framework but succeed in the Developer Console?

Options:

A.

The test method has a syntax error In the code.

B.

The test method does not use System. rurAs to execute as a specific user.

C.

The test method Is calling an future method.

D.

The test method relies on existing data in the sandbox.

Page: 10 / 18
Total 235 questions