Pre-Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

PDII Salesforce Certified Platform Developer II ( Plat-Dev-301 ) is now Stable and With Pass Result | Test Your Knowledge for Free

Exams4sure Dumps

PDII Practice Questions

Salesforce Certified Platform Developer II ( Plat-Dev-301 )

Last Update 1 day ago
Total Questions : 161

Dive into our fully updated and stable PDII practice test platform, featuring all the latest Developers exam questions added this week. Our preparation tool is more than just a Salesforce study aid; it's a strategic advantage.

Our free Developers practice questions crafted to reflect the domains and difficulty of the actual exam. The detailed rationales explain the 'why' behind each answer, reinforcing key concepts about PDII. Use this test to pinpoint which areas you need to focus your study on.

PDII PDF

PDII PDF (Printable)
$43.75
$124.99

PDII Testing Engine

PDII PDF (Printable)
$50.75
$144.99

PDII PDF + Testing Engine

PDII PDF (Printable)
$63.7
$181.99
Question # 41

Question # 41

Refer to the code segment above.

When following best prachces for writing Apex triggers, which two lines are wrong or cause for concern?

Choose 2 answers

Options:

A.  

Lines 6

B.  

Line 11

C.  

Line 16

D.  

Line 20

Discussion 0
Question # 42

Question # 42

Consider the above trigger intended to assign the Account to the manager of the Account''s region. Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answers

Options:

A.  

Use a Map accountMap instead of List accountList.

B.  

Use a Map to cache the results of the Region__c query by Id.

C.  

Move the Region__c query to outside the loop.

D.  

Remove the last line updating accountList as it is not needed.

Discussion 0
Question # 43

The Salesforce admin at cloud kicks created a custom object called Region_ c to store all postal zip codes in the United States and the Cloud Kicks sales region the Zip code belong to.

Object Name:

Question # 43

Fields:

Question # 43

Cloud Kicks wants a trigger on the Lead to populate the Region based on the Lead's zip code. Which code segment is the most efficient way to fulfill this request?

A)

Question # 43

B)

Question # 43

C)

Question # 43

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Question # 44

A company accepts orders for customers in their enterprise resource planning (ERP) crder__c records with a lookup field to Account. The Account object has an External ID field, ERP_Customer_ID__c.

What should the integration use to create new Order__c records that will automatically be related to the correct Account?

Options:

A.  

Upsert on the Account and specify the ERP_Customer_ID__c.

B.  

Merge on the Order__c object and specify the ERP_Customer_ID__c.

C.  

Insert on the Order__c object followed by an update on the Order__c object.

D.  

Upsert on the Order__c object and specify the ERP_Customer_ID__c.

Discussion 0
Question # 45

A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items.

Both custom objects have a CurrencylsoCode Text field that contains the currency code they should use. If a Catalog's CurrencylsoCode changes, all of its Catalog Items' CurrencylsoCodes should be changed as well.

What should a developer use to update the CurrencylsoCodes on the Catalog Items when the Catalog's CurrencylsoCode changes^5

Options:

A.  

An after insert trigger on Catalog that updates the Catalog Items if the Catalog's CurrencylsoCode is different

B.  

An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog's CurrencylsoCode is different

C.  

A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencylsoCode is different

D.  

A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencylsoCode is different

Discussion 0
Question # 46

A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price.

Question # 46

What must be added to display the total?

Options:

A.  

Add get total() { return quantity * unitPrice;} to the JavaScript and Total: {total} in the template.

B.  

Add calculate Total() {return quantity * unitPrice;} to the javaScript and Total : {calculate Total()} in the template.

C.  

Add Total: {quantity * UnitPrice} in the template.

D.  

Add Total; {multiple quantit,y unitprice)} in the template.

Discussion 0
Question # 47

A developer created a class that implement he Queueable interface, as follows:

As part of the deployment process, the developer is asked to create a corresponding test class.

Which two actions should the developer take to successfully execute the test class?

Choose 2 answers

Options:

A.  

Ensure the running user of the test class has, at least, the View All permission on the Order object

B.  

Enclose System.enqueueJob (new orderQueueable Job ( }) within Test. starttest and Test, stoptest ()

C.  

Implement seeAllData-true to ensure the Queueable )ob is able to run in bulk mode.

D.  

Implement Test.isRunningtest ( ) to prevent chaining jobs during test execution.

Discussion 0
Question # 48

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

Options:

A.  

Scheduling a batch process to complete in the future

B.  

Processing high volumes of records

C.  

Updating a record after the completion of an insert

D.  

Calling a web service from an Apex trigger

Discussion 0
Question # 49

Consider the following code snippet:

Question # 49

Which governor limit is likely to be exceeded when the trigger runs when a scope of 200 newly inserted accounts?

Options:

A.  

Total number of DML statements issued

B.  

Total number of records processed as a result of DML

C.  

Total number of SOQL queries issued

D.  

Total number of SOQL queries issued

Discussion 0
Question # 50

A developer is asked to create a Lightning web component that will be invoked via button on a record page. The component must be displayed in a model dialog.

Which three steps should the developer take to achieve this?

Choose 3 answers

Options:

A.  

Add a tarqetConfig anf set targets to lightning_RecordAction.

B.  

In targetConfigs, add Lightning_Apppage as a target.

C.  

Set action Type to screenAction.

D.  

In target, add lightning_RecordAction as a target.

E.  

Set eventType to action.

Discussion 0
Get PDII dumps and pass your exam in 24 hours!

Free Exams Sample Questions