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 ( Plat-Dev-301 )

Searching for workable clues to ace the Salesforce PDII Exam? You’re on the right place! ExamCert has realistic, trusted and authentic exam prep tools to help you achieve your desired credential. ExamCert’s PDII PDF Study Guide, Testing Engine and Exam Dumps follow a reliable exam preparation strategy, providing you the most relevant and updated study material that is crafted in an easy to learn format of questions and answers. ExamCert’s study tools aim at simplifying all complex and confusing concepts of the exam and introduce you to the real exam scenario and practice it with the help of its testing engine and real exam dumps

Go to page:
Question # 4

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

A.

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

B.

Create all test data in the test class, use System.runAs() to invoke the trigger, then perform assertions.

C.

Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions.

D.

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

Full Access
Question # 5

A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record. Which best practice should the developer use to perform the validations on more than one field, thus allowing more than one error message to be displayed simultaneously?

A.

Apex REST

B.

Client-side validation

C.

Next Best Action

D.

Custom validation rules

Full Access
Question # 6

A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an asynchronous method?

A.

The callout could take longer than 60 seconds to complete.

B.

The callouts will be made using the REST API.

C.

The callouts will be made in an Apex trigger.

D.

Over 10 callouts will be made in a single transaction.

Full Access
Question # 7

A developer is asked to look into an issue where a scheduled Apex is running into DML limits. Upon investigation, the developer finds that the number of records processed by the scheduled Apex has recently increased to more than 10,000. What should the developer do to eliminate the limit exception error?

A.

Implement the Batchable interface.

B.

Use platform events.

C.

Use the @future annotation.

D.

Implement the Queueable interface.

Full Access
Question # 8

A developer wrote a class named AccountHistoryManager that relies on field history tracking. The class has a static method called getAccountHistory that takes in an Account as a parameter and returns a list of associated AccountHistory object records. The following test fails:

Java

@isTest

public static void testAccountHistory(){

Account a = new Account(name = 'test');

insert a;

a.name = a.name + '1';

update a;

List ahList = AccountHistoryManager.getAccountHistory(a);

System.assert(ahList.size() > 0);

}

What should be done to make this test pass?

A.

Use @isTest(SeeAllData=true) to see historical data from the org and query for AccountHistory records.

B.

Use Test.isRunningTest() in getAccountHistory() to conditionally return fake AccountHistory records.

C.

The test method should be deleted since this code cannot be tested.

D.

Create AccountHistory records manually in the test setup and write a query to get them.

Full Access
Go to page: