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 =...

November 6, 2020 No Comments READ MORE +

What is wrong with it?

Consider the Apex controller above, that is called from a Lightning Aura Component. What is wrong with it?A . Line 1: class must be globalB . Lines 1 and 6: class and method must be globalC . Line 6: method must be staticD . Line 8: method must first serialize...

November 5, 2020 No Comments READ MORE +

Which component should be added to the Visualforce page to display the message?

A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?A . <apex:message for="info"/>B . <apex:facet name="messages" />C . <apex:pageMessage severity="info" />D . <apex:pageMessages />View AnswerAnswer: D

November 5, 2020 No Comments READ MORE +

What is the optimal way to automate this?

A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity’s Probability is greater than 50%. What is the optimal way to automate this?A . Use an Apex Trigger on Opportunity.B...

November 5, 2020 No Comments READ MORE +

What would allow Universal Containers to switch vendors without updating the code to handle authentication?

Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors...

November 4, 2020 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...

November 3, 2020 No Comments READ MORE +

Which option has the correct component changes to display correctly on desktops and tablets?

Refer to the component code above. The information displays as expected (in three rows) on a mobile device. However, the information is not displaying as desired (in a single row) on a desktop or tablet. Which option has the correct component changes to display correctly on desktops and tablets?A ....

November 2, 2020 No Comments READ MORE +

Which method of integration is optimal?

A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integration is optimal?A . REST APIB . Apex SOAP Web ServiceC . Soap APID . Apex REST Web ServiceView AnswerAnswer:...

November 2, 2020 No Comments READ MORE +

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?A . Use the Schema namespace.B . Use a static resource.C . Perform a callout to the Metadata APE . Perform a SOQL Query.View AnswerAnswer: A

November 1, 2020 No Comments READ MORE +

What can a developer to do address the issue?

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?A . Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.B...

November 1, 2020 No Comments READ MORE +