A company uses Dpportunities to track sales to their customers and their org has millions of Opportunities. They want to begin to track revenue over time through a related Revenue object. As part of their initial implementation, they want to perform a one-time seeding of their data by automatically creating and populating Revenue records for Opportunities, based on complex logic. They estimate that roughly 100,000 Opportunities will have Revenue records created and populated. What is the optimal way to automate this?
A. Use system, acheduladeb() to schedule a patakape.Scheduleable class.
B. Use system, enqueuJob (| to invoke a gueusable class.
C. Use Database. executeBatch () to invoke a Queueable class.
D. Use Database. =executeBatch() to invoke a Database. Batchable class.
Universal Containers wants to notify an external system in the event that an unhandled exception occurs when their nightly Apex batch job runs. What is the appropriate publish/subscribe logic to meet this requirement?
A. Have the external system subscribe to a custom Platform Event that gets fired with addError{).
B. Have the external system subscribe to a custom Platform Event that gets fired with EventBus.publish(1,
C. Have the external system subscribe to a standard Platform Event that gets fired with with Eventbus.publish(1.
D. Have the external system subscribe to a standard Platform Event that gets fired.
What is the correct way to fix this?
A. Add Test.startTest() before and add Test. stopTest() after both Line 7 and Line 20 of the code.
B. Add Test_startTest() before and add Test. stopTest() after Line 18 of the code.
C. Use Limits.getlimitQueries() to find the total number of queries that can be issued.
D. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.
Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? Choose 2 answers
A. SELECT Id FROM Account WHERE Name LIKE '!-NULL
B. SELECT Id FRCM Account WHERE Name != ’ ’
C. SELECT Id FRCM Account WHEP Name IN (List of Names) AND Customer_Number_c= 'ValueA
D. SELECT Id FROM Account WHERE II IK (List of Account Ida)
A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails. What might be causing the failed assertion?
A. The test class has not defined an Account owner when inserting the test data.
B. The test class has not implemented seealldata=true in the test method.
C. The test class has not re-queried the Account record after updating the Opportunity.
D. The test class is not using System. runs () to run tests as a Salesforce administrator.
Page 11 out of 39 Pages |
Previous |