A developer is asked to replace the standard Case creation screen with a custom screen that takes users through a wizard before creating the Case. The org only has users running Lightning Experience. What should the developer override the Case New Action with to satisfy the requirements?
A. Lightning Page
B. Lightning Record Page
C. Lightning Component
D. Lightning Flow
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of all the test data that is needed to perform the tests. What should the developer do to speed up test execution?
A. Define a method that creates test data and annotate with @testSetup.
B. Define a method that creates test data and annotate with @createData.
C. Ensure proper usage of test data factory in all test methods.
D. Reduce the amount of test methods in the class.
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.
B. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method,
C. Move the prerequisite reference data setup to a @testSetup method in the test class.
D. Move the prerequisite reference data setup to the constructor for the test class.
A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called rsutils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library, Which statement properly loads the static resource within the LWC?
A. import jsUtilities from ‘@salesforce/rescurceUr1/jaUtiles’;
B. const jsUtilivy = SA.get{'SResource.isUtils');
C. impore {jsUtilities} from ‘@salasforce/resourceUrl/jsUtils’;
Consider the queries in the options below and the following Information:
* For these queries, assume that there are more than 200,000 Account records.
* These records Include soft-deleted records; that is, deleted records that are still in the Recycle Bin.
* There are two fields that are marked as External Id on the
Account. These fields are customer_Number_c and ERR_Key_ s.
Which two queries are optimized for large data volumes?
Choose 2 answers
A. SELECT I4 FROM Account WHERE Name !— NULL
B. SELECT 1d FROM Accounts WHERE Name != '° AND Customer_Number_c- "ValueA’
C. SELECT ID FROM Account WHRE id IN :aListVariable
D. SELECT Id FROM Account WHERE Name != ‘ ‘AND IsDeleted = false
Page 13 out of 39 Pages |
Previous |