Valid PDI Test Answers & Salesforce PDI Exam PDF
Salesforce PDI Certification Real 2025 Mock Exam
NEW QUESTION # 72
What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components?
Choose 3 answers
- A. Loading scripts In parallel
- B. Loading externally hosted scripts
- C. Specifying loading order
- D. One-time loading for duplicate scripts
- E. Loading files from Documents
Answer: A,C,D
NEW QUESTION # 73
For which three items can a trace flag be configured?
Choose 3 answers
- A. Process Builder
- B. Apex Class
- C. Visualforce
- D. Apex Trigger
- E. User
Answer: B,D,E
NEW QUESTION # 74
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. Workflow Rule
- C. Approval Process
- D. Flow Builder
Answer: D
NEW QUESTION # 75
Given the code below, which three statements can be used to create the controller variable? Public class accountlistcontroller{ public list<account>getaccounts(){ return controller.getrecords(); } } Choose 3 answers
- A. Apexpages.standardcontroller controller= new apexpages.standardcontroller([select id from account]);
- B. Apexpages.standardsetcontroller controller=new
apexpages.standardsetcontroller(database.getquerylocator('select id from account')); - C. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.query('select id from account'));
- D. Apexpages.standardcontroller controller= new
apexpages.standardcontroller(database.getquerylocator('select id from account')); - E. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.getquerylocator([select id from account]));
Answer: A,C,E
NEW QUESTION # 76
What is the result of the following code snippet?
- A. 200 Accounts are inserted.
- B. 1 Account is inserted.
- C. 0 Accounts are inserted.
- D. 201 Accounts are inserted.
Answer: C
NEW QUESTION # 77
Where are two locations a developer can look to find information about the status of asynchronous or future cals? Choose 2 answers
- A. Paused Flow Interviews component
- B. Time-Based Workflow Monitor
- C. Apex Flex Queue
- D. Apex Jobs
Answer: C,D
NEW QUESTION # 78
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
- A. A custom exception class name must end with "Exception".
- B. A custom exception class can implement one or many interfaces.
- C. A custom exception class must extend the system Exception class.
- D. A custom exception class cannot contain member variables or methods.
- E. A custom exception class can extend other classes besides the Exception class.
Answer: A,B,E
NEW QUESTION # 79
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
- A. @AureEnabled (cacheable=true)
- B. @AureEnabled
- C. @RemoteAction
- D. @RemoteAction(|cacheable=true)
Answer: A
NEW QUESTION # 80
A company would like to send an offer letter to a candidate, have the candidate sign it electronically, and then send the letter back.What can a developer do to accomplish this?
- A. Create an assignment rule that will assign the offer letter to the candidate
- B. Create a visual workflow that will capture the candidate's signature electronically
- C. Install a managed package that will allow the candidate to sign documents electronically
- D. Develop a Process Builder that will send the offer letter and allow the candidate to sign it electronically.
Answer: C
NEW QUESTION # 81
How should a custom user interface be provided when a user edits an Account in Lightning Experience?
- A. Override the Account's Edit button with Lightning Flow
- B. Override the Account's Edit button with Lightning page.
- C. Overridethe Account's Edit button with Lightning Action
- D. Override the Account's Edit button with Lightning component.
Answer: D
NEW QUESTION # 82
Which three data types can a SOQL query return? Choose 3 answers
- A. sObject
- B. Long
- C. List
- D. Integer
Answer: A,C,D
NEW QUESTION # 83
The Salesforce Administrator created a custom picklist field, Account_status_c, on the a Account object. This picklist has possible values of Inactive'' and Active?
As part of a new business process, management wants to ensure an opportunity record is created only for Accounts marked as "Active". A developer is asked to implement this business requirement.
Which two automation tools should be used to fulfill the business need?
Choose 2 answers
- A. Process Builder
- B. Workflow Rules
- C. Approval Process
- D. Salesforce Flow
Answer: D
NEW QUESTION # 84
A visualforce interface is created for Case Management 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=" myControllerExtension"
- B. Controller = "case" and extensions =" myControllerExtension"
- C. Extensions=" myControllerExtension"
- D. StandardController = "case" and extensions =" myControllerExtension"
Answer: D
NEW QUESTION # 85
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?
- A. Account0.Phone=333-8781, Account1.Phone=333-8780
- B. Account0.Phone=333-8780, Account1.Phone=333-8781
- C. Account0.Phone=888-1515, Account1.Phone=999-2525
- D. Account0.Phone=888-1515, Account1.Phone=999-1515
Answer: B
NEW QUESTION # 86
Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers
- A. Create an Account Roll-up Summary field to count open Opportunities
- B. Create an Account Trigger to generate an error on Opportunity insert
- C. Create an Opportunity Validation Rule to generate an error on insert
- D. Create an Opportunity Workflow Rule to auto-close the Opportunity
Answer: A,C
NEW QUESTION # 87
Which two sfdx commands can be used to add testing data to a Developer sandbox?
- A. Forced: data:async:upsert
- B. Forced: data: object :upsert
- C. Forced: data:bulk:upsert
- D. Forced: data: tree: upsert
Answer: C,D
NEW QUESTION # 88
Requirements state that a child record be to deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema Builder to support these requirements?
- A. Master-Detail relationship
- B. Lookup Relathionship from to child to the parent
- C. Child relationship
- D. Lookup Relathionship from to parent to the child
Answer: A
NEW QUESTION # 89
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?
- A. Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
- B. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.
- C. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.
- D. Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.
Answer: D
NEW QUESTION # 90
An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web Components to use.
What is the correct definition of a Lightning Web Component property that uses the getAccounts method?
A)
B)
C)
D)
- A. Option C
- B. Option A
- C. Option B
- D. Option D
Answer: A
NEW QUESTION # 91
......
PDI Exam Questions and Valid PDI Dumps PDF: https://www.dumpexams.com/PDI-real-answers.html
PDI Brain Dump: A Study Guide with Tips & Tricks for passing Exam: https://drive.google.com/open?id=1RzLdMtfzMYR1JLU0s3yIzj-KOfzi4_ak