Salesforce PDI Questions & Answers

Full Version: 354 Q&A


Latest PDI Exam Questions and Practice Tests 2025 - Killexams.com


PDI Dumps

PDI Braindumps PDI Real Questions PDI Practice Test

PDI Actual Questions


Salesforce


PDI


Platform Developer I


https://killexams.com/pass4sure/exam-detail/PDI


Question: 72


A developer considers the following snippet of code:



Based on this code, what is the value of x?


  1. 2

  2. 1

  3. 3

  4. 4


Answer: D


Question: 73

Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?


  1. ernit()

  2. fireEvent()

  3. fire()

  4. registerEvent()


Answer: C


Question: 74

Universal Containers has created a unique process for tracking container repairs. A custom field, status c, has been created within the container c custom object. A developer is tasked with sending notifications to multiple external systems every time the value of the status picklist changes.


Which two tools should the developer use to meet the business requirement and ensure low maintenance of the solution? Choose 2 answers


  1. Record-Triggered flow

  2. Apex trigger

  3. Apex callouts

  4. Platform event


Answer: C, D


Question: 75

An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price.


What is the correct implementation?


  1. Implement the line amount as a numeric formula field and the order amount as a roll-up summary field.

  2. Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order.

  3. Implement the Line amount as a currency field and the order amount as a SUM formula field.

  4. Write a process on the Line item that calculates the item amount and order amount and updates the filed on the Line Item and the order.


Answer: C


Question: 76

A developer must create an Apex class, contactcontroller, that a Lightning component can use to search for Contact records. User of the Lightning component should only be able to search Contact records to which they have access.


Which two will restrict the records correctly?


  1. public class ContactController

  2. public with sharing class ContactController

  3. public without sharing class ContactController

  4. public inherited sharing class ContactController


Answer: B, D


Question: 77


A Licensed_Professional c custom object exist in the system with two Master-Detail fields for the following objects: Certification c and Contact. Users with the "Certification Representative" role can access the Certification records they own and view the related Licensed Professionals records, however users with the "Salesforce representative" role

report they cannot view any Licensed professional records even though they own the associated Contact record.


What are two likely causes of users in the "Sales Representative" role not being able to access the Licensed Professional records? Choose 2 answers

  1. The organization’s sharing rules for Licensed_Professional c have not finished their recalculation process.

  2. The organization recently modified the Sales representative role to restrict Read/Write access to Licensed_Professional c

  3. The organization has a private sharing model for Certification c, and Contact is the primary relationship in the Licensed_Professional c object

  4. The organization has a private sharing model for Certification c, and Certification c is the primary relationship in the Licensed_Professional c object.


Answer: A,D


Question: 78

Universal Containers wants Opportunities to no longer be editable when reaching the Closed/Won stage. How should a developer accomplish this?

  1. Use a validation rule.

  2. Use the Process Automation settings.

  3. Use Flow Builder.

  4. Mark fields as read-only on the page layout.


Answer: A


Question: 79

A third-party vendor created an unmanaged Lightning web component. The Salesforce Administrator wishes to expose the component only on Record Page Layouts.


Which two actions should the developer take to accomplish this business objective? Choose 2 answers


  1. Specify lightningCommunity_Page as a target in the XML file.

  2. Ensure isExposed is set to true on the XML file.

  3. Specify lightningCommunity_Page_Layout as a target in the XML file.

  4. Specify lightning_RecordPage as a target in the XML file.


Answer: B,D


Question: 80

A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = ‘A’); Database.insert(a, false);


How should the code be altered to help debug the issue?


  1. Add a System.debug() statement before the insert method

  2. Add a try/catch around the insert method

  3. Set the second insert method parameter to TRUE

  4. Collect the insert method return value a Saveresult variable


Answer: B


Question: 81

Which three statements are accurate about debug logs? Choose 3 answers


  1. Amount of information logged in the debug log can be controlled programmatically.

  2. Debug Log levels are cumulative, where FINE lop level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

  3. Amount of information logged in the debug log can be controlled by the log levels.

  4. To View Debug Logs, "Manager Users" or "View All Data" permission is needed.

  5. To View Debug Logs, "Manager Users" or "Modify All Data" permission is needed.


Answer: A, C


Question: 82

A developer receives an error when trying to call a global server-side method using the ©remoteAction decorator. How can the developer resolve the error?


  1. Change the function signature to be private static.

  2. Add static to the server-side method signature.

  3. A Decorate the server-side method with (static=true).

  4. Decorate the server-side method with (static=false).


Answer: B


Question: 83


A developer creates a Lightning web component that imports a method within an Apex class. When a Validate button is pressed, the method runs to execute complex validations.


In this implementation scenario, which artifact is part of the Controller according to the MVC architecture?

  1. HTML file

  2. JavaScript file

  3. XML file

  4. Apex class


Answer: D


Question: 84


A developer must build application that tracks which Accounts have purchase specific pieces of equal products. Each Account could purchase many pieces of equipment.


How should the developer track that an Account has purchased a piece of equipment.

  1. Use the Asset object.

  2. Use a Custom object.

  3. Use a Master-Detail on Product to Account

  4. Use a Lookup on Account to product.


Answer: C


User: Tatyanna*****

Most of the pdi exam questions came directly from the Killexams.com guide, which accurately provided the answers. I was relieved to have found such an excellent resource and would highly recommend it to anyone preparing for the pdi exam.
User: Dylan*****

Although I used a combination of books and practical experience, this prep unit proved to be very valuable as the questions were exactly what I saw in the exam. It was extremely helpful, and I was able to pass the exam with 89% marks about a month ago. I would recommend this to anyone who thinks that pdi is a tough exam. killexams.com Questions and Answers and Exam Simulator were my sole source of information while preparing for this exam.
User: Jules*****

I had trouble finding material online that perfectly explained only the essential things I needed for this specific topic. But when I found Killexams.com brain practice test material, I was surprised at how well it covered only the essential things without overwhelming me with too much information. I am thrilled to have found and used it for my preparation.
User: Natalie*****

Using the pdi materials from Killexams.com was a crucial part of my preparation for the exam. The comprehensive material and unique approach provided helped me to get a 92% ranking in the exam tests. I was delighted with how it simplified the topics and made everything easier for me. With the help of Killexams.com, I was able to prepare well and excel in my exam.
User: Santiago*****

Success in PDI exams is not only about having a sharp brain, but also having well-qualified and educated coaches or instructors. I feel fortunate to have been acquainted with killexams.com and their great educators. They taught me how to pass my PDI exam with ease, and I thank them from the bottom of my heart for their support.

Features of iPass4sure PDI Exam

  • Files: PDF / Test Engine
  • Premium Access
  • Online Test Engine
  • Instant download Access
  • Comprehensive Q&A
  • Success Rate
  • Real Questions
  • Updated Regularly
  • Portable Files
  • Unlimited Download
  • 100% Secured
  • Confidentiality: 100%
  • Success Guarantee: 100%
  • Any Hidden Cost: $0.00
  • Auto Recharge: No
  • Updates Intimation: by Email
  • Technical Support: Free
  • PDF Compatibility: Windows, Android, iOS, Linux
  • Test Engine Compatibility: Mac / Windows / Android / iOS / Linux

All Salesforce Exams

Salesforce Exams

Certification and Entry Test Exams

Complete exam list