Which use case can only be performed by using asynchronous Apex?
@isTeststatic 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 = :acct.Id][0]System.assertEquals(1, acctAfter.Number_Of_Times_Viewed__c);}The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because theNumber_of_Times_Viewed__c equals 0.What is the optimal way to fix this?
A company represents their customers as Accounts that have an External ID field called Customer_Number__c. They have a custom Order (Order__c) object, with a Lookup to Account, to represent Orders that are placed in their external order management system (OMS). When an order is fulfilled in the OMS, a REST call to Salesforce should be made that creates an Order record in Salesforce and relates it to the proper Account.What is the optimal way to implement this?
What are three benefits of using static resources in Visualforce and Lightning Components? (Choose three.)
A company has a native iOS app for placing orders that needs to connect to Salesforce to retrieve consolidated information from many different objects in a JSON format.Which is the optimal method to implement this in Salesforce?
A Visualforce page loads slowly due to the large amount of data it displays.Which strategy can a developer use to improve the performance?