[2024] Verified PDI Dumps Q&As - 1 Year Free & Quickly Updates
Latest 2024 Realistic Verified PDI Dumps - 100% Free PDI Exam Dumps
NEW QUESTION # 101
When is an Apex Trigger required instead of a Process Builder Process?
- A. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.
- B. When multiple records related to the triggering record need to be updated
- C. When a post to Chatter needs to be created
- D. When a record needs to be created
Answer: A
NEW QUESTION # 102
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. The Apex transaction fails with the following message. "SObject row was retrieved via SOQL without querying the requested field Account.Is.Tech__c''.
- B. The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.
- C. If executed In a synchronous context, the apex transaction is likely to fall by exceeding the DHL governor limit.
- D. If executed in an asynchronous context, the apex transaction is likely to fall by exceeding the DML governor limit
Answer: D
NEW QUESTION # 103
What is a benefit of the lightning component framework?
- A. Better performance for custom Salesforce1 Mobile Apps
- B. Better integration with Force.com sites
- C. More pre-built components to replicate the salesforce look and feel
- D. More Centralized control via server-side logic
Answer: C
NEW QUESTION # 104
When a task is created for a contact, how can a developer prevent the task from being included on the activity timeline of the contact's account record?
- A. In activity settings,uncheck roll-up activities to a contact's primary account
- B. Use process builder to create a process to set the task account field to blank
- C. By default,tasks do not display on the account activity timeline
- D. Create a task trigger to set the account field to NULL
Answer: A
NEW QUESTION # 105
A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records. What would a developer do to accomplish this task? Choose 2 answers
- A. Create a lookup relationship between the Candidate and Interview objects.
- B. Create a roll -up summary field on the Candidate object that counts Interview records.
- C. Create a master -detail relationship between the Candidate and Interview objects.
- D. Create a trigger on the Interview object that updates a field on the Candidate object.
Answer: A,D
NEW QUESTION # 106
Before putting an app into production, which step should be taken?
- A. Insure that you have installed a performance introspection add-on
- B. Run the production check feature via the web interface
- C. Scale your dynos
- D. Switch to a production database
Answer: B
NEW QUESTION # 107
A developer Edition org has five existing accounts. A developer wants to add 10 more accounts for ...
The following code is executed in the Developer Console using the Executor Anonymous window:
How many total accounts will be in the org after this code is executed?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION # 108
A custom object Trainer_c has a lookup field to another custom object Gym___c.
Which SOQL query will get the record for the Viridian City gym and it's trainers?
- A. SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'
- B. SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name - Viridian City Gym'
- C. SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name - Viridian City Gym'
- D. SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'
Answer: A
NEW QUESTION # 109
Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a Master-Detail relationship with the standard Account object. Based on some internal discussion, the UC administrator tried to change the Master-Detail relationship to a Lookup relationship but was not able to do so. What is a possible reason that this change was not permitted?
- A. The Account records contain Vendor roll-up summary fields.
- B. The Vendor object must use a Master-Detail field for reporting.
- C. The Vendor records have existing values in the Account object.
- D. The Account object is included on a workflow on the Vendor object.
Answer: A
NEW QUESTION # 110
How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?
- A. By querying the role hierarchy.
- B. By calling the profile settings of the current user.
- C. By querying CustomObject__Share.
- D. By calling the isShared() method for the record.
Answer: C
NEW QUESTION # 111
Refer to the following code that runs in an Execute Anonymous block:
- A. The total number of records processed as a result of DML statements will be exceeded.
- B. The total number of DML statements will be exceeded.
- C. In an environment where the full result set is returned, what is a possible outcome of this code?
- D. The transaction will succeed and the first ten thousand records will be committed to the database.
Answer: C
NEW QUESTION # 112
A lead developer creates an Apex interface called "Laptop". Consider the following code snippet:
How can a developer use the Laptop Interface within the Silvertaptop class?
- A. public class Silverlaptop implements Laptop
- B. @Interface (class=''Laptop'')
public class SilverLaptop - C. @Extends(class=Laptop'')
public class SilverLaptop - D. public calss SilverLaptop extends Laptop
Answer: D
NEW QUESTION # 113
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?
- A. Write a class that extends WebserviceMock
- B. Write a class that implements the WebserviceMock interface.
- C. Write a class that extends HTTPCalloutMock.
- D. Write a classthat implements the HTTPCalloutMock interface.
Answer: D
NEW QUESTION # 114
Given:
Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]); What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)
- A. for (ID accountID : accountMap.keySet()) {...}
- B. for (Account accountRecord : accountMap.values()) {...}
- C. for (Integer i=0; I < accountMap.size(); i++) {...}
- D. for (Account accountRecord : accountMap.keySet()) {...}
- E. for (ID accountID : accountMap) {...}
Answer: A,B,C
NEW QUESTION # 115
A developer has created a Visualforce Page and Apex Controller that uses the With Sharing keyword. The page will be used of by Sales Managers and should only display Accounts owned by Sales Representatives who report to the running Sales Manager. The organization-wide sharing for Accounts is set to Private. Which additional set of stops should the developer take?
- A. Create one Profile, one Permission Set, and one Role.
- B. Create one Profile, one Permission Set, and two Roles.
- C. Create one Profile, two Permission Sets, and one Role.
- D. Create two Profiles, one Permission Set, and one Role.
Answer: B
NEW QUESTION # 116
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. Visualforce page
- D. Workflow rule
Answer: B
NEW QUESTION # 117
A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override. What is the correct implementation of the ShippingCalculator class?
- A. Public abstract class ShippingCalculator {
public virtual void calculate() { /*implementation*/ }
} - B. Public abstract class ShippingCalculator {
public void calculate() { /*implementation*/ }
} - C. Public abstract class ShippingCalculator {
public override calculate() { /*implementation*/ }
} - D. Public abstract class ShippingCalculator {
public abstract calculate() { /*implementation*/ }
}
Answer: D
Explanation:
Explanation
the extending class can override the existing virtual methods by using the override keyword in the method definition. Overriding a virtual method allows you to provide a different implementation for an existing methodhttps://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_extending.htm
NEW QUESTION # 118
......
PDI Dumps PDF and Test Engine Exam Questions: https://learningtree.actualvce.com/Salesforce/PDI-valid-vce-dumps.html