PDI Exam Details

  • Exam Code
    :PDI
  • Exam Name
    :Salesforce Certification for Platform Developer I (Plat-Dev-201)
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :270 Q&As
  • Last Updated
    :Jul 13, 2026

Salesforce PDI Online Questions & Answers

  • Question 221:

    What should a developer use to fix a Lightning web component bug in a sandbox?

    A. Developer Console
    B. Force.com IDE
    C. Execute Anonymous
    D. VS Code

  • Question 222:

    Which three code lines are required to create a Lightning component on a Visualforce page? Choose 2 answers

    B. $LightningcreateComponent
    C. $Lightning,use
    E. #Lightning,useComponent

  • Question 223:

    A developer is integrating with a legacy on-premise SQL database.

    What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?

    A. External Object
    B. External ID field
    C. Formula field
    D. Lookup field

  • Question 224:

    A developer creates a custom exception as shown below:

    public class ParityException extends Exception { }

    What are two ways the developer can fire the exception in Apex?

    A. throw new ParityException ();
    B. throw new parityException ('parity does not match');
    C. new ParityException ();
    D. new ParityException('parity does not match');

  • Question 225:

    In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce? Choose 2 answers

    A. Rich component ecosystem
    B. Leg capturing via the Debug Logs Setup page
    C. Built-in standard and custom set controllers
    D. Self-contained and reusable units of an application

  • Question 226:

    A company has a custom object, order __c, that has a required, unique external ID field called order Number__c.

    Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of Order __c records using the external ID field?

    A. merge orders;
    B. merge orders Order Number_c;
    C. upsert orders Order Number c;
    D. upsert orders;

  • Question 227:

    A developer created a Lightning web component called statuscomponent to be Inserted into the Account record page.

    Which two things should the developer do to make this component available? Choose 2 answers

    A. Add lightning_Recordpage to the statuscomponent. js file,
    B. Add lightning RecordPage to the statusComp .js-meta.xml file.
    C. Set is Exposes to true In the statuscomponent.js-meta.xml file.
    D. Add Account to the statusComponent. js-meta.xm1 file.

  • Question 228:

    A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an OrderlItem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.

    What should a developer do to allow their code to move some existing OrderItem records to a new Order record?

    A. Add without sharing to the Apex class declaration.
    B. Change the master-detail relationship to an external lookup relationship.
    C. Create a junction object between OrderItem and Order.
    D. Select the Allow reprinting option on the master-detail relationship.

  • Question 229:

    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?

    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.

  • Question 230:

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

    Which two options can be used to build out the business logic layer for this application? Choose 2 answers

    A. Record-Triggered Flow
    B. Batch Jobs
    C. Remote Actions
    D. Validation Rules

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.