Released Salesforce PDI Updated Questions PDF [Q17-Q40]

Share

Released Salesforce PDI Updated Questions PDF

PDI Dumps and Practice Test (151 Exam Questions)


The Salesforce PDI exam is intended for developers who have experience building custom applications on the Salesforce platform. The exam tests the knowledge and skills of developers in areas such as Apex programming language, Visualforce, and the Salesforce Lightning component framework. Developers who pass the Salesforce PDI exam will have demonstrated their proficiency in using these technologies to build custom applications on the Salesforce platform.


The Salesforce PDI exam consists of 60 multiple-choice questions, and candidates are given 105 minutes to complete the exam. The exam covers a range of topics, including data modeling, Apex programming, Visualforce development, and integration with external systems. Passing the exam requires a score of 65% or higher.

 

NEW QUESTION # 17
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?

  • A. Add a try/catch around the insert method
  • B. Set the second insert method parameter to TRUE
  • C. Collect the insert method return value a Saveresult record
  • D. Add a System.debug() statement before the insert method

Answer: A


NEW QUESTION # 18
A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created. When will the email be sent?

  • A. After Trigger execution.
  • B. Before Committing to database.
  • C. After Committing to database.
  • D. Before Trigger execution.

Answer: C


NEW QUESTION # 19
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?

  • A. Use the without sharing keyword on the class declaration.
  • B. Use the with sharing keyword on the class declaration.
  • C. Use the schema describe calls to determine if the logged-in users has access to the Account object.
  • D. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.

Answer: C


NEW QUESTION # 20
The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:
* Rollup summary fields
* Custom validation rules
* Duplicate rules
A developer created a trigger on the Account object.
What two things should the developer consider while testing the trigger code?
Choose 2 answers

  • A. Rollup summary fields can cause the parent record to go through Save.
  • B. The trigger may fire multiple times during a transaction.
  • C. The validation rules will cause the trigger to fire again.
  • D. Duplicate rules are executed once all DML operations commit to the database.

Answer: A,B


NEW QUESTION # 21
Account acct = {SELECT Id from Account limit 1}; Given the code above, how can a developer get the type of object from acct?

  • A. Call "acct.SobjectType"
  • B. Call "Account.SobjectType"
  • C. Call "Account.getSobjectType()"
  • D. Call "acct.getsObjectType()"

Answer: D


NEW QUESTION # 22
A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.Which kind of relationship would a developer use to relate the Account to the Warehouse?

  • A. Parent -Child
  • B. One -to -Many
  • C. Master -Detail
  • D. Lookup

Answer: D


NEW QUESTION # 23
A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent.
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?
Create a custom field on the child object of type Foreign Key

  • A. Create and populate a custom field on the parent object marked as an External 10.
  • B. Create and populate a custom field on the parent object marked as Unique
  • C. Create a custom field on the child object of type External Relationship.

Answer: A


NEW QUESTION # 24
A company that uses a Custom object to track candidates would like to send candidate information automatically to a third -party human resource system when a candidate is hired. What can a developer do to accomplish this task?

  • A. Create an escalation rule to the hiring manager.
  • B. Create an auto response rule to the candidate.
  • C. Create a workflow rule with an outbound message action.
  • D. Create a Process Builder with an outbound message action.

Answer: C


NEW QUESTION # 25
What is a benefit of the lightning component framework?

  • A. More pre-built components to replicate the salesforce look and feel
  • B. More Centralized control via server-side logic
  • C. Better performance for custom Salesforce1 Mobile Apps
  • D. Better integration with Force.com sites

Answer: A


NEW QUESTION # 26
A developer creates a custom exception as shown below:
What are two ways the developer can fire the exception in Apex? Choose 2 answers

  • A. New ParityException (parity does not match);
  • B. New ParityException( );
  • C. Throw new ParityException (parity does not match);
  • D. Throw new parityException ( );

Answer: C,D


NEW QUESTION # 27
What is a benefit of using an after insert trigger over using a before insert trigger?

  • A. An after insert trigger allows a developer to make a callout to an external service.
  • B. An after insert trigger allows a developer to modify fields in the new record without a query.
  • C. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
  • D. An after insert trigger allows a developer to insert other objects that reference the new record.

Answer: D


NEW QUESTION # 28
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV's package namespace.
Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?

  • A. Declare the class and method using the global access modifier.
  • B. Declare the class as global and use the public access modifier on the method.
  • C. Declare the class and method using the public access modifier.
  • D. Declare the class as public and use the global access modifier on the method.

