What is the best way to implement this?

A developer wishes to improve runtime performance of Apex calls by caching results on the client. What is the best way to implement this?A . Decorate the server-side method with @AuraEnabled(cacheable=true).B . Set a cookie in the browser for use upon return to the page.C . Call the setStorable() method...

March 1, 2021 No Comments READ MORE +

Which feature should be used to implement these requirements?

A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they are saved and then make a callout to a RESTful web service. The web service can only receive, at most, one record per call. Which feature...

March 1, 2021 No Comments READ MORE +

Which method should be used to convert a Date to a String in the current user’s locale?

Which method should be used to convert a Date to a String in the current user’s locale?A . Date.formatB . String formatC . String.valueOfD . Date.parseView AnswerAnswer: A

February 28, 2021 No Comments READ MORE +

What is the optimal way to update the Accounts from the external system?

A company uses an external system to manage its custom account territory assignments. Every quarter, millions of Accounts may be updated in Salesforce with new Owners when the territory assignments are completed in the external system. What is the optimal way to update the Accounts from the external system?A ....

February 28, 2021 No Comments READ MORE +

Which asynchronous feature should be used?

A developer has been asked to create code that will meet the following requirements: Receives input of: Map<Id, Project_c), List<Account> Performs a potentially long-running callout to an outside web service Provides a way to confirm that the process executed successfully Which asynchronous feature should be used?A . @future (callout=true)B ....

February 28, 2021 No Comments READ MORE +

What is the optimal way to implement this?

A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field. <apex:selectList value="{!selectedIndustry}"> <apex:selectOptions values="{!industries}"/> </apex:selectList> When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the...

February 28, 2021 No Comments READ MORE +

What should the developer do to ensure a more meaningful message?

A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning Component. What should the developer do to ensure a more meaningful message?A . Add an onerror event handler to the tag.B . Add an error-view component to the markup.C . Use an AuraHandledException...

February 28, 2021 No Comments READ MORE +

What is the optimal way to fix this?

The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because the Number_of_Times_Viewed__c equals 0. @isTest static void testIncrement() { Account acct = new Account(Name = 'Test'); acct.Number_Of_Times_Viewed__c = 0; insert acct; AuditUtil.incrementViewed(acct.Id); Account acctAfter = [SELECT Number_Of_Times_Viewed__c FROM Account WHERE Id =...

February 28, 2021 No Comments READ MORE +

What is the optimal solution?

Sometimes events on Salesforce need to be handled by an external system due to the scale or type of process being executed. Consider the use case of a user in Salesforce needing to get pricing for an order they are building in Salesforce while on the phone with a customer....

February 27, 2021 No Comments READ MORE +

Which design resource configuration should be used?

A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?A . <design:component label="Account FS Component"> <design:attribute name="fieldSetName" Label="Field Set Name" /> <sfdc:objects> <sfdc:object>FieldSet</sfdc:object> </sfdc:objects> </design:component>B...

February 27, 2021 No Comments READ MORE +