New Year Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

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 # 33

A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature can be used to ensure that the variables are testable in both Production and all Sandboxes?

A.

Custom metadata

B.

Custom object

C.

Custom setting

D.

Custom variable

Full Access
Question # 34

There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once. What can a developer do to help alleviate such issues?

A.

Use the transient keyword in the Apex code when querying the Account records.

B.

Upload a third-party data table library as a static resource.

C.

Use the standard Account List controller and implement pagination.

D.

Use JavaScript remoting to query the accounts.

Full Access
Question # 35

A developer needs to implement a system audit feature that allows users, assigned to a custom profile named "Auditors", to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 6 and 12 months old. Given the code below, which select statement should be inserted as a valid way to retrieve the Account History records?4445

Java

Date initialDate = System.Today().addMonths(-12);

Date endDate = System.Today().addMonths(-6);

// Insert SELECT statement here

A.

[SELECT AccountId, CreatedDate, Field, NewValue, OldValue FROM Account_History WHERE CreatedDate <= :initialDate AND CreatedDate <= :endDate];

B.

[SELECT AccountId, CreatedDate, Field, NewValue, OldValue FROM Account_History WHERE CreatedDate >= :endDate AND CreatedDate <= :initialDate];

C.

[SELECT AccountId, CreatedDate, Field, NewValue, OldValue FROM AccountHistory WHERE CreatedDate BETWEEN :initialDate AND :endDate];

D.

[SELECT AccountId, CreatedDate, Field, NewValue, OldValue FROM AccountHistory WHERE CreatedDate => :initialDate AND CreatedDate <= :endDate];

Full Access
Question # 36

Universal Containers has an Apex trigger on Account that creates an Account Plan record when an Account is marked as a Customer. Recently a record-triggered flow was added to update a date field. Since the addition of the flow, two Account Plan records are created. What might cause this to happen?

A.

The Apex trigger is not bulk safe and calls insert inside of a for loop.

B.

The flow is configured to use an 'Update Records' element.

C.

The flow is configured to evaluate when a record is created and every time it is edited.

D.

The Apex trigger does not use a static variable to ensure it only fires once.

Full Access
Question # 37

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

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

Full Access
Question # 38

Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?

A.

Asynchronous Data Capture Events

B.

Calendar Events

C.

Event Monitoring Log

D.

Developer Log

Full Access
Question # 39

The test method tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated. The test method fails at Line 20 because of "too many SOQL queries." What is the correct way to fix this?

Java

Line 12: //Set accounts to be customers

Line 13: for(Account a : DataFactory.accounts)

Line 14: {

Line 15: a.Is_Customer__c = true;

Line 16: }

Line 17:

Line 18: update DataFactory.accounts;

Line 19:

Line 20: List acctsAfter = [SELECT Number_Of_Transfers__c FROM Account WHERE Id IN :DataFactory.accounts];

A.

Use Limits.getLimitQueries() to find the total number of queries that can be issued.

B.

Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.

C.

Add Test.startTest() before and add Test.stopTest() after both Line 7 and Line 20 of the code.

D.

Add Test.startTest() before and add Test.stopTest() after Line 18 of the code.

Full Access
Question # 40

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?1

A.

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

B.

Use Developer Console to view the debug log.34

C.

Use console.log() messages in the JavaScript.56

D.

Use Developer Console to view7 checkpoints.8

E.

Enable Debug Mode for Lightning components for the user.9

Full Access
Go to page: