Spring Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

PDII Exam Dumps - Salesforce Developers Questions and Answers

Question # 14

A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created. Which consideration should be checked to resolve the issue?

Options:

A.

Ensure test classes are using SeeAllData = true.15

B.

Ensure the Apex classes are on the same API version.16

C.

Ensure the sandbox is on the same release as production.17

D.

Ensure that Disable Parallel Apex Testing is unchecked.18

Buy Now
Question # 15

Universal Containers analyzes a Lightning web component and its Apex controller. Based on the code snippets, what change should be made to display the contacts' mailing addresses in the Lightning web component?

Apex controller class:

Java

public with sharing class AccountContactsController {

@AuraEnabled

public static List getAccountContacts(String accountId) {

return [SELECT Id, Name, Email, Phone FROM Contact WHERE AccountId = :accountId];

}

}

Options:

A.

Add a new method in the Apex controller class to retrieve the mailing addresses separately.

B.

Modify the SOQL query in the getAccountContacts method to include the MailingAddress field.

C.

Extend the lightning-datatable component to include a column for the MailingAddress field.

D.

Modify the SOQL query in the getAccountContacts method to include the MailingAddress field and update the columns attribute in the javascript file to add Mailing address fields.

Buy Now
Question # 16

A developer has a Visualforce page that automatically assigns ownership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails. What can cause this problem?

Options:

A.

The test class does not implement the Queueable interface.

B.

The test class does not retrieve the updated value from the database.

C.

The test class does not use the seeAllData=true annotation.

D.

The test class does not use the Bulk API for loading test data.

Buy Now
Question # 17

A developer needs to add code to a Lightning web component's configuration file so the component only renders for a desktop size form factor when on a record page. What should the developer add to the component's record page target configuration to meet this requirement?

Options:

A.

B.

C.

...

D.

...

Buy Now
Question # 18

A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?

Options:

A.

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

B.

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

C.

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

D.

Use an in the page to load all of the data asynchronously.

Buy Now
Question # 19

Which statement is true regarding savepoints?

Options:

A.

You can roll back to any savepoint variable created in any order.

B.

Static variables are not reverted during a rollback.

C.

Savepoints are not limited by DML statement governor limits.

D.

Reference to savepoints can cross trigger invocations.

Buy Now
Question # 20

Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERP_Number__c, that is then used in a query to find matching Accounts.

Java

erpNumber = erpNumber + '%';

List accounts = [SELECT Id, Name FROM Account WHERE ERP_Number__c LIKE :erpNumber];

A developer receives the exception 'SOQL query not selective enough'. Which step should be taken to resolve the issue?

Options:

A.

Move the SOQL query to within an asynchronous process.

B.

Mark the ERP_Number__c field as required.

C.

Mark the ERP_Number__c field as an external ID.

D.

Change the query to use a SOSL statement instead of SOQL.

Buy Now
Question # 21

Which use case can be performed only by using asynchronous Apex?

Options:

A.

Querying tens of thousands of records

B.

Making a call to schedule a batch process to complete in the future

C.

Calling a web service from an Apex trigger

D.

Updating a record after the completion of an insert1

Buy Now
Question # 22

The CalloutUtil.makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to address the problem?

Java

public void updateAndMakeCallout(Map regs, Map regLines) {

Savepoint sp = Database.setSavepoint();

try {

insert regs.values();

insert regLines.values();

HttpResponse response = CalloutUtil.makeRestCallout(regs.keySet(), regLines.keySet());

} catch (Exception e) {

Database.rollback(sp);

}

}

Options:

A.

Move the CalloutUtil.makeRestCallout method call below the catch block.

B.

Change the CalloutUtil.makeRestCallout to an @future method.

C.

Remove the Database.setSavepoint and Database.rollback.

D.

Change the CalloutUtil.makeRestCallout to an @InvocableMethod method.

Buy Now
Question # 23

Refer to the component code and requirements below:

HTML

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

Requirements:

    For mobile devices, the information should display in three rows.

    For desktops and tablets, the information should display in a single row.

Requirement 2 is not displaying as desired. Which option has the correct component code to meet the requirements for desktops an7d tablets?

Options:

A.

HTML

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

B.

1213

C.

1415

HTML

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

D.

HTML

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

Buy Now
Exam Code: PDII
Exam Name: Salesforce Certified Platform Developer II ( Plat-Dev-301 )
Last Update: Feb 20, 2026
Questions: 161
PDII pdf

PDII PDF

$25.5  $84.99
PDII Engine

PDII Testing Engine

$28.5  $94.99
PDII PDF + Engine

PDII PDF + Testing Engine

$40.5  $134.99