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

A developer Is asked to develop a new AppExthange application. A feature of the program creates Survey records when a Case reaches a certain stage and Is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers.

What should the developer use to store and package the custom configuration settings for the app?

Options:

A.  

Custom Settings

B.  

Custom Metadata

C.  

Custom Objects

D.  

Process Builder

Discussion 0
Question # 32

A developer created an Apex class that updates an Account based on input from a Lightning web component that is used to register an Account. The update to the Account should only be made if it has not already been registered.

Question # 32

What should the developer do to ensure that users do not overwrite each other’s updates to the same Account if they make updates at the same time?

Options:

A.  

Use CastiCase.update(account, false).

B.  

Add a try/catch block around the update.

C.  

Use upsert instead of update.

D.  

Use FOR UPDATE in a SOQL query.

Discussion 0
Question # 33

A developer created the code to perform an HTP GET request to an external system.

Question # 33

When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:System.CalloutException: Unauthorized endpoint

Which recommended approach should the developer implement to the callout

exception?

Options:

A.  

create a remote site setting configuration that includes the endpoint.

B.  

Annotate the getERPCatalogContents method With @Future (Callout-true)

C.  

use the setHeader () method to specify Basic Authentication.

D.  

Change the access modifier for ERPCatelog from Public to global

Discussion 0
Question # 34

The following code segment is railed from a Trigger handler class from the Opportunity trigger:

Question # 34

Which two changes should improve this code and make it more efficient? Choose 2 answers

Options:

A.  

Move the DML outside of the for loop.

B.  

Move the SOQL to fetch the account record outside of the for loop.

C.  

Move business logic inside the Opportunity trigger.

D.  

Use Triginstead.old instead of Trigger.new.

Discussion 0
Question # 35

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

Options:

A.  

Custom Metadata

B.  

Custom Object

C.  

Custom Setting

D.  

Custom Variable

Discussion 0
Question # 36

A company uses Salesforce to sell products to customers. They also have an external product information management (P1M) system that If the system of record for products.

A developer received these requirements

• Whenever a product is created or updated in the PIM, a product must be created or updated as a Product2 record in Salesforce and a PricebookEntry record must be created or updated automatically by Salesforce.

• The PricebookEntry should be created in a Pricebooki that is specified in a custom setting.

What should the developer use to satisfy these requirements?

Options:

A.  

Apex REST

B.  

Event Monitoring

C.  

Invocated Action

D.  

Sobject Tree

Discussion 0
Question # 37

A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org.

Users report that they receive a ''Maximum view state size limit'' error message under certain conditions.

According to Visualforce best practice, which three actions should the developer take to reduce the view state? Choose 3 answers

Options:

A.  

Use the transient keyword in the Apex controller for variables that do not maintain state.

B.  

Use the final keyword in the controller for variables that will not change.

C.  

Refine any SQQL queries to return only data relevant to the page.

D.  

Use the private keyword in the controller for variables

E.  

Use filters and pagination to reduce the amount of data.

Discussion 0
Question # 38

A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity to be considered high value is an amount greater than or equal to SI,000,000. However, this criteria value can change over time.

There is a new requirement to also display high value opportunities In a Lightning web component.

Which two actions should the developer take to prevent the business logic that obtains the high value opportunities from being repeated in more than one place?

Choose 2 answers

Options:

A.  

Use custom metadata to hold the high value amount.

B.  

Call the trigger from the Lightning web component.

C.  

Leave the business logic code Inside the trigger for efficiency.

D.  

Create a helper class that fetches the high value opportunities.

Discussion 0
Question # 39

Consider the following code snippet:

A developer created the following test class to provide the proper code coverage for the snippet above:

However, when the test runs, no data is returned and the assertion fails.

However, when the test runs, no data is returned and the assertion fails.

Which edit should the developer make to ensure the test class runs successfully?

Options:

A.  

Enclose the method call within Test. startTest () and Test , stop Test ()

B.  

Implement the seeAllData=true attribute in the @isTest annotation.

C.  

Implement the without sharing keyword in the searchfeature Apex class.

D.  

Implement the setFixedSearchResults method in the test class.

Discussion 0
Question # 40

Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.

What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? Choose 2 answers

Options:

A.  

Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key. so that the Heroku app can authenticate requests and store the resized images in Salesforce.

B.  

Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce.

C.  

Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce.

D.  

Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce.

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

Free Exams Sample Questions