Which two operations can be performed using a formula field? Choose 2 answers
A. Displaying the last four digits of an encrypted Social Security number
B. Triggering a Process Builder
C. Displaying an Image based on the Opportunity Amount
D. Calculating a score on a Lead based on the information from another field
A developer has to Identify a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the database.
Which two techniques should the developer implement as a best practice to esure transaction control and avoid exceeding governor limits? Choose 2 answers
A. Use the Database.Savepoint method to enforce database integrity.
B. Use the System.Limit class to monitor the current CPU governor limit consuption.
C. Use the @ReadOnly annotation to bypass the number of rows returned by a SOQL.
D. Use Partial DML statements to ensure only valid data is committed.
A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience. What should the developer do to provide the custom user interface?
A. Override the Contact's Edit button with a Lightning page Salesforce Classic and a Visualforce page in Lightning Experience.
B. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning page in Lightning experience.
C. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience.
D. Override the Contact's Edit button with a Lightning component in Salesforce Classic and a Lightning component in Lightning experience.
A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?
A. Developer sandboxes
B. Scratch orgs
C. Full Copy sandboxes
D. Developer orgs
Given the following block code: try{ List
A. Check the state of the retrieveRecords variable and throw a custom exception if the variable is empty.
B. Check the state of the retrievedRecords variable and use System.assert(false) if the variable is empty
C. Check the state of the retrievedRecords variable and access the first element of the list if the variable is empty.
D. Replace the retrievedRecords variable declaration from a List of Account to a single Account.
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what is defined for payments in the PaymentProcessorinterface.
public interface PaymentProcessor {
void pay(Decimal amount);}
Which is the correct implementation to use the PaymentProcessorinterface class?
A. public class CheckPaymentProcessor implements PaymentProcessor { publicvoid pay(Decimal amount);
B. public class CheckPaymentProcessor implements PaymentProcessor { publicvoid pay(Decimal amount){}
C. public class CheckPaymentProcessor extends PaymentProcessor { publicvoid pay(Decimal amount){}
D. public class CheckPaymentProcessor extends PaymentProcessor { publicvoid pay(Decimal amount);
A developer is debugging the following code to determine why Accounts are not being created.
Account a = new Account(Name = 'A');Database.insert(a, false);
How should the code be altered to help debug the issue?
A. Add a System.debug() statement before the insert method
B. Add a try/catch around the insert method
C. Set the second insert method parameter to TRUE
D. Collect the insert method return value a Saveresult record
What is the order of operations when a record is saved in Salesforce?
A. Process flows, triggers, workflow, commit
B. Workflow, process flows, triggers, commit
C. Workflow, triggers, process flows, commit
D. Triggers, workflow, process flows, commit
Which two are best practices when it comes to component and application event handling? Choose 2 answers
A. Handle low-level events in the event handler and re-fire them as higher-level events.
B. Try to use application events as opposed to component events.
C. Use component events to communicate actions that should be handled at the application level.
D. Reuse the event logic in a component bundle, by putting the logic in the helper.
Which aspect of Apex programming is limited due to multitenancy?
A. The number of active Apex classes
B. The number of methods in an Apex Class
C. The number of records processed in a loop
D. The number of records returned from database queries
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.