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

PDII Exam Dumps - Salesforce Developers Questions and Answers

Question # 4

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)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Question # 5

Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records?

Choose 2 answers

Options:

A.

SELECT Id FROM Account WHERE Name LIKE '!-NULL

B.

SELECT Id FRCM Account WHERE Name != ’ ’

C.

SELECT Id FRCM Account WHEP Name IN (List of Names) AND Customer_Number_c= 'ValueA

D.

SELECT Id FROM Account WHERE II IK (List of Account Ida)

Buy Now
Question # 6

What should a developer use to query all Account fields for the Acme account in their sandbox?

Options:

A.

SELECT FIELDS FAOM Account WHERE Name = ‘Acme’ LIMIT 1

B.

SELECT FIELDS (ALL) FROM Account WHERE Name = ‘Acme’ LIMIT 1

C.

SELECT ALL FROM Account WHERE Name = "Acme’ LIMIT 1

D.

SELECT * FROM Recount WHERE Names = ‘Aeme’ LIMIT 1

Buy Now
Question # 7

An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary’ to control this feature.

The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.

What is the optimal way to implement these requirements?

Options:

A.

Write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.

B.

Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.

C.

Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.

D.

Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.

Buy Now
Question # 8

A developer is creating a Lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday. ‘What should the developer do to ensure the calendar displays accurately for users in every locale?

Options:

A.

Query the FirstDayofweek field from the Locale for the current user.

B.

Import the @salesforce/i18n module and use

the firstdayofweek internationalization property.

C.

Use a custom metadata type to store key/value pairs.

D.

Use UserInfo.getLocale() in the component.

Buy Now
Question # 9

A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the Opportunity’s stage is changed, a workflow rule is fired to increase the value of a field by one. The developer wrote an after trigger to create a child record when the field changes from 4 to 5.

A user changes the stage of an Opportunity and manually sets the count field to 4. The count field updates to 5, but the child record is not created.

What is the reason this is happening?

Options:

A.

Trigger.old does not contain the updated value of the count field.

B.

After triggers fire before workflow rules.

C.

Trigger.new does not change after a field update.

D.

After triggers are not fired after field updates.

Buy Now
Question # 10

There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the

user.

The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, "Maximum view state size limit exceeded”.

What step should the developer take to resolve this issue?

Options:

A.

Adjust any code that filters by picklist values since they are not indexed,

B.

Remove instances of the transient keyword from the Apex controller to avoid the view state error.

C.

Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.

D.

Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex controller.

Buy Now
Question # 11

A user receives the generic "An internal server error has occurred” while interacting

with a custom Lightning component.

What should the developer do to ensure a more meaningful message?

Options:

A.

Add an onerror event handler to the tag.

B.

Add an error-view component to the markup.

C.

Use platform events to process the error

D.

Use an AuraHandledexception in a try-catch block.

Buy Now
Question # 12

A developer writes a Lightning web component that displays a dropdown list of all custom objects in the org from which a user will select. An Apex method prepares and returns data to the component.

What should the developer do to determine which objects to include in the response?

Options:

A.

Check the isCustom() value on the sObject describe result,

B.

Import the list of all custom objects from @salesforce/schema.

C.

Check the getobiectType [) value for ‘Custom’ or "Standard’ on the sObject describe result.

D.

Use the getcustomobjects() method from the Schema class.

Buy Now
Question # 13

A company has a web page that needs to get Account record information, such as name, website, and employee number. The Salesforce record 1D is known to the web page and it uses JavaScript to retrieve the account information.

Which method of integration is optimal?

Options:

A.

Apex SOAP web service

B.

SOAP API

C.

Apex REST web service

D.

REST API

Buy Now
Exam Code: PDII
Exam Name: Salesforce Certified Platform Developer II (SU24)
Last Update: Feb 18, 2025
Questions: 193
PDII pdf

PDII PDF

$29.75  $84.99
PDII Engine

PDII Testing Engine

$33.25  $94.99
PDII PDF + Engine

PDII PDF + Testing Engine

$47.25  $134.99