Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bigdisc65

Salesforce Developers PDII New Questions

Page: 7 / 12
Question 28

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 29

Which Salesforce feature allows a developer to see when a user last logged in to

Salesforce if real-time notification is not required?

Options:

A.

Calendar Events

B.

Asynchronous Data Capture Events

C.

Event Monitoring Log

D.

Developer Log

Question 30

How should a developer verify that a specific Account record is being tested in a test

class for a Visualforce controller?

Options:

A.

Insert the Account in the test class, instantiate the page reference in the test class, then use System.currentFageReference() .getFarameters() .put{) to set the Account ID.

B.

Insert the Account into Salesforce, instantiate the page reference in the test class, then use system. setFarentRecordId() .get() to set the Account ID.

{of Instantiate the page reference in the test class, insert the Account in

the test class, then use =seeAllData=trus to view the Account.

C.

Instantiate the page reference in the test class, insert the Account in

the test class, then use system.setFarentRecordrd() .get() to set the Account ID,

Question 31

A developer wrote the following method to find all the test accounts in the org:

What should be used to fix this failing test?

Options:

A.

Test. fixsdSsarchReaulta [) method to set up expected data

B.

@isTest (SeeAllData=true) to access org data for the test

C.

@testsetup method to set up expected data

D.

Teat.loadData to set up expected data

Page: 7 / 12
Exam Code: PDII
Exam Name: Salesforce Certified Platform Developer II (SP23)
Last Update: May 18, 2024
Questions: 196
PDII pdf

PDII PDF

$28  $80
PDII Engine

PDII Testing Engine

$33.25  $95
PDII PDF + Engine

PDII PDF + Testing Engine

$45.5  $130