Try Before You Buy

Download a free sample of any of our exam questions and answers

  • 24/7 customer support, Secure shopping site
  • Free One year updates to match real exam scenarios
  • If you failed your exam after buying our products we will refund the full amount back to you.

[Dec 09, 2021] Get to the Top with PDI Practice Exam Questions [Q67-Q83]

Share

[Dec 09, 2021] Get to the Top with PDI Practice Exam Questions

Use Real PDI Dumps Free Sample Questions and Practice Test Engine


How much PDI Exam Cost

The price of the Salesforce PDI Exam is $200 USD.

 

NEW QUESTION 67
Which declarative method helps ensure quality data? (Choose 3)

  • A. Validation Rules
  • B. Workflow alerts
  • C. Lookup Filters
  • D. Page Layouts
  • E. Exception Handling

Answer: A,C,D

 

NEW QUESTION 68
What are two ways a developer can get the status of an enquered job for a class that queueable interface?
Choose 2 answers

  • A. Query the AsyncApexJobe object (Missed)
  • B. View the apex flex Queue
  • C. View the apex Jobs page (Missed)
  • D. View the apex status Page

Answer: A,C

 

NEW QUESTION 69
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 updated. 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: D

 

NEW QUESTION 70
hat are three techniques that a developer can use to invoke an anonymous block of code? Choose 3 answers

  • A. Type code into the developer console and execute it directly
  • B. Create a visualforce page that uses a controller class that is declared without sharing
  • C. Create and execute a test method that does not specify a runas() call
  • D. Type code into the execute anonymous tab in the force.com IDE and click execute
  • E. Use the SOAP API to make a call to execute anonymous code

Answer: A,D,E

 

NEW QUESTION 71
On which object can an administrator create a roll-up summary field?

  • A. Any object that is on the parent side of a lookup relationship.
  • B. Any object that is on the master side of a master-detail relationship.
  • C. Any object that is on the detail side of a master-detail relationship.
  • D. Any object that is on the child side of a lookup relationship.

Answer: B

 

NEW QUESTION 72
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 updated. 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: D

 

NEW QUESTION 73
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 Trigger execution.
  • C. Before Committing to database.
  • D. After Committing to database.

Answer: D

 

NEW QUESTION 74
What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?

  • A. A constructor that initializes a private Opportunity variable.
  • B. The Opportunity StandardController for pre -built functionality.
  • C. A callback constructor to reference the StandardController.
  • D. The StandardSetController to support related lists for pagination.

Answer: B

 

NEW QUESTION 75
What are three ways for a developer to execute tests in an org? Choose 3.

  • A. Setup Menu
  • B. Salesforce DX
  • C. Metadata API.
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_testing.htm https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apextestsuite.htm
  • D. Bulk API
  • E. Tooling API

Answer: A,B,E

 

NEW QUESTION 76
A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension.
The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?

  • A. controller="Case" and extensions="myControllerExtension"
  • B. extensions="myControllerExtension"
  • C. controller="myControllerExtension"
  • D. standardController="Case" and extensions="myControllerExtension"

Answer: D

 

NEW QUESTION 77
In the Lightning Component framework, where is client-side controller logic contained?

  • A. Apex
  • B. JavaScript
  • C. Visualforce
  • D. HTML

Answer: B

 

NEW QUESTION 78
Which statement should a developer avoid using inside procedural loops? (Choose 2)

  • A. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime() );
  • B. If(o.accountId == a.id)
  • C. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId = :a.Id];
  • D. Update contactList;

Answer: C,D

 

NEW QUESTION 79
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 the escapeSingleQuote method to sanitize the parameter before its use.
  • B. Use variable binding and replace the dynamic query with a static SOQL.
  • C. Use the @Readonly annotation and the with sharing keyword on the class.
  • D. Use a regular expression on the parameter to remove special characters.

Answer: A,B

 

NEW QUESTION 80
Which actions can a developer perform using the Schema Builder?Choose 2 answers

  • A. Create a custom field and automatically add it to an existing page layout.
  • B. Create a view of objects and relationships without fields
  • C. Create a custom object and define a lookup relationship on that object
  • D. Create a view containing only standard and system objects.

Answer: C,D

 

NEW QUESTION 81
A developer has a requirement to create an Order When an Opportunity reaches a "Closed-Won" status.
Which tool should be used to implement this requirement?

  • A. Apex trigger
  • B. Process Builder
  • C. Lightning Component
  • D. Lightning

Answer: A

 

NEW QUESTION 82
Which standard field is required when creating a new contact record?

  • A. Name
  • B. FirstName
  • C. LastName
  • D. AccountId

Answer: C

 

NEW QUESTION 83
......

Pass Salesforce PDI exam - questions - convert Tets Engine to PDF: https://examtorrent.vce4dumps.com/PDI-latest-dumps.html