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

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

PDI Practice Questions

Salesforce Certified Platform Developer (Plat-Dev-201)

Last Update 6 hours ago
Total Questions : 204

Dive into our fully updated and stable PDI 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 PDI. Use this test to pinpoint which areas you need to focus your study on.

PDI PDF

PDI PDF (Printable)
$43.75
$124.99

PDI Testing Engine

PDI PDF (Printable)
$50.75
$144.99

PDI PDF + Testing Engine

PDI PDF (Printable)
$63.7
$181.99
Question # 11

Given the following Anonymous block:

Question # 11

What should a developer consider for an environment that has over 10,000 Case records?

Question # 11

What should a developer consider for an environment that has over 10,000 Case records?

Options:

A.  

The transaction will succeed and changes will be committed.

B.  

The try-catch block will handle exceptions thrown by governor limits.

C.  

The transaction will fail due to exceeding the governor limit.

D.  

The try-catch block will handle any DML exceptions thrown,

Discussion 0
Question # 12

(Full question statement)

A developer must create a CreditCardPayment class that provides an implementation of an existing Payment class.

public virtual class Payment {

public virtual void makePayment(Decimal amount) {

// implementation

}

}

Which is the correct implementation?

Options:

A.  

public class CreditCardPayment extends Payment { public virtual void makePayment(Decimal amount) { /* implementation */ } }

B.  

public class CreditCardPayment implements Payment { public virtual void makePayment(Decimal amount) { /* implementation */ } }

C.  

public class CreditCardPayment implements Payment { public override void makePayment(Decimal amount) { /* implementation */ } }

D.  

public class CreditCardPayment extends Payment { public override void makePayment(Decimal amount) { /* implementation */ } }

Discussion 0
Question # 13

How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?

Options:

A.  

apex:page standardController="Notice_c" extensions="myControllerExtension"”

B.  

apex:page controllers="Notice_c, myContcollerExtension"

C.  

apex:pege=Notice extends="myControllerExtension”

D.  

apex:page controller="Notice_c" extensions="myControllerExtension"

Discussion 0
Question # 14

Universal Containers (UC) processes orders in Salesforce in a custom object, Order__c. They also allow sales reps to upload CSV files with thousands of orders at a time.

A developer is tasked with integrating orders placed in Salesforce with UC's enterprise resource planning (ERP) system.

After the status for an Order__c is first set to 'Placed', the order information must be sent to a REST endpoint in the ERP system that can

process one order at a time.

What should the developer implement to accomplish this?

Options:

A.  

Callout from a Queueable class called from a trigger

B.  

Callout from a Batchable class called from a scheduled job

C.  

Flow with a callout from an invocable method

D.  

Callout from an @future method called from a trigger

Discussion 0
Question # 15

Assuming that name is a String obtained by a Visualforce page, which two SOQL queries performed are safe from SOQL injection? (Choose two.)

Options:

A.  

apex

Copy

String query = '%' + name + '%';

List results = [SELECT Id FROM Account WHERE Name LIKE :query];

B.  

apex

Copy

String query = 'SELECT Id FROM Account WHERE Name LIKE \'%' + name.noQuotes() + '%\'';

List results = Database.query(query);

C.  

apex

Copy

String query = 'SELECT Id FROM Account WHERE Name LIKE \'%' + String.escapeSingleQuotes(name) + '%\'';

List results = Database.query(query);

D.  

apex

Copy

String query = 'SELECT Id FROM Account WHERE Name LIKE \'%' + name + '%\'';

List results = Database.query(query);

Discussion 0
Question # 16

What should be used to create scratch orgs?

Options:

A.  

Salesforce CLI

B.  

Sandbox refresh

C.  

Developer Console

D.  

Workbench

Discussion 0
Question # 17

The orderHelper class is a utility class that contains business logic for processing orders. Consider the following code snippet:

Public class without sharing orderHelper {// code implementation

}

A developer needs to create a constant named delivery_multiplier with a value of 4.15. The value of the constant should not change at any time in the code.

How should the developer declare the delivery multiplier constant to meet the business objectives?

Options:

A.  

static decimal DELIVERY_MULTIPLIER = 4.15;

B.  

constant decimal DELIVERY_MULTIPLIER = 4.15;

C.  

static final decimal DELIVERY_MULTIPLIER = 4.15;

D.  

decimal DELIVERY_MULTIPLIER = 4.15;

Discussion 0
Question # 18

The Account object in an organization has a master-detail relationship to a child object called Branch. The following automations exist:

* Roll-up summary fields

* Custom validation rules

* Duplicate rules

developer created a trigger on the Account object.

Which two things should the developer consider while testing the trigger code?

Choose 2 answers

Options:

A.  

Rollup summary fields can cause the parent record to go through Save.

B.  

Duplicate rules are executed once all DML operations commit to the database.

C.  

The trigger may fire multiple times during a transaction.

D.  

The validation rules will cause the trigger to fire again.

Discussion 0
Question # 19

Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a master-detail relationship with the standard Account object.

Based on some internal discussions, the UC administrator tried to change the master-detail relationship to a lookup relationship, but was not able to do so.

What is a possible reason that this change was not permitted?

Options:

A.  

Some of the Vendor records have null for the Account field.

B.  

The Account object has a roll up summary field on the Vendor object.

C.  

The Account object does not allow changing a field type for a custom field.

D.  

The organization wide default for the Vendor object is Public Read/Write.

Discussion 0
Question # 20

If Apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits?

Choose 2 answers

Options:

A.  

The Apex governor limits are reset for each iteration of the execute () method.

B.  

The Apex governor limits cannot be exceeded due to the asynchronaus nature of the transaction.

C.  

The Apex governor limits will use the asynchronous limit levels.

D.  

The Apex governor limits are omitted while calling the constructor of the Apex class.

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

Free Exams Sample Questions