Salesforce PDI Online Practice
Questions and Exam Preparation
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
:May 25, 2026
Salesforce PDI Online Questions &
Answers
Question 131:
An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship.
How can this be achieved?
A. Write a trigger on the Opportunity object and use tree sorting to sum the amount for all related child objects under the Opportunity. B. Use the Streaming API to create real-time roll-up summaries. C. Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity. D. Use the Metadata API to create real-time roll-up summaries.
C. Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity.
Explanation
Why a Trigger on the Child Object?
Since the relationship is not master-detail, a trigger on the child object can perform aggregate calculations and update the parent Opportunity.
Why Not Other Options?
A: Tree sorting is unnecessary and unrelated to roll-up summaries.
B and D: Neither Streaming API nor Metadata API is suitable for real-time roll-up calculations.
A developer created a new after insert trigger on the Lead object that creates Task records for each Lead.
After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement.
This causes the integration process in the outside system to stop, requiring a manual restart.
Which change should the developer make to allow the integration to continue when some records in a batch cause failures due to the Task insert statement, so that manual restarts are not needed?
A. Use the Database method with allow one set to false. B. Deactivate the trigger before the integration runs. C. Remove the Apex class from the integration user's profile. D. Use a try-catch block after the insert statement.
A. Use the Database method with allow one set to false.
Explanation
A try-catch block allows the batch to continue processing even if some records cause errors. Errors can be logged for review, ensuring the integration process does not stop entirely.
Question 134:
AW Computing tracks order information in custom objects called order_c and order_Line_ c - Currently, all shipping information is stored in the order_c object.
The company wants to expand Its order application to support split shipments so that any number of order_Line_c records on a single order_c can be shipped to different locations.
What should a developer add to fulfill this requirement?
A. Order_shipment_Group_c object and master-detail field on order_Line_c B. Order_shipment_Group_c object and master-detail field on order_c C. Order_shipment_Group_c object and master-detail field to order_c and Order Line_c D. Order_shipment_Group_c object and master-detail field on order_shipment_Group_c
C. Order_shipment_Group_c object and master-detail field to order_c and Order Line_c
Explanation
Question 135:
A developer is working on a project to import data from an external system into Salesforce. The data contains sensitive information that should not be visible to all users in Salesforce.
What should the developer do to ensure that the data is secure?
A. Use a third-party tool to encrypt the sensitive data before importing it into Salesforce. B. Use the Apex Data Loader to import the into and write Apex code to handle security and access control. C. Use the Data Import Wizard to import the data arid set up field-level security to restrict access to sensitive fields. D. Use the Salesforce CLI to import the data and set up user permissions to restrict access to sensitive data.
C. Use the Data Import Wizard to import the data arid set up field-level security to restrict access to sensitive fields.
Explanation
The Data Import Wizard allows importing data while adhering to Salesforce's sharing and security model. By setting field-level security, sensitive fields can be hidden from unauthorized users.
Other Options:
Option A: Encrypting data externally is unnecessary since Salesforce has built-in security features.
Option B: Using the Data Loader with Apex adds unnecessary complexity.
Option D: The Salesforce CLI does not provide direct data import capabilities with security settings.
Question 136:
Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?
A. fire() B. SegdetesEvent (} C. FireEvent() D. emit()
A. fire()
Explanation
Option A: The fire() method is used to publish Aura application events in the traditional publish- subscribe model.
Not Suitable:
Option B: sendEvent() is not a valid method for Aura events.
Option C: FireEvent() does not exist.
Option D: emit() is not part of the Aura event framework.
Question 137:
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?
A. Use a LATEST formula on each of the latest availability date fields. B. Use a CEILING formula on each of the latest availability date fields. C. Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order. D. Use a MAX Roll-Up Summary field on the latest availability date fields.
D. Use a MAX Roll-Up Summary field on the latest availability date fields.
Explanation
Roll-Up Summary Field:
Since the relationship between Order and Order Line Item is a Master-Detail, a Roll-Up Summary field can be used on the Order object.
The MAX function in a Roll-Up Summary field calculates the latest date (the maximum value) among all the availability dates on the Order Line Items.
Why MAX Roll-Up Summary Field Works:
The latest availability date among the Order Line Items will determine when the entire Order can be shipped.
Why Not Other Options?
A and B: There is no such formula called "LATEST" or "CEILING" applicable to date fields.
C: A COUNT Roll-Up Summary is irrelevant for calculating dates.
Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement, a Salesforce developer adds "Decommissioned" as a picklist value for the Status__c custom field within the Container__c object.
Which two approaches could a developer use to enforce that only Container__c records with a status of "Decommissioned" can be deleted? Choose 2 answers.
A. Before record-triggered flaw B. Apex trigger C. After record-triggered flow D. Validation rule
A. Before record-triggered flaw B. Apex trigger
Explanation
A before record-triggered flow can run on delete and evaluate the Status__c field before the record is removed, allowing the deletion only when the value is "Decommissioned" and blocking it otherwise. An Apex trigger (before delete) can enforce the same rule programmatically by checking the field value and throwing an error if the condition is not met. An after record-triggered flow runs too late because the record is already deleted, and a validation rule does not fire on delete operations.
Question 139:
The Job _Application__c custom object has a field that is a master-detail relationship to the Contact object, where the Contact object is the master.
As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is `Technology', while also retrieving the Contact's Job_Application__c records.
Based on the object's relationships, what is the most efficient statement to retrieve the list of Contacts?
A. Option A B. Option B C. Option C D. Option D
A. Option A
Explanation
This is the only option with valid SOQL syntax. It correctly uses the child relationship name Job_Applications__r in a subquery and references the parent field through the relationship path Account.Industry. The other options contain invalid relationship names (Job_Application__c), incorrect pluralization, or incorrect parent field references (Accounts.Industry).
Question 140:
A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface Which approach can be used to accomplish this?
A. Embed the Lightning Web Component is a Visualforce Component and add directly to the page layout. B. Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout. C. Use a Visualforce page with a custom controller to invoke the Lightning Web Component using a call to an Apex method. D. Wrap the Lightning Web Component in an Aura Component and surface the Aura Component as a Visualforce tab.
B. Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.
Explanation
The Lightning Out library allows a Lightning Web Component to be embedded in a Visualforce page. This approach is the most suitable to make the LWC accessible in Salesforce Classic.
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.