logo
Exam overview and study plan

Certified Platform Developer Practice Questions

Certified Platform Developer

Read questions, check verified answers and discuss the reasoning. Use reading options to shape your revision, or switch to the simulator for timed practice.

View 81 free questions

81 questions in this view

Page 1 of 14

Question 1

Universal Containers (UC) uses out-of-the-box order management, that has a Master-Detail relationship between Order and Order Line Item.

UC stores the availability date on each Order Line Item and Orders are only shipped when all of the Order Line Items are available.

Which method should be used to calculate the estimated ship date for an Order?

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.

Question 2

A developer creates a Lightning web component that imports a method within an Apex class. When a Validate button is pressed, the method runs to execute complex validations. 

In this implementation scenario, which two options are part of the Controller according to the MVC architecture?

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.

Question 3

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?

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.

Question 4

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of tests allowing them to test independent requirements for various types of Salesforce Cases.

Which approach can efficiently generate the required data for each unit test?

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.

Question 5

A developer considers the following snippet of code:

Boolean isOK;
integer x;
String theString = 'Hello';

if (isOK == false && theString == 'Hello'){
   x = 1;
} else if (isOK == true && theString == 'Hello') {
   x = 2;
} else if (isOK != null && theString == 'Hello'){
   x = 3;
} else {
   x = 4;
}


Based on this code, what is the value of x?

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.

Question 6

Universal Containers decides to use exclusively declarative development to build out a new Salesforce application.

Which three options should be used to build out the database layer for the application?

Select an answer above, then submit your vote. Reading or practicing does not cast a vote.