What is the maximum number of SOQL queries used by the following code? A. 1 B. 5 C. 6 D. 2 Suggest answer: C Reference: Read more →
A developer wants to improve runtime performance of Apex calls by caching results on the client. What is the most efficient way to implement this and follow best practices? A. Decorate the server-side method with @AuraEnabled(storable=true). B. Set a cookie in the browser for use upon return to the page. C. Cal... Read more →
Which action may cause triggers to fire? A. Renaming or replacing a picklist entry B. Updates to Feed Items C. Cascading delete operations D. Changing a user's default division... Read more →
Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production environment. What is the recommended process for deploying the code and configurations to Production? A. Use Salesforce CLI to deploy the Apex code and Lightning Components. B. Use the Ant Migration Tool to deploy the Apex code and Lightning... Read more →
A business implemented a gamification plan to encourage its customers to watch some educational videos. Customers can watch videos over several days, and their progress is recorded. Award points are granted to customers for all completed videos. When the video is marked as completed in Salesforce, an external web service must be called so that points can be awarded to the user. A developer implemented these requirements in the after update trigger by making a call to an external web service. However, a System.CalloutException is occurring. What should the developer do to fix this error? A. Surround the external call with a try-catch block to handle the exception. B. Move the callout to a class that implements Queueable and ... Read more →
Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event? A. emit() B. fireEvent() C. fire() D. registerEvent() Suggest answer: C Reference: Read more →
A developer at Universal Containers is tasked with implementing a new Salesforce application that will be maintained completely by their company's Salesforce administrator. Which two options should be considered for building out the business logic layer of the application? (Choose two.) A. Record-Triggered Flows B. Scheduled Jobs C. Invocable Actions D. Validation Rules Suggest answer: AC Reference: Read more →
A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller’s account number before proceeding with the rest of their call script. Following best practices, what is the optimal approach to satisfy this requirement? A. Flow Builder B. Apex trigger C. Einstein Next Best Action D. Approvals Suggest answer: A Reference: Read more →
Universal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create. In the first step of collecting information, UC’s ERP system must be checked via a REST endpoint to see if the customer exists. If the customer exists, the data must be presented to the sales rep in Salesforce. Which two should a developer implement to satisfy the requirements? (Choose two.) A. Trigger B. Flow C. Invocable method D. Future method Suggest answer: BC Reference: Read more →
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.) A. Use a Visual Workflow. B. Use a validation rule. C. Use the Process Automation Settings. D. Use a Trigger. Suggest answer: BD Referen... Read more →
Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage. Which two strategies can a developer use to accomplish this? (Choose two.) A. Use a before-save Apex trigger. B. Use a validation rule. C. Use an automatically launched Approval Process. D. Use an auto-response rul... Read more →
Universal Containers tracks customer complaints in a custom object, Complaint__c, that has a Master-detail relationship to the Contact that made the complaint. Which field is needed to display the date of the most recent Complaint__c on the Contact's detail page? A. Roll-up summary field on Contact of the MAX Created Date of a Complaint__c B. Roll-up summary field on Contact of the MIN Created Date o... Read more →
A large corporation stores Orders and Line Items in Salesforce for different lines of business. Users are allowed to see Orders across the entire organization, but, for security purposes, should only be able to see the Line Items for Orders in their line of business. Which type of relationship should be used between Line Items and Orders? A. Lookup B. Direct Lookup C. Indirect Lookup D. Master-Detail Suggest answer: D Reference: Read more →
For which three items can a trace flag be configured? (Choose three.) A. Apex Trigger B. Apex Class C. Process Builder D. User E. Visualforce Suggest answer: ABD Reference: Read more →
What are two ways for a developer to execute tests in an org? (Choose two.) A. Tooling API B. Developer Console C. Metadata API D. Bulk API Suggest answer: AB Reference: Read more →
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules. What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account? A. 1 B. 3 C. 4 D. 2 Suggest answer: D Reference: Read more →
An Approval Process is defined in the Expense_Item__c object. A business rule dictates that whenever a user changes the Status to `˜Submitted' on an Expense_Report__c record, all the Expense_Item__c records related to the expense report must enter the approval process individually. Which approach should be used to ensure the business requirement is met? A. Create a Process Builder on Expense_Report__c with an 'Apex' action type to submit all related Expense_Item__c records when the ... Read more →
Which type of code represents the Model in the MVC architecture when using Apex and Visualforce pages? A. A Controller Extension method that saves a list of Account records B. Custom JavaScript that processes a list of Account records C. A li... Read more →
The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is `˜Technology' while also retrieving the contact's Job_Application__c records. Based on the object's relationships, what is the most efficient statement to retrieve the list of contacts? A. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Account.Industry = 'Technology']; B. [SELECT Id, (SELECT Id F... Read more →
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permissions for the currently logged-in user while using the custom search tool? A. Use the schema describe calls to determine if the logged-in user has access to the Account object. B. Use the UserInfo Apex class to fil... Read more →