Salesforce PDI Exam (page: 3)
Salesforce Certified Platform Developer I
Updated on: 28-Jul-2025

Viewing Page 3 of 77

A developer has the controller class below.



Which code block will run successfully in an execute anonymous window?

  1. myFooController m = new myFooController();System.assert(m.prop !=null);
  2. myFooController m = new myFooController();System.assert(m.prop ==0);
  3. myFooController m = new myFooController();System.assert(m.prop ==null);
  4. myFooController m = new myFooController();System.assert(m.prop ==1);

Answer(s): C



Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?

  1. REST resource path URL
  2. Workbench REST Explorer
  3. Developer Console REST tab
  4. Force.com IDE REST Explorer tab

Answer(s): B



What are two benefits of the Lightning Component framework? (Choose two.)

  1. It simplifies complexity when building pages, but not applications.
  2. It provides an event-driven architecture for better decoupling between components.
  3. It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.
  4. It allows faster PDF generation with Lightning components.

Answer(s): B,C



A method is passed a list of generic sObjects as a parameter.
What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?

  1. Use the first three characters of the sObject ID to determine the sObject type.
  2. Use the getSObjectType method on each generic sObject to retrieve the sObject token.
  3. Use the getSObjectName method on the sObject class to get the sObject name.
  4. Use a try-catch construct to cast the sObject into one of the three sObject types.

Answer(s): B



The operation manager at a construction company uses a custom object called Machinery to manage the usage and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to different constructions jobs, and track the dates and costs associated with each job. More than one piece of
machinery can be assigned to one construction job.
What should a developer do to meet these requirements?

  1. Create a lookup field on the Construction Job object to the Machinery object.
  2. Create a lookup field on the Machinery object to the Construction Job object.
  3. Create a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.
  4. Create a Master-Detail Lookup on the Machinery object to the Construction Job object.

Answer(s): A



Viewing Page 3 of 77



Share your comments for Salesforce PDI exam with other users:

TestPD1 8/10/2023 12:22:00 PM

question 18 : response isnt a ?
EUROPEAN UNION


TestPD1 8/10/2023 12:19:00 PM

question 17 : responses arent b and c ?
EUROPEAN UNION