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 11:

    Assuming that name is a String obtained by an tag on a Visualforce page, which two SOQL queries performed are safe from SOQL injection? Choose 2 answers

    A. String query = '%' + name + '%';List results = [SELECT Id FROM Account WHERE Name LIKE :query];
    B. String query = 'SELECT Id FROM Account WHERE Name LIKE \'%' + name.noQuotes() + '%\'';List results = Database.query(query);
    C. String query = 'SELECT Id FROM Account WHERE Name LIKE \'%' + String.escapeSingleQuotes(name) + '%\'';List results = Database.query(query);
    D. String query = 'SELECT Id FROM Account WHERE Name LIKE \'%' + name + '%\'';List results = Database.query(query);

  • Question 12:

    A developer needs to confirm that a Contact trigger works correctly without changing the organization's data.

    What should the developer do to test the Contact trigger?

    A. Use Deploy from the VSCode IDE co deploy an 'insert Contact' Apex class.
    B. Use the New button on the Salesforce Contacts Tab to create a new Contact record.
    C. Use the Test menu on the Developer Console to run oil test classes for the Contact trigger.
    D. Use the Open Execute Anonymous feature on the Developer Console to run an "insert Contact' DML statement.

  • Question 13:

    A developer is creating an app that contains multiple Lightning web components.

    One of the child components is used for navigation purposes. When a user clicks a button called Next in the child component, the parent component must be alerted so it can navigate to the next page.

    How should this be accomplished?

    A. Update a property on the parent.
    B. Call a method in the Apex controller.
    C. Fire a notification.
    D. Create a custom event.

  • Question 14:

    A developer is asked to write helper methods that create test data for unit tests.

    What should be changed in the TestUtils class so that its methods are only usable by unit test methods?

    A. @isTest above line 03.
    B. Add @istest above line 01.
    C. Change public to private on line 01.
    D. Remove static from line 03.

  • Question 15:

    Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.

    Which Visualforce feature supports this requirement?

    A. Standard Controller with Custom List Controller extension
    B. Custom List Controller with recorasetvar page attribute
    C. Controller Extension and tag
    D. Standard controller and the recordsetvar page attribute

  • Question 16:

    A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer identifies the following method as a security threat:

    What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers.

    A. Use variable binding and replace the dynamic query with a static SOQL.
    B. Use the sacapeSingleQuotes method to sanitize the parameter before its use.
    C. Use the Readonly annotation and the with sharing keyword on the class.
    D. Use a regular expression on the parameter to remove special characters.

  • Question 17:

    A developer wrote Apex code that calls out to an external system using REST API.

    How should a developer write the test to prove the code is working as intended?

    A. Write a class that implements HTTPcalloutMock.
    B. Write a class that extends webserviceloo.
    C. Write a class that implements webservicemock.
    D. Write a class that extends HTTPcalloutMock.

  • Question 18:

    A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively.

    Which design framework should the developer consider to ensure scalability and maintainability?

    A. Waterfall Model
    B. Flux (view, action, dispatcher, and store)
    C. Model-View-Controller (MVC)
    D. Agile Development

  • Question 19:

    A developer needs to allow users to create a record from a Lightning record page with some fields automatically populated. JavaScript buttons are no longer supported in Lightning Experience.

    Which feature should be used?

    A. Apex trigger
    B. Record-triggered Flow
    C. Quick Action
    D. Validation rule

  • Question 20:

    The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:

    Which governor limit will likely be exceeded within the Apex transaction?

    A. Total number of SOOL quires issued
    B. Total number of DML statements issued
    C. Total number of records retrieved by SOQL queries
    D. Total number of records processed as a result of DML statements

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.