Free Salesforce (PDI) Certification Sample Questions with Online Practice Test
PDI Certification Study Guide Pass PDI Fast
NEW QUESTION 50
Which user can edit a record after it has been locked for approval? (Choose 2)
- A. A user who is assigned as the current approver
- B. Any user who approved the record previously
- C. Any user with a higher role in the hierarchy
- D. An administrator
Answer: A,D
NEW QUESTION 51
Universal Containers wants a list button to display aVisualforce page that allows users to edit multiple records.
which Visualforce feature supports this requirement?
- A. Controller extension
- B. Custom controller
- C. RecordSetVar page attribute
- D. <apex:listButton> tag
Answer: C
NEW QUESTION 52
When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers
- A. Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.
- B. Data import wizard is a client application provided by Salesforce.
- C. Developer and Developer Pro sandboxes have different storage limits.
- D. Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.
Answer: B,C
NEW QUESTION 53
A developer has the controller class below.
Which code block will run successfully in an execute anonymous window?
- A. myFooController m = new myFooController();System.assert(m.prop ==null);
- B. myFooController m = new myFooController();System.assert(m.prop ==1);
- C. myFooController m = new myFooController();System.assert(m.prop !=null);
- D. myFooController m = new myFooController();System.assert(m.prop ==0);
Answer: A
NEW QUESTION 54
What should a developer use to implement an automate approval process submission for case?
- A. A workflow rules.
- B. An assignment rules.
- C. Process builder.
- D. Scheduled apex.
Answer: C
NEW QUESTION 55
A developer has created a Visualforce Page and Apex Controller that uses the With Sharing keyword. The page will be used of by Sales Managers and should only display Accounts owned by Sales Representatives who report to the running Sales Manager. The organization-wide sharing for Accounts is set to Private. Which additional set of stops should the developer take?
- A. Create one Profile, one Permission Set, and two Roles.
- B. Create one Profile, two Permission Sets, and one Role.
- C. Create two Profiles, one Permission Set, and one Role.
- D. Create one Profile, one Permission Set, and one Role.
Answer: A
NEW QUESTION 56
Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer ad to create the most efficient model that supports the business need?
- A. Add a Master-Detail field on the Account object to the Global Address object
- B. Add a Lookup field on the Global Address object to the Account object
- C. Add a Lookup field on the Account object to the Global Address object.
- D. Add a Master-Detail field on the Global Address object to the Account object.
Answer: D
NEW QUESTION 57
The sales team at universal container would like to see a visual indicator appear on both account and opportunity page layout to alert salespeople when an account is late making payments or has entered the collections process. What can a developer implement to achieve this requirement without having to write custom code?
- A. Formula field
- B. Workflow rule
- C. Roll-up summary field
- D. Quick action
Answer: A
NEW QUESTION 58
A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of tests allowing them to test independent requirements various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?
- A. Add @IsTest(seeAllData=true) at the start of the unit test class
- B. Use @TestSetup with a void method
- C. Create test data before test.startTest() in the test unit.
- D. Create a mock using Stub API
Answer: B
NEW QUESTION 59
A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?
- A. No changes are made to the data.
- B. Both the Apex Trigger and Workflow Rule are fired only once.
- C. The Workflow Rule is fired more than once.
- D. The Apex Trigger is fired more than once.
Answer: D
NEW QUESTION 60
A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: D
NEW QUESTION 61
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?
- A. Override the Contact's Edit button with a Lightning page Salesforce Classic and a Visualforce page in Lightning Experience.
- B. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience.
- C. Override the Contact's Edit button with a Lightning component in Salesforce Classic and a Lightning component in Lightning experience.
- D. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning page in Lightning experience.
Answer: B
NEW QUESTION 62
Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers
- A. Create an Opportunity Validation Rule to generate an error on insert
- B. Create an Account Trigger to generate an error on Opportunity insert
- C. Create an Opportunity Workflow Rule to auto-close the Opportunity
- D. Create an Account Roll-up Summary field to count open Opportunities
Answer: A,D
NEW QUESTION 63
A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard.
Which approach should the developer use to accomplish this declaratively?
- A. A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard
- B. A Process Builder process that updates a field on the timecard when a timecard entry is created
- C. A Visualforce page that calculates the total number of hours for a timecard and displays it on the page
- D. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field
Answer: A
NEW QUESTION 64
How can a developer set up a debug log on a specific user?
- A. Create Apex code that logs code actions into a custom object.
- B. Ask the user for access to their account credentials, log in as the user and debug the issue.
- C. It is not possible to setup debug logs for users other than yourself.
- D. Set up a trace flag for the user, and define a logging level and time period for the trace.
Answer: D
NEW QUESTION 65
Which action causes a before trigger to fire by default for Accounts?
- A. Converting Leads to Contact accounts
- B. Updating addresses using the Mass Address update tool
- C. Importing data using the Data Loader and the Bulk API
- D. Renaming or replacing picklist
Answer: C
NEW QUESTION 66
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?
- A. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.
- B. Rewrite all Visualforce pages asLightning components.
- C. Set the attribute enableLightning to treu in the definition.
- D. Enable Available for Lightning Experience, Lightning Comminities, and the mobile app on Visualforce pages used by the custom application.
Answer: C
NEW QUESTION 67
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?
- A. Total number of SOQL queries issued
- B. Total number of records processed as a result of DML statements
- C. Total number of DML statement issued
- D. Total number of records retrieved by SOQL queries
Answer: D
NEW QUESTION 68
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or update. The field update in the workflow rule is configured to not re-evaluate workflow rules. What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION 69
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?
- A. Write a class that extends HTTPCalloutMock.
- B. Write a class that extends WebserviceMock
- C. Write a class that implements the WebserviceMock interface.
- D. Write a class that implements the HTTPCalloutMock interface.
Answer: D
NEW QUESTION 70
What should a developer use to implement an automatic Approval Process submission for Cases?
- A. Process Builder
- B. Scheduled Apex
- C. An Assignment Rule
- D. A Workflow Rule
Answer: A
NEW QUESTION 71
What can a Lightning Component contain in its resource bundle? Choose 2 answer
- A. Build scripts for minification
- B. Custom client side rendering behavior.
- C. CSS styles scoped to the component
- D. Properties files with global settings
Answer: B,C
NEW QUESTION 72
A business implemented a magnification plan to encourage its customers to watch some educational videos.
Customers can watch videos over several days, and their progress is recorded. Award points are granted to customers for all completed videos. When the video is marked as completed in Salesforce, an external web service must be called so that points can be awarded to the user.
A developer implemented these requirements in the after update trigger by making a calf to an external web service. However, a System.CalloutException is occurring.
What should the developer do to fix this error?
- A. Replace the after update trigger with a before insert trigger.
- B. Surround the external call with a try-catch block to handle the exception.
- C. Move the callout to an asynchronous method with structure (callout=true) annotation.
- D. Write a REST service to integrate with the external web service.
Answer: C
NEW QUESTION 73
Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers
- A. String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
- B. String qryName = '%' + String.enforceSecurityChecks(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
- C. String qryName = '%' + String.escpaeSingleQuotes(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
- D. String qryName = '%' + name '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE
:qryNAme'; List queryResults = Database.query(qryString);
Answer: A,B
NEW QUESTION 74
What are three ways for 2 developer to execute tests in an org? Choose 3 answers
- A. Metadata APT
- B. SalesforceDX
- C. Bulk API
- D. Setup Menu
- E. Tooling API
Answer: B,D,E
NEW QUESTION 75
......
Get Perfect Results with Premium PDI Dumps Updated 151 Questions: https://www.actualpdf.com/PDI_exam-dumps.html
PDI Dumps PDF 2023 Program Your Preparation EXAM SUCCESS: https://drive.google.com/open?id=1AT_UGT_SjybRnbq1v3THZvXljxGFp8Lh
