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

PDII Exam Dumps - Salesforce Certified Platform Developer II (SU24)

Go to page:
Question # 41

Universal Charities (UC) uses Salesforce to collect electronic donations in the form of credit card deductions from individuals and corporations.

When a customer service agent enters the credit card information, it must be sent

to 8 3rd-party payment processor for the donation to be processed, UC uses one

payment processor for individuals and a different one for corporations.

What should a developer use to store the payment processor settings for the

different payment processors, so that their system administrator can modify the

settings once they are deployed, if needed?

A.

Custom object

B.

Custom metadata

C.

Hierarchy custom setting

D.

List custom setting

Full Access
Question # 42

An org records customer order information in a custom object, ordar__c, that has

fields for the shipping address. A developer is tasked with adding code to calculate

shipping charges on an order, based on a flat percentage rate associated with the

region of the shipping address.

What should the developer use to store the rates by region, so that when the changes are deployed to production no additional steps are needed for the calculation to work?

A.

Custom hierarchy setting

B.

Custom metadata type

C.

Custom list setting

D.

Custom object

Full Access
Question # 43

A company has a custom object, Order__c, that has a custom picklist field, Status__c, with values of ‘New,' 'In Progress,’ or ‘Fulfilled’ and a lookup field,

Contact__c, to Contact.

Which SOQL query will return a unique list of all the Contact records that have no ‘Fulfilled’ Orders?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 44

How should a developer assert that a trigger with an asynchronous process has successfully run?

A.

Create all test data in the test class, use system. runs {} to invoke the trigger, then perform assertions.

B.

Insert records into Salesforce, use seeAllData=true, then perform assertions.

C.

Create all test data, use future in the rest class, then perform assertions.

D.

Create all test data in the test class, invoke Test.startTest{} and Test.etopTaat {} and then perform assertions.

Full Access
Question # 45

A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account and an Opportunity; or the Name of an Account and a Contact.

Assuming the Name field exists, how should the developer do this?

A.

Cast each object into an sObject and use sObject.get to compare the Name fields,

B.

describe) function to compare the values of each Name field.

C.

Use the Salesforce Metadata API to extract the value of each object and compare the Name fields.

D.

Use a string. Replace () method to parse the contents of each Name field and then compare the results.

Full Access
Question # 46

A Visuzlforce page loads slowly due to the large amount of data it displays.

Which strategy can a developer use to improve the performance?

A.

Use lazy loading to load the data on demand, instead of in the controller's constructor.

B.

Use an

C.

Use the transient keyword for the List variables used in the custom controller.

D.

Use Javascript to move data processing to the browser instead of the controller.

Full Access
Question # 47

An Aura component has a section that displays some information about an Account

and it works well on the desktop, but users have to scroll horizontally to see the description field output on their mobile devices and tablets.

How should a developer change the component to be responsive for mobile and tablet devices?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 48

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

class for a Visualforce controller?

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,

Full Access
Go to page: