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.
What should a developer use to query all Account fields for the Acme account in their sandbox?
A. SELECT FIELDS FAOM Account WHERE Name = ‘Acme’ LIMIT 1
B. SELECT FIELDS (ALL) FROM Account WHERE Name = ‘Acme’ LIMIT 1
C. SELECT ALL FROM Account WHERE Name = "Acme’ LIMIT 1
D. SELECT * FROM Recount WHERE Names = ‘Aeme’ LIMIT 1
Which use case can be performed only by using asynchronous Apex?
A. Querying tens of thousands of records
B. Making a call to schedule a batch process to complete in the future
C. Calling a web service from an Apex trigger
D. Updating a record after the completion of an insert
A developer built an Aura component for guests to self-register upon arrival at a front desk kiosk. Now the developer needs to create a component for the utility tray to alert users whenever a guest arrives at the front desk. What should be used?
A. DML Operation
B. Changelog
C. Application Event
D. Component Event
A developer is asked to look into an issue where a scheduled Apex is running into DML limits. Upon investigation, the developer finds that the number of records processed by the scheduled Apex has recently increased to more than 10,000. What should the developer do to eliminate the limit exception error?
A. Use the @future annotation.
B. Implement the Qususabls interface.
C. Implement the Batchable interface.
D. Use platform events.
A developer has a Visualforce page that automatically assigns ewnership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails. What can cause this problem?
A. The test class does not retrieve the updated value from the database,
B. The test class does not use the Bulk API for loading test data.
C. The test class does not use the seeallData=true= annotation.
D. The test class does not implement the Queueable interface.
Page 6 out of 20 Pages |
Previous |