[Apr 09, 2024] PDI PDF Questions and Testing Engine With 239 Questions
Updated Exam Engine for PDI Exam Free Demo & 365 Day Updates
NEW QUESTION # 53
Which process automation should be used to post a message to Chatter without using Apex code?
- A. Flow Builder
- B. Entitlement Process
- C. Strategy Builder
- D. Outbound Message
Answer: A
NEW QUESTION # 54
Which annotation exposes an Apex class as a RESTful web service?
- A.

- B.

- C.

- D.

Answer: C
NEW QUESTION # 55
While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors.
Why did the method fail in the sandbox test framework but succeed in the Developer Console?
- A. The test method does not use System. rurAs to execute as a specific user.
- B. The test method Is calling an future method.
- C. The test method relies on existing data in the sandbox.
- D. The test method has a syntax error In the code.
Answer: C
NEW QUESTION # 56
A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create?
- A. Before delete
- B. After undelete
- C. After delete
- D. Before undelete
Answer: B
NEW QUESTION # 57
To which primitive data type is a text area (rich) field automatically assigned?
- A. String
- B. Object
- C. Blob
- D. Text
Answer: A
NEW QUESTION # 58
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.
Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers
- A. Change Sets
- B. SFDX CLI
- C. Developer Console
- D. VSCode
Answer: B,D
NEW QUESTION # 59
Which code block returns the ListView of an Account object using the following debug statement?
system.debug(controller.getListViewOptions() );
- A. ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 1]);
- B. ApexPages.StandardController controller = new ApexPages.StandardController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1'));
- C. ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 1]);
- D. ApexPages.StandardSetController controller = new ApexPages.StandardSetController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1'));
Answer: D
NEW QUESTION # 60
A developer is creating a Lightning web component to showa list of sales records.
The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field.
How should this be enforced so that the component works for both users without showing any errors?
- A. Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.
- B. Use Lightning Locker Service to enforce sharing rules and field-level security.
- C. Use Lightning Data Service to get the collection of sales records.
- D. Use Security. stripInaccessible to remove fields inaccessible to the current user.
Answer: D
NEW QUESTION # 61
Which action causes a before trigger to fire by default for Accounts?
- A. Updating addresses using the Mass Address update tool
- B. Importing data using the Data Loader and the Bulk API
- C. Renaming or replacing picklist
- D. Converting Leads to Contact accounts
Answer: B
NEW QUESTION # 62
Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites?
- A. Sandbox template
- B. Data Import Wizard
- C. Data Loader
- D. Salesforce-to-Salesforce
Answer: B
NEW QUESTION # 63
The sales management team at Universal Containers requires that the Lead Source field of the Lead record be populated when a Lead is converted.
What should be used to ensure that a user populates the Lead Source field prior to converting a Lead?
- A. Validation Rule
- B. Formula Field
- C. workflow Rule
- D. Process Builder
Answer: A
NEW QUESTION # 64
A developer needs to implement the functionality for a service agent to gather multiple pieces of information from a customer in order to send a replacement credit card.
Which automation tool meets these requirements?
Answer:
Explanation:
Flow Builder
NEW QUESTION # 65
A developer deployed a trigger to update the status__c of Assets related to an Account when the Account''s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures.
What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?
- A. Add a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an Account.
- B. Change the gerAssetsToUpdac= method to process all Accounts in one call and call it outside of the for loop that starts on line 03.
- C. Add List<Asset> assets = [SELECT Id, Status__c FROM Asset WHERE AccountId = :acctId] to line 14 and iterate over the assets list in the for loop on line 15.
- D. Move all of the logic to a Queueable class that queries for and updates the Assets and call it from the trigger.
Answer: B
NEW QUESTION # 66
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 extend other classes besides the Exception class.
- C. Acustom exception class can implement one or many interfaces.
- D. A custom exception class cannot contain member variables or methods.
- E. A custom exception class must extend the system Exception class.
Answer: A,B,C
NEW QUESTION # 67
Which two statement are acceptable for a developer to use Inside procedural loops?
- A. Account a=[select id,name from account where id=:con.accountid limit 1]
- B. Contactlist.remove(i)
- C. Contact con =new contact()
- D. Delete contactList
Answer: B,C
NEW QUESTION # 68
Refer to the following Apex code:
What is the value of x when it is written to the debug log?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: D
NEW QUESTION # 69
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 lookup relationship between the Rating and Employee object.
- B. Create a master-detail relationship between the Rating and Employee objects.
- C. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
- D. Create a trigger on the Rating object than updates a field on the Employee object.
Answer: C
NEW QUESTION # 70
A developer wrote the following two classes:
The StatusFetcher class successfully compiled and saved. However, the Calculator class has a compile time error.
How should the developer fix this code?
- A. Change the class declaration for the Calculator class to public with inherited sharing.
- B. Change the class declaration for the statusFetcher class to public with inherited sharing.
- C. Make the doCalculations methodin the Calculation class private.
- D. Make the isActive method in the StatusFetcher class public.
Answer: D
NEW QUESTION # 71
Which three process automations can immediately send an email notification to the owner of an Opportunity when its Amount is changed to be greater than $10,000? Choose 3 answers
- A. Process Builder (Missed)
- B. Flow Builder
- C. Escalation Rule
- D. Approval Process (Missed)
- E. Workflow Rule (Missed)
Answer: A,D,E
NEW QUESTION # 72
What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example?
- A. Querying Accounts. Query Exception.
- B. Querying Accounts. Custom Exception Done.
- C. Querying Accounts. Query Exception. Done
- D. Querying Accounts. Custom Exception.
Answer: C
NEW QUESTION # 73
......
Exam Passing Guarantee PDI Exam with Accurate Quastions: https://pass4sure.troytecdumps.com/PDI-troytec-exam-dumps.html