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

Exhibit.

Question # 11

A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information… about leads by imperatively calling getFetchLeadList when certain criteria are met.

What are these changes the developer should implement in the Apex class above to ensure the LWC can display data efficiently while preserving security?

Choose 3 answers

Options:

A.  

Annotate the Apex method with gAuraEnabled-

B.  

Annotate the Apex method with 8AuraEnabled (Cacheable-true).

C.  

Use the WITH SECURITY_ENFORCED clause within the SOQL query.

D.  

Implement the with sharing keyword in the class declaration.

E.  

Implement the without sharing keyword in the class declaration.

Discussion 0
Question # 12

A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests.

What should the developer do to speed up test execution?

Options:

A.  

Define a method that creates test data and annotate with @testSetup.

B.  

Define a method that creates test data and annotate with @createData

C.  

Reduce the amount of test methods in the class.

D.  

Ensure proper usage of test data factory In all test methods.

Discussion 0
Question # 13

Universal Containers (UC) has an CRP system that stores customer information.

When an Account is created in Salesforce, the FRP system's REST endpoint for creating new customers must automatically be called with the Account information, If the call to the ERP system fails, the Account should still be created. Accounts in UC org are only created, one at a time, by users in the customer on-boarding department.

What should a developer to make the call to the CRP system's REST endpoint7

Options:

A.  

REST call from JavaScript

B.  

Headless Quick Action

C.  

apex Continuation

D.  

call a Queueable from a Trigger

Discussion 0
Question # 14

Question # 14

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.

The test method fails at the Line 20 because of too many SOQL queries

What is the correct way to fix this?

Question # 14

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.

The test method fails at the Line 20 because of too many SOQL queries.

What is the correct way to fix this?

Options:

A.  

Add TesLstartTest() before and Test.stop Test() after both Line 7 of the code and Line 20 of the code.

B.  

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

C.  

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

D.  

Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.

Discussion 0
Question # 15

A developer created a Lightning web component that uses a lightning-record-edit-form t 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.

complain that they only see one error message at a time about their input when trying to save a Lead record.

What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously?

with minimal JavaScript intervention?

Options:

A.  

Try/catch/finally block

B.  

Apex trigger

C.  

Validation rules

D.  

External JavaScript library

Discussion 0
Question # 16

A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.

Question # 16

What must be done in the component to get the data from Salesforce?

A)

Question # 16

B)

Question # 16

C)

Question # 16

D)

Question # 16

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Question # 17

A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.

Question # 17

When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.

What is the optimal way to implement this?

Options:

A.  

Add an within the .

B.  

Add an within the .

C.  

Add an within the .

D.  

Add an within the .

Discussion 0
Question # 18

An org has a Process Builder process on Opportunity that sets a custom field,CommissionBaseAmount__c, when an Opportunity is edited and the Opportunity's Amount changes.

A developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAmount__c and complex logic to calculate a value for a custom field CommissionAmount_c, when an Opportunity stage changes to Closed/Won.

Users report that when they change the Opportunity to Closed/Won and also change the Amount during the same save, the C:rr.i;5icn

A.  

T.cur.t c is incorrect.

Which two actions should the developer take to correct this problem? Choose 2 answers

Options:

A.  

Call the trigger from the process.

B.  

Uncheck the recursion checkbox on the process.

C.  

Use a static Boolean variable in the trigger.

D.  

Call the process from the trigger.

Discussion 0
Question # 19

A developer is creating a lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday.

What should the developer do to ensure the calendar displays accurately for users in every locale?

Options:

A.  

Use a custom metadata type to store key/value pairs.

B.  

Query the firstDayofweek field from the Locale for the current user.

C.  

Use UserInfo,getLocale () in the component.

D.  

Import the FirstDayofweek property m the component

Discussion 0
Question # 20

A developer used custom settings to store some configuration data that changes occasionally. However, tests are now failing in some of the sandboxes that were recently refreshed.

What should be done to eliminate this issue going forward?

Options:

A.  

Set the setting type on the custom setting to List.

B.  

Replace custom settings with custom metadata.

C.  

Set the setting type on the custom setting to Hierarchy.

D.  

Replace custom settings with static resources.

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

Free Exams Sample Questions