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

    Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name.

    What is the best solution to assign the case to the appropriate support representative?

    A. Use a trigger on the Case object.
    B. Use a formula field on the Case object.
    C. Use a validation rule on the Case object.
    D. Use an Assignment Flow element.

  • Question 252:

    A business implemented a magnification plan to encourage its customers to watch some educational videos.

    Customers can watch videos over several days, and their progress is recorded. Award points are granted to customers for all completed videos. When the video is marked as completed in Salesforce, an external web service must be called so that points can be awarded to the user.

    A developer implemented these requirements in the after update trigger by making a calf to an external web service. However, a System.CalloutException is occurring.

    What should the developer do to fix this error?

    A. Surround the external call with a try-catch block to handle the exception.
    B. Write a REST service to integrate with the external web service.
    C. Move the callout to an asynchronous method with structure (callout=true) annotation.
    D. Replace the after update trigger with a before insert trigger.

  • Question 253:

    Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1, 000,000. A developer created the following trigger on the Account object to satisfy this requirement.

    Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts.

    However, when the administrator tries to upload a list of 179 accounts using Data Loader, it fails with system, Exception errors.

    Which two actions should the developer take to fix the code segment shown above? Choose 2 answers

    A. Query for existing opportunities outside the for loop.
    B. Check if all the required fields for Opportunity are being added on creation.
    C. Move the DML that saves opportunities outside the for loop.
    D. Use Database query to query the opportunities.

  • Question 254:

    A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class.

    Change Set deployment to production fails with the test coverage warning:

    "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required."

    What should the developer do to successfully deploy the new Apex trigger and helper class?

    A. Run the tests using the Run All Tests' method.
    B. Remove the failing test methods from the test class
    C. Create a test class and methods to cover the Apex trigger.
    D. Increase the test class coverage on the helper class.

  • Question 255:

    A developer is embedding a Lightning component inside a Visualforce page.

    Which tag is required to include the Lightning framework?

    A. apex:includeLightning/
    B. ltng:require
    C. apex:slds/
    D. lightning:container

  • Question 256:

    A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank.

    Which automation allows the developer to satisfy this requirement in the most efficient manner?

    A. An Apex trigger on the Opportunity object
    B. An error condition formula on a validation rule on Opportunity
    C. A record trigger flow on the Opportunity object
    D. An approval process on the Opportunity object

  • Question 257:

    AW Computing (AWC) handles orders In Salesforce and stores Its product Inventory In a fter, inventory_c, on a custom object, Product_c. When en order for a Product_c Is placed, the inventory_c field Is reduced by the quantity of the order using an Apex trigger.

    AWC wants the real-time inventory reduction for a product to be sent to many of Its external systems, Including some future systems the company Is currently planning.

    What should a developer add to the code at the placeholder to meet these requirements?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 258:

    Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation.

    What would be the best solution for this requirement?

    A. Submit a REST API Callout with a JSON payload and validate the fields on a third party system
    B. Use a before-save Apex trigger on the Lead object to validate the email address and display an error message if it is invalid
    C. Use a custom Lightning Web component to make a callout to validate the fields on a third party system.
    D. Use an Approval Process to enforce the completion of a valid email address using an outbound message action.

  • Question 259:

    A developer needs to schedule Apex code to run nightly.

    Which interface should the Apex class implement?

    A. Batchable
    B. Queueable
    C. Schedulable
    D. Callable

  • Question 260:

    Which two sfdx commands can be used to add testing data to a Developer sandbox?

    A. Forced: data:bulk:upsert
    B. Forced: data: object :upsert
    C. Forced: data: tree: upsert
    D. Forced: data:async:upsert

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.