[UPDATED 2023] Free Salesforce PDI Exam Questions Self-Assess Preparation [Q94-Q112]

Share

[UPDATED 2023] Free Salesforce PDI Exam Questions Self-Assess Preparation

PDI Free Sample Questions to Practice One Year Update

NEW QUESTION # 94
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 an additional standard controller for Accounts.
  • B. Use the (!contact.Account.Name) merge field syntax.
  • C. Use additional Apex logic within the controller to query for the Name field.
  • D. Use SOQL syntax to find the related Accounts Name field.

Answer: B


NEW QUESTION # 95
Which two types of process automation can be used to calculate the shipping cost for an Order when the Order is placed and apply a percentage of the shipping cost of some of the related Order Products?
Choose 2 answers

  • A. Process Builder
  • B. Flow Builder
  • C. Workflow Rule
  • D. Approval Process

Answer: B


NEW QUESTION # 96
When is an Apex Trigger required instead of a Process Builder Process?

  • A. When multiple records related to the triggering record need to be updated
  • B. When a record needs to be created
  • C. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.
  • D. When a post to Chatter needs to be created

Answer: C


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

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

Answer: C


NEW QUESTION # 98
For which three items can a trace flag be configured? (Choose three.)

  • A. Process Builder
  • B. User
  • C. Apex Class
  • D. Apex Trigger
  • E. Visualforce

Answer: B,C,D


NEW QUESTION # 99
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?

  • A. REST resource path URL
  • B. Force.com IDE REST Explorer tab
  • C. Developer Console REST tab
  • D. Workbench REST Explorer

Answer: D


NEW QUESTION # 100
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

  • A. Use a validation rule.
  • B. Use a trigger.

Answer: A,B


NEW QUESTION # 101
What are two ways that a controller and extension can be specified on a Visualforce page?
Choose 2 answers

  • A. apex:page controllers="Account, myControllerExtension"
  • B. Qo apex:page standardController="Account" extensions="myControllerExtension"
  • C. apex:page controller="Account" extensions="myControllerExtension""
  • D. a@pex:page=Account extends="myControllerExtension"

Answer: B,C


NEW QUESTION # 102
A developer needs to allow users to complete a form on an Account record that will create a record for a custom object. The form needs to display different fields depending on the user's job role. The functionality should only be available to a small group of users.
Which three things should the developer do to satisfy these requirements?
Choose 3 answers

  • A. Add a dynamic action to the user's assigned page layouts.
  • B. Create a custom permission for the users.
  • C. Add a dynamic action to the Account record page.
  • D. Create a dynamic form.
  • E. Create a Lightning web component.

Answer: B,C,D


NEW QUESTION # 103
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

  • A. Map <sObject> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
  • B. List<List < sObject>> searchList = (SELECT Name, ID FROM Contact, Lead WHERE Name like '%ACME%');
  • C. List <sObject> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
  • D. List<List <sObject>> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);

Answer: D


NEW QUESTION # 104
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which tool should they use to deploy to the sandbox?

  • A. VSCode
  • B. Developer Console
  • C. Ant Migration Tool
  • D. Change Sets

Answer: C


NEW QUESTION # 105
When creating unit tests in Apex, which statement is accurate?Choose 2

  • A. Unit tests with multiple methods result in all methods failing every time one method fails.
  • B. System Assert statements that do not Increase code coverage contribute important feedback in unit tests
  • C. Triggers do not require any unit tests in order to deploy them from sandbox to production.
  • D. Increased test coverage requires large test classes with many lines of code in one method.

Answer: B,D


NEW QUESTION # 106
What should a developer do to check the code coverage of a class after running all tests?

  • A. View Use cede coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.
  • B. Select and run the class on the Apex Test Execution page in the Developer Console.
  • C. View the Code Coverage column in the list view on the Apex Classes page.
  • D. View the Class Test Percentage tab on the Apex Class fist view m Salesforce Setup.

Answer: D


NEW QUESTION # 107
Which feature should a developer use to update an inventory count on related Product records when the status of an Order is modified to indicate it is fulfilled?

  • A. Lightning component
  • B. Process Builder process
  • C. Workflow rule
  • D. Visualforce page

Answer: B


NEW QUESTION # 108
What is the result of the following code?

  • A. The record will not be created and a exception will be thrown.
  • B. The record will not be created and no error will be reported.
  • C. The record will be created and a message will be in the debug log.
  • D. The record will be created and no error will be reported.

Answer: B


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

  • A. Use a try/catch with a custom exception class.
  • B. Perform the DML using the Database.upsert() method
  • C. Include <apex:messages> on the Visualforce page.
  • D. Add custom controller attributes to display the message.

Answer: C

Explanation:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_message.htm


NEW QUESTION # 110
Which three resources in an Azure Component can contain JavaScript functions?

  • A. Controllers
  • B. helper
  • C. Design
  • D. Style
  • E. Renderer

Answer: A,B,E


NEW QUESTION # 111
what are the methods used to show input in classic and lightning ?

Answer:

Explanation:
Use visualforce page in classic and lightning component in lightning


NEW QUESTION # 112
......

Real exam questions are provided for Salesforce PDI tests, which can make sure you 100% pass: https://www.test4engine.com/PDI_exam-latest-braindumps.html

Download PDI exam with Salesforce PDI Real Exam Questions: https://drive.google.com/open?id=1QfV-51qTUU95z7KW2pQFLVnU7cpNj5ZS