PDI Practice Exam and Study Guides - Verified By Pass4Leader Updated 207 Questions
2021 Updated Verified Pass PDI Study Guides & Best Courses
Difficulty in writing PDI Exam
This Salesforce PDI exam is very difficult to prepare. Because it requires all candidate attention with practice. So, if Candidate wants to pass this Salesforce PDI exam with good grades then he has to choose the right preparation material. By passing the Salesforce PDI exam can make a lot of difference in your career. Many Candidates wants to achieve success in the Salesforce PDI exam but they are failing in it. Because of their wrong selection but if the candidate can get valid and latest Salesforce PDI study material then he can easily get good grades in the Salesforce PDI exam. Pass4Leader providing many Salesforce PDI exam questions that help the candidate to get success in the Salesforce PDI test. Our Salesforce PDI dumps specially designed for those who want to get their desired results in the just first attempt. Salesforce PDI braindump questions provided by Pass4Leader make candidate preparation material more impactful and the best part is that the training material provided by Pass4Leader for Salesforce PDI exams are designed by our experts in the several fields of the IT industry.
NEW QUESTION 100
When creating unit tests in Apex, which statement is accurate?Choose 2
- A. System Assert statements that do not Increase code coverage contribute important feedback in unit tests
- B. Triggers do not require any unit tests in order to deploy them from sandbox to production.
- C. Increased test coverage requires large test classes with many lines of code in one method.
- D. Unit tests with multiple methods result in all methods failing every time one method fails.
Answer: A,C
NEW QUESTION 101
How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?
- A. Use the Flow properties page.
- B. Use the code Coverage Setup page
- C. Use the Apex testresult class
- D. Use SOQL and the Tooling API
Answer: C
NEW QUESTION 102
Where are two locations a developer can look to find information about the status of asynchronous or future cals? Choose 2 answers
- A. Apex Jobs
- B. Paused Flow Interviews component
- C. Time-Based Workflow Monitor
- D. Apex Flex Queue
Answer: A,D
NEW QUESTION 103
A developer considers the following snippet of code:
Based on this code, what is the value of x?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: B
NEW QUESTION 104
What are two correct examples of the model in the salesforce MVC architecture? Choose 2 answers.
- A. Workflow rule on the contact object
- B. Standard account lookup on the contract object
- C. Custom field on the custom wizard_c object
- D. Standard lightning component
Answer: A,D
NEW QUESTION 105
A Visualforce page uses the Contact standard controller. How can a developer display the Name from the parent Account record on the page?
- A. Use additional Apex logic within the controller to query for the Name field.
- B. Use SOQL syntax to find the related Accounts Name field.
- C. Use an additional standard controller for Accounts.
- D. Use the (!contact.Account.Name) merge field syntax.
Answer: D
NEW QUESTION 106
A developer working on a time management application wants to make total hours for each timecard available to applications users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?
- A. A visualforce page that calculates the total number of hours for a timecard and displays it on the page.
- B. A Roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard.
- C. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field.
- D. A Process Builder process that updates a field on the timecard entry is created.
Answer: B
NEW QUESTION 107
How can a developer refer to, or instantiate a PageReference in Apex? Choose 2 answers
- A. By using a PageReference with a partial or full URL.
- B. By using the PageReference.Page() method with a partial or full URL.
- C. By using the Page object and a Visualforce page name.
- D. By using the ApexPages.Page() method with a Visualforce page name.
Answer: A,C
NEW QUESTION 108
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
- A. Use variable binding and replace the dynamic query with a static SOQL. (Missed)
- B. Use the @Readonly annotation and the with sharing keyword on the class.
- C. Use the escapeSingleQuote method to sanitize the parameter before its use. (Missed)
- D. Use a regular expression expression on the parameter to remove special characters.
Answer: B,D
NEW QUESTION 109
A developer has a unit test that is failing. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous Apex Tool. The code then executes without failing. Why did the unit test failed, but not the Execute Anonymous?
- A. The test method calls an @future method.
- B. The test method use a try/catch block
- C. The test method relies on existing data in the database
- D. The test method has a syntax error in the code.
Answer: C
NEW QUESTION 110
Which approach should a developer take to automatically add a "Maintenance Plan" to each Opportunity that includes an "Annual Subscription" when an opportunity is closed?
- A. Build an Opportunity trigger that adds a PriceBookEntry record.
- B. Build an OpportunityLineItem trigger to add an OpportunityLineItem record.
- C. Build an Opportunity trigger that adds an OpportunityLineItem record.
- D. Build a OpportunityLineItem trigger that adds a PriceBookEntry record.
Answer: C
NEW QUESTION 111
Which two statements can a developer use to throw a custom exception of type MissingFieldValueException?
Choose 2 answers.
- A. Throw new MissingFieldValueException();
- B. Throw new MissingFieldValueException ('Problem occurred');
- C. Throw (MissingFieldValueException, 'Problem occurred');
- D. Throw Exception (new MissingFieldValueException());
Answer: A,B
NEW QUESTION 112
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?
- A. REST resource path URL
- B. Workbench REST Explorer
- C. Developer Console REST tab
- D. Force.com IDE REST Explorer tab
Answer: B
NEW QUESTION 113
What are two considerations for custom Apex Exception classes? Choose 2 answers.
- A. Custom Exception class names must end with the word 'Exception'.
- B. Custom Exceptions cannot be extended by other Exception classes.
- C. Custom Exception classes must extend the base Exception class.
- D. Constructor for custom Exceptions can only accept string values as arguments.
Answer: A,C
NEW QUESTION 114
Which three methods help ensure quality data?
- A. Handling an exception in Apex
- B. Adding an error to a field in before trigger
- C. Create a lookup filter
- D. Sending an email alert using a workflow rule
- E. Adding a validation rule
Answer: C,D,E
NEW QUESTION 115
What can be developed using the Lightning Component framework?
- A. Dynamic web sites
- B. Hosted web applications
- C. Single-page web apps
- D. Salesforce integrations
Answer: C
NEW QUESTION 116
How can a developer get all of the available record types for the current user on the case object?
- A. Use SOQL to get all cases
- B. Use case.getrecordtypes()
- C. Use describefieldresult of the case.recordtype field
- D. Use describesobjectresult of the case object
Answer: C
NEW QUESTION 117
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 Unique
- B. Create and populate a custom field on the parent object marked as an External 10.
- C. Create a custom field on the child object of type External Relationship.
Answer: B
NEW QUESTION 118
A company wants to create an employee rating program that allows employees to rate each other. An employees average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records. Which two actions should a developer take to accomplish this task?
- A. Create a master-detail relationship between the Rating and Employee objects.
- B. Create a lookup relationship between the Rating and Employee object.
- C. Create a trigger on the Rating object than updates a field on the Employee object.
- D. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
Answer: D
NEW QUESTION 119
When would a developer use a custom controller instead of a controller extension? Choose 2 answers:
- A. When a Visualforce page should not enforce permissions or field-level security.
- B. When a Visualforce page does not reference a single primary object.
- C. When a Visualforce page needs to replace the functionality of a standard controller.
- D. When a Visualforce page needs to add new actions to a standard controller.
Answer: A,B
NEW QUESTION 120
In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answers
- A. Rich component ecosystem
- B. Server-side run-time debugging
- C. Automatic code generation
Answer: A,C
NEW QUESTION 121
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, f he 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?
- A. Create a before Insert trigger to correctly map the records.
- B. Create a Process Builder on the Candidate_c object to map the records.
- C. A Update the primaryid__c field definition to mark it as an External Id
- D. Upload the CSV into a custom object related to Candidate_c.
Answer: C
NEW QUESTION 122
How should a developer prevent a recursive trigger?
- A. Use a trigger handler.
- B. Use a static Boolean variable.
- C. Use a "one trigger per object" pattern.
- D. Use a private Boolean variable.
Answer: D
NEW QUESTION 123
......
Ultimate Guide to the PDI - Latest Edition Available Now: https://www.pass4leader.com/Salesforce/PDI-exam.html
2021 Updated Verified Pass PDI Exam - Real Questions & Answers: https://drive.google.com/open?id=1oodFUHug3lyDygJGFSp2ZZFFl7xIOCQ_