Salesforce Platform Developer I PDI Exam Dumps [Updated 2022] For Good Learning Online

Do you want to be Platform Developer I (PDI) certified? This certification encompasses the fundamental programmatic capabilities of the Lightning Platform to develop custom business logic and interfaces to extend Salesforce using Apex, Visualforce, and basic Lightning Component. When preparing for the PDI exam, choose the PDI exam dumps of DumpsBase, which contain all the latest PDI dumps questions and answers to be your suitable learning materials for passing the Salesforce Platform Developer I certification exam on the first try.

Read Salesforce Platform Developer I PDI Free Dumps Questions Below

1. A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated.

What is the most efficient way to ensure a value is selected every time a record is saved?

2. An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web components to use.

What is the correct definition of a Lightning Web component property that uses the getAccounts method?

3. A primaryid_c custom field exists on the candidate_c custom object. The filed is used to store each candidate's id number and is marked as Unique in the schema definition.

As part of a data enrichment process. Universal Containers has a CSV file that contains updated data for all candidates in the system, the file contains each Candidate's primary id as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.

Which technique should the developer implement to streamline the data upload?

4. A developer created a weather app that contains multiple Lightning web components.

One of the components, called Toggle, has a toggle for Fahrenheit or Celsius units. Another component, called Temperature, displays the current temperature in the unit selected in the Toggle component

When a user toggles from Fahrenheit to Celsius or vice versa in the Toggle component, the information must be sent to the Temperature component so the temperature can be converted and displayed.

What is the recommend way to accomplish this?

5. 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?

6. A developer wants to mark each Account in a List<Account> as either or Inactive based on the LastModified field value being more than 90 days.

Which Apex technique should the developer use?

7. A developer of Universal Containers is tasked with implementing a new Salesforce application that must be able to by their company's Salesforce administrator.

Which three should be considered for building out the business logic layer of the application? Choose 3 answers

8. A developer has a VF page and custom controller to save Account records. The developer wants to display any validation rule violation to the user.

How can the developer make sure that validation rule violations are displayed?

9. How can a developer implement this feature?

10. A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system.

Whithin the class, the developer identifies the following method as a security threat:

List<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); }

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

11. Universal Containers wants Opportunities to no longer be editable when reaching the Closed/Won stage.

How should a developer accomplish this?

12. Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers

13. Universal Containers decides to use exclusively declarative development to build out a new Salesforce application.

Which three options should be used to build out the database layer for the application? Choose 3 answers

14. While writing an Apex class that creates Accounts, a developer wants to make sure that all required fields are handled properly.

Which approach should the developer use to be sure that the Apex class works correctly?

15. A Visual Flow uses an apex Action to provide additional information about multiple Contacts, stored in a custom class, contactInfo.

Which is the correct definition of the Apex method that gets additional information?

16. What are three techniques that a developer can use to invoke an anonymous block of code? (Choose three.)

17. A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default } |

Opportunity record type, and set certain default values based on the record type before inserting the record. i, JCalculator

How can the developer find the current user's default record type? ns

18. As a part of class implementation a developer must execute a SOQL query against a large data ser based on the contact object.

The method implementation is as follows.

Which two methods are best practice to implement heap size control for the above code? (Choose 2 Answers)

19. What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components? Choose 3 answers

20. Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience.

What should the developer do to fulfill the business request in the quickest and most effective manner?

21. While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org.

How should the Developer overcome this problem?

22. Universal container wants a list button to display a visualforce page that allows users to edit multiple records which visualforce feature supports this requirement.

23. A developer wants to retrieve the Contacts and Users with the email address '[email protected]'.

Which SOSL statement should the developer use?

24. Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls.

At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.

What should a developer use to satisfy this requirement?

25. A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page.

Without writing unnecessary code, which controller should be used for this purpose?

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

27. Which two events need to happen when deploying to a production org? Choose 2 answers

28. An org has two custom objects:

* Plan_c, that has a master-detail relationship to the Account object.

* Plan_item_c, that has a master-detail relationship to the plan_C object.

What should a developer use to create a Visualforce section in the Account page layout that displays all of the plan.. Account and all of the Plan_item_c records related to those plan_c records.

29. A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.

Which three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers

30. What are two ways that a controller and extension can be specified on a Visualforce page? Choose 2 answers

31. When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

32. A developer needs to prevent the creation of Request_c records when certain conditions exist in the system. A RequestLogic class exists to checks the conditions.

What is the correct implementation?

