Get Salesforce PDI Dumps Questions [2021] To Gain Brilliant Result
PDI dumps - ITExamSimulator - 100% Passing Guarantee
NEW QUESTION 62
Which three resources in an Aura Component can contain Javascript functions? Choose 3 answers
- A. Controller
- B. Renderer
- C. Helper
Answer: A,B,C
NEW QUESTION 63
An apex trigger fails because it exceeds governor limits. Which two techniques should a developer use to resolve the problem? Choose 2 answers
- A. Use SOQL aggregate queries to retrieve child records
- B. Use lists for all DML operations
- C. Use the database class to handle DML operations
- D. Use maps to reference related records
Answer: B,D
NEW QUESTION 64
A developer must build application that tracks which Accounts have purchase specific pieces of equal products. Each Account could purchase many pieces of equipment.
How should the developer track that an Account has purchased a piece of equipment.
- A. Use the Asset object.
- B. Use a Custom object.
- C. Use a Master-Detail on Product to Account
- D. Use a Lookup on Account to product.
Answer: C
NEW QUESTION 65
In which two trigger types can a developer modify the new sObject records that are obtained by the trigger.new context? Choose 2 answers
- A. After update
- B. Before update
- C. After insert
- D. Before insert
Answer: B,D
NEW QUESTION 66
Which three statements are true regarding the @istest annotation? Choose 3 answers
- A. A method annotated @istest (seealldata=false) in a class annotated @istest (seealladata=true) has access to all org data
- B. Products and pricebooks are visible in a test even if a class is annotated @istest (seealldata=false)
- C. A method annotated @istest (seealldata=true) in a class annotated @istest (seealladata=false) has access to all org data
- D. A class containing test methods counts toward the apex code liit regardless of any @istest annotation (Missed
- E. Profiles are visible in a test even if a class is annotated @istest (seealldata=false)
Answer: A,D,E
NEW QUESTION 67
Which Apex collection is used to ensure that all values are unique?
- A. A List
- B. A Set
- C. An sObject
- D. An Enum
Answer: B
NEW QUESTION 68
The sales team at Universal Containers would like to see a visual indicator appear on both Account and Opportunity page layouts 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. Quick Action
- B. Workflow Rule
- C. Formula Field
- D. Roll-up Summary Field
Answer: C
NEW QUESTION 69
Which three Salesforce resources can be accessed from a Lightning web component' Choose 3 answers
- A. All external libraries
- B. Static resources
- C. Content asset files
- D. SVG resources
- E. Third-party web components
Answer: A,B,D
NEW QUESTION 70
What actions types should be configured to display a custom success message?
- A. Delete a record.
- B. Update a record.
- C. Post a feed item.
- D. Close a case.
Answer: B
NEW QUESTION 71
A Next Best Action strategy uses an Enchance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method?
- A. @InvocableMethod
global Recommendation getLevel (ContactWrapper input)
{ /*implementation*/ } - B. @InvocableMethod
global List<List<Recommendation>> getLevel(List<ContactWrapper> input)
{ /*implementation*/ } - C. @InvocableMethod
global static List<List<Recommendation>> getLevel(List<ContactWrapper> input)
{ /*implementation*/ } - D. @InvocableMethod
global static ListRecommendation getLevel(List<ContactWrapper> input)
{ /*implementation*/ }
Answer: C
NEW QUESTION 72
An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account. There are no active triggers on the Opportunity object, yet a "maximum trigger depth exceeded" error occurs in certain situations.
Which two reasons possibly explain the Account trigger firing recursively? (Choose two.)
- A. Changes to Opportunities are causing roll-up summary fields to update on the Account.
- B. Changes to Opportunities are causing cross-object workflow field updates to be made on the Account.
- C. Changes are being made to the Account during Criteria Based Sharing evaluation.
- D. Changes are being made to the Account during an unrelated parallel save operation.
Answer: A,B
NEW QUESTION 73
Which two ways can a developer instantiate a PageReference in Apex? Choose 2 answers
- A. By using an object standard controller action
- B. By using the PageReference.getURL() method
- C. By using an object standard set controller action
- D. By using ApexPages.currentPage()
Answer: B,C
NEW QUESTION 74
A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable.
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?
- A. Account.isDeletable()
- B. accountRec.sObjectType.isDeletable()
- C. Schema.sObjectType.Account.isDeletable()
- D. accountRec.isDeletable()
Answer: C
NEW QUESTION 75
When creating unit tests in Apex, which statement is accurate?Choose 2
- A. Increased test coverage requires large test classes with many lines of code in one method.
- B. Triggers do not require any unit tests in order to deploy them from sandbox to production.
- C. Unit tests with multiple methods result in all methods failing every time one method fails.
- D. System Assert statements that do not Increase code coverage contribute important feedback in unit tests
Answer: A,D
NEW QUESTION 76
What is the value of x after the code segment executes?String x = 'A';Integer i = 10;if ( i < 15 ) {i = 15;x
'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }
- A. D
- B. C
- C. A
- D. B
Answer: D
NEW QUESTION 77
Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology' industry:
When the code execution, which two events occur as a result of the Apex transaction?
When the code executes, which two events occur as a result of the Apex transaction?
Choose 2 answers
- A. If executed in an asynchronous context, the apex transaction is likely to fall by exceeding the DML governor limit
- B. The Apex transaction fails with the following message. "SObject row was retrieved via SOQL without querying the requested field Account.Is.Tech__c''.
- C. The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.
- D. If executed In a synchronous context, the apex transaction is likely to fall by exceeding the DHL governor limit.
Answer: B,C
NEW QUESTION 78
Which two SOSL searches will returns records matching search criteria contained in any of the searchable texts fields on an object? Choose 2 answers
- A. [FIND 'Acme*' IN TEXT FIELDS RETURNING Account,Opportunity];
- B. [FIND 'Acme*' IN ALL FIELDS RETURNING Account,Opportunity];
- C. [FIND 'Acme*' RETURNING Account,Opportunity];
- D. [FIND 'Acme*' IN ANY FIELDS RETURNING Account,Opportunity];
Answer: B,C
NEW QUESTION 79
......
Get 100% Passing Success With True PDI Exam: https://www.itexamsimulator.com/PDI-brain-dumps.html
Premium Quality Salesforce PDI Online dumps: https://drive.google.com/open?id=1lEfP4FacpVvVOp4Gh8vQMSfQ-QaklOG9

