MultipleChoice
Refer to exhibit.
What should be added to the setup, in the location indicated, for the unit test above to create the controller extension for the test?
A)
B)
C)
MultipleChoice
Which statement is true regarding savepoints?
A You can roll back to any savepoint variable created in any order.
OptionsMultipleChoice
However, when the test runs, no data is returned and the assertion fails.
Which edit should the developer make to ensure the test class runs successfully?
OptionsMultipleChoice
When the sales team views an individual customer record, they need to see recent interactions for the customer. These interactions can be sales orders, phone calls, or Cases. The date range for recent interactions will be different for every customer record type.
How can this be accomplished?
A Use batch Apex to query for the most recent interactions when the customer view screen is loaded.
OptionsMultipleChoice
When the component is rendered, the following message is displayed: 'Error retrieving data''.
Which modification should be implemented to the Apex class to overcome the issue?
OptionsMultipleChoice
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 Turn off triggers, flows, and validations when running tests.
OptionsMultipleChoice
A developer created a Lightning web component that uses a lightning-record-edit-form t collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record.
complain that they only see one error message at a time about their input when trying to save a Lead record.
What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously
with minimal JavaScript intervention?
OptionsMultipleChoice
A Visualforce Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?
OptionsMultipleChoice
Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a Server Update platform event.
The developer is working on a Lightning web component to display the information.
What should be added to the Lightning web component to allow the developer to interact with the Server Update platform event?
OptionsMultipleChoice
@isTest static void testAccountUpdate() { Account acct = new Account({Name = 'Test'); acct.Integration Updated_c = false; insert acct; CalloutUtil.sendAccountUpdate (acct.Id); Account acctAfter = [SELECT Id, Integration Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAfter.Integration_Updated_c); } The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: 'Methods defined as TestMethod do not support Web service callouts.' What is the optimal way to fix this?
Options