What are three benefits of using declarative customizations over code? (Choose three.)
Answer(s): B,D,E
Which use case can only be performed by using asynchronous Apex?
Answer(s): D
@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 = :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 the Number_of_Times_Viewed c equals 0.What is the optimal way to fix this?
Answer(s): B
A company represents their customers as Accounts that have an External ID field calledCustomer_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.)
Answer(s): B,C,E
Share your comments for Salesforce PDII exam with other users:
good for practice.