Answer: A


NEW QUESTION # 29
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?

  • A. @InvocableMethod
    global static List<List<Recommendation>> getLevel(List<ContactWrapper> input)
    { /*implementation*/ }
  • B. @InvocableMethod
    global Recommendation getLevel (ContactWrapper input)
    { /*implementation*/ }
  • C. @InvocableMethod
    global static ListRecommendation getLevel(List<ContactWrapper> input)
    { /*implementation*/ }
  • D. @InvocableMethod
    globalList<List<Recommendation>> getLevel(List<ContactWrapper> input)
    { /*implementation*/ }

Answer: A


NEW QUESTION # 30
A developer wants to handle the click event for a lightning:button componentthe onclick attribute for the component references a javascript function in which resource in the component bundle?

  • A. Controller.js
  • B. Renderer.js
  • C. Helper.js
  • D. Handler.js

Answer: A


NEW QUESTION # 31
Given the following Anonymous Block:

Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?

  • A. The try/catch block will handle any DML exceptions thrown.
  • B. The try/catch block will handle exceptions thrown by governor limits.
  • C. The transaction will succeed and changes will be committed.
  • D. The transaction will fail due to exceeding the governor limit.

Answer: C


NEW QUESTION # 32
An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account. There are no active triggers on the Opportunity object, yet a "maximum trigger depth exceeded" error occurs in certain situations.
Which two reasons possibly explain the Account trigger firing recursively? (Choose two.)

  • A. Changes are being made to the Account during an unrelated parallel save operation.
  • B. Changes to Opportunities are causing cross-object workflow field updates to be made on the Account.
  • C. Changes are being made to the Account during Criteria Based Sharing evaluation.
  • D. Changes to Opportunities are causing roll-up summary fields to update on the Account.

Answer: B,D


NEW QUESTION # 33
Refer to the following code that runs in an Execute Anonymous block:

  • A. The total number of records processed as a result of DML statements will be exceeded.
  • B. The total number of records processed as a result of DML statements will be exceeded
  • C. The total number of DML statements will be exceeded.
  • D. The transaction will succeed and the first ten thousand records will be committed to the database.
  • E. In an environment where the full result set is returned, what is a possible outcome of this code?

Answer: B


NEW QUESTION # 34
What are two valid options for iterating through each Account in the collection List <Account> named AccountList? Choose 2 answers.

  • A. For (Integer i=0; i<AccountList. Size();i++){...}
  • B. For (Account theAccount : AccountList){...}
  • C. For(AccountList){...}
  • D. For (List L : AccountList) {...}

Answer: A,B


NEW QUESTION # 35
What is the minimum log level needed to see user-generated debug statements?

  • A. INFO
  • B. DEBUG
  • C. WARN
  • D. FINE

Answer: B


NEW QUESTION # 36
What should a developer use to implement an automate approval process submission for case?

  • A. An assignment rules.
  • B. Scheduled apex.
  • C. A workflow rules.
  • D. Process builder.

Answer: D


NEW QUESTION # 37
How many levels of child records can be returned in a single SOQL query from one parent object?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: D


NEW QUESTION # 38
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow
* Name
* Amount
* Account
Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)

  • A. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
  • B. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
  • C. Create an after update trigger on the Opportunity object that calls a helper method using
    @Future(Callout=true) to perform the HTTP REST callout.
  • D. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.

Answer: A,D


NEW QUESTION # 39
For which example task should a developer use a trigger rather than a workflow rule?

  • A. To notify an external system that a record has been modified.
  • B. To send an email to hiring manager when a candidate accepts a job offer.
  • C. To set the primary Contact on an Account record when it is saved
  • D. To set the Name field of an expense report record to Expense and the Date when it is saved.

Answer: C


NEW QUESTION # 40
......


The Salesforce PDI (Platform Developer I) Exam is a certification exam designed to test the proficiency of Salesforce developers in building custom declarative and programmatic applications on the Salesforce platform. The exam covers a wide range of topics, including Apex programming language, Visualforce pages, data modeling, security, and testing. Candidates who pass the exam earn the Platform Developer I certification, which is a valuable credential for Salesforce developers seeking to advance their careers.

 

PDI Exam Dumps Pass with Updated 2023 Certified Exam Questions: https://examsites.premiumvcedump.com/Salesforce/valid-PDI-premium-vce-exam-dumps.html