PDI MCQs and Practice Test

https://killexams.com/pass4sure/exam-detail/PDI
Download PDF for PDI


PDI MCQs

PDI TestPrep PDI Study Guide PDI Practice Test

PDI Exam Questions


Salesforce


PDI


Platform Developer I


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

Download PDF for 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


KILLEXAMS.COM


Killexams.com is a leading online platform specializing in high-quality certification exam preparation. Offering a robust suite of tools, including MCQs, practice tests, and advanced test engines, Killexams.com empowers candidates to excel in their certification exams. Discover the key features that make Killexams.com the go-to choice for exam success.



Exam Questions:

Killexams.com provides exam questions that are experienced in test centers. These questions are updated regularly to ensure they are up-to-date and relevant to the latest exam syllabus. By studying these questions, candidates can familiarize themselves with the content and format of the real exam.


Exam MCQs:

Killexams.com offers exam MCQs in PDF format. These questions contain a comprehensive

collection of questions and answers that cover the exam topics. By using these MCQs, candidate can enhance their knowledge and improve their chances of success in the certification exam.


Practice Test:

Killexams.com provides practice test through their desktop test engine and online test engine. These practice tests simulate the real exam environment and help candidates assess their readiness for the actual exam. The practice test cover a wide range of questions and enable candidates to identify their strengths and weaknesses.


thorough preparation:

Killexams.com offers a success guarantee with the exam MCQs. Killexams claim that by using this materials, candidates will pass their exams on the first attempt or they will get refund for the purchase price. This guarantee provides assurance and confidence to individuals preparing for certification exam.


Updated Contents:

Killexams.com regularly updates its question bank of MCQs to ensure that they are current and reflect the latest changes in the exam syllabus. This helps candidates stay up-to-date with the exam content and increases their chances of success.

Back to Home