33. A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 account records with unique names.

What two things should be done to create the test data within the unit test with the least amount of code? Choose 2 answers

34. Which three statements are true regarding custom exceptions in Apex? (Choose three.)

35. A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.

What should a developer do to allow their code to move some existing Orderltem records to a new Order record?

36. 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

37. Which two examples above use the system. debug statements to correctly display the results from the SOQL aggregate queries? Choose 2 answers

38. A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); }

Which is the correct implementation to use the PaymentProcessor interface class?

39. Universal Containers (UC) decided it will not to send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error.

What is the appropriate publish/subscribe logic to meet these requirements?

40. Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records. which Visualforce feature supports this requirement?

41. Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available.

Which method should be used to calculate the estimated ship date for an Order?

42. Universal Container use a simple order Management app. On the Order Lines, the order line total is calculated by multiplying the item price with the quantity ordered. There is a Master-Detail relationship between the Order and the Order Lines object.

What is the practice to get the sum of all order line totals on the order header?

43. A developer created these three Rollup Summary fields in the custom object, Project_ct,

The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project.

Which should the developer use to Implement the business requirement in order to minimize maintenance overhead?

44. which statement is true regarding execution order when triggers are associated to the same object and event?

45. Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order will be imported into Salesforce.

46. A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component.

In which two ways can this be accomplished? Choose 2 answers

47. If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers

48. A custom object Trainer_c has a lookup field to another custom object Gym___c.

Which SOQL query will get the record for the Viridian City gym and it's trainers?

49. A developer creates a custom exception as shown below:

What are two ways the developer can fire the exception in Apex? Choose 2 answers

50. 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?

51. Which statement should be used to allow some of the records in a list of records to be inserted rf others fail to be inserted?

52. Which annotation exposes an Apex class as a RESTful web service?

53. What can used to delete components from production?

54. What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example?

55. Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?

A)

B)

C)

D)

56. what are the three languages used in the visualforce page?

57. A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org.

Which tool should the developer use to troubleshoot?

58. Which code in a Visualforce page and/or controller might present a security vulnerability?

59. How does the Lightning Component framework help developers implement solutions faster?

60. Which annotation exposes an Apex class as a RESTful web service?

61. A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable.

Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?

62. Which three statements are true regarding trace flags? (Choose three.)

63. 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?

64. A team of many developers work in their own individual orgs that have the same configuration at the production org.

Which type of org is best suited for this scenario?

65. A developer has requirement to write Apex code to update a large number of account records on a nightly basis. The system administrator needs to be able to schedule the class

to run after business hours on an as-needed basis.

Which class definition should be used to successfully implement this requirement?

66. The following automations already exist on the Account object;

• A workflow rule that updates a field when a certain criteria is met

• A custom validation on a field

• A How that updates related contact records

A developer created a trigger on the Account object.

What should the developer consider while testing the trigger code?

67. A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience.

What should the developer do to provide the custom user interface?

68. A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override.

What is the correct implementation of the ShippingCalculator class?

69. A Next Best Action strategy uses an Enhance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors.

What is the correct definition of the Apex method?

70. Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage.

Which two strategies should a developer use to accomplish this? Choose 2 answers

71. Where are two locations a developer can look to find information about the status of asynchronous or future methods? Choose 2 answers

72. A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override.

What is the correct implementation of the ShippingCalculator class?

73. Universal Container uses Salesforce to create orders.

When an order is created, it needs to sync with the-in-house order fulfillment system. The order fulfillment system can accept SOAP messages over the HTTPS. If the connection fails, messages should be retried for up to 24 hours.

What is the recommended approach to sync the orders in Salesforce with the order fulfillment system?

74. Which standard field is required when creating a new contact record?

75. Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage.

Which two strategies can a developer use to accomplish this? Choose 2 answers

76. A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors.

Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

77. Which three web technologies can be integrated into a Visualforce page? (Choose three.)

78. Refer to the following code that runs in an Execute Anonymous block:

79. A developer uses a loop to check each Contact in a list. When a Contact with the Title of “Boss” is found, the Apex method should jump to the first line of code outside of the for loop.

Which Apex solution will let the developer implement this requirement?

80. Which three resources in an Azure Component can contain JavaScript functions?


 

Updated Platform Developer I PDI Dumps Questions V12.02 [2022] - Clear PDI Exam Smoothly
Real Salesforce DEX-450 Exam Dumps Help You Pass DEX-450 Exam On The First Try

Add a Comment

Your email address will not be published. Required fields are marked *