Weekend Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Ace the Salesforce PDII Exam: Ultimate Preparation Guide

Questions 1

A business requires that every parent record must have a child record. A developer writes an Apex method with two DML statements to insert a parent record and a child record.

A validation rule blocks child records from being created. The method uses a try/catch block to handle the DML exception.

What should the developer do to ensure the parent always has a child record?

Options:

A.

Use Catabase.inserc() and set the all = parameter to true,

B.

Delete the parent record in the catch statement when an error occurs on the child record DML operation.

C.

Set a database savepoint to rollback if there are errors.

D.

Use addExror() on the parent record if an error occurs on the child record.

Buy Now
Questions 2

Given the following code:

PDII Question 2

Assuming there were 10 Contacts and five Accounts created today, what is the expected result?

Options:

A.

System.QueryException: Too many DML Statement errors on Contact

B.

System.QueryException: List has more than one row for Assignment on Account

C.

Systemn.LimitException: Too many SOQL Queries on Account

D.

System.LimitException: Too many SOQL Queries on Contact

Buy Now
Questions 3

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?

Options:

A.

Custom object

B.

Custom metadata

C.

Hierarchy custom setting

D.

List custom setting

Buy Now
Questions 4

Refer to the Lightning component below:

PDII Question 4

The Lightning Component allows users to click a button to save their changes and then redirects them to a different page.

Currently when the user hits the Save button, the records are getting saved, but they are not redirected.

Which three techniques can a developer use to debug the JavaScript?

Choose 3 answers

Options:

A.

Use console.log () messages in the JavaScript.

B.

Use the browser's dev tools to debug the JavaScript.

C.

Enable Debug Mode for Lightning components for the user.

D.

Use Developer Console to view checkpoints.

E.

Use Developer Console to view the debug log.

Buy Now
Questions 5

A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity

to be considered high value is an amount greater than or equal to $1,000,000. However, this criteria value can change over time.

There is a new requirement to also display high value opportunities in a Lightning web component.

Which two actions should the developer take to meet these business requirements, and also prevent the business logic that obtains the high value opportunities from

being repeated in more than one place?

Choose 2 answers

Options:

A.

Call the trigger from the Lightning web component.

B.

Create a helper class that fetches the high value opportunities,

C.

Leave the business logic code inside the trigger for efficiency.

D.

Use custom metadata to hold the high value amount.

Buy Now
Questions 6

A developer creates an application event that has triggered an infinite loop.

What may have caused this problem?

Options:

A.

The event is fired from a custom renderer.

B.

The event has multiple handlers registered in the project.

C.

The event handler calls a trigger.

D.

An event is fired ‘ontouchend'’ and is unhandled.

Buy Now
Questions 7

Refer to the test method below''

PDII Question 7

The test method calls a web service that updates an external system with Account

information and sets the Accounts integration_Updated__c checkbox to True when it completes.

The test fails to execute and exits with an error: "Methods defined as TestMethod do

not support Web service callouts.”

A)

PDII Question 7

B)

PDII Question 7

C)

PDII Question 7

D)

PDII Question 7

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 8

A company has a custom component that allows users to search for records of a

certain object type by invoking an Apex Controller that returns a list of results

based on the user's input. When the search is completed, a searchComplete event

is fired, with the results put in a results attribute of the event. The component is

designed to be used within other components and may appear on a single page

more than once.

What is the optimal code that should be added to fire the event when the search has completed?

A)

PDII Question 8

B)

PDII Question 8

C)

PDII Question 8

D)

PDII Question 8

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 9

Refer to the exhibit

PDII Question 9

Users of this Visualforce page complain that the page does a full refresh every time the Search button Is pressed.

What should the developer do to ensure that a partial refresh Is made so that only the section identified with opportunity List is re-drawn on the screen?

Options:

A.

Enclose the DATA table within the <apex:actionRegion> tag.

B.

Implement the render attribute on the <apex:ccxmandButton> tag.

C.

Ensure the action method search returns null.

D.

Implement the <apex:actionfunction> tag with immediate = true.

Buy Now
Questions 10

A developer is asked to develop a new AppFxchange application. A feature of the program creates Survey records when a Case reaches a certain stage and is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to

most customers.

What should the developer use to store and package the custom configuration settings for the app?

Options:

A.

Custom objects

B.

Custom settings

C.

Custom metadata

D.

Custom labels

Buy Now
Exam Code: PDII
Exam Name: Salesforce Certified Platform Developer II (WI24)
Last Update: Dec 9, 2024
Questions: 193

PDF + Testing Engine

$164.99
$57.75

Testing Engine

$124.99
$43.75

PDF (Q&A)

$104.99
$36.75