Which two queries are optimized for large data volumes?
Consider the following queries. 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. Note that there are two fields that are marked as External Id on the Account. These fields are...
What is the correct way to fix this?
The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer. The test method fails at the Line 20 because of too many SOQL queries What is the correct way to fix...
A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items.
A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items. Both custom objects have a CurrencylsoCode Text field that contains the currency code they should...
Which statement properly loads the static resource within the LWC?
A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsutils 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...
What is the optimal way to accomplish this?
A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired. What is...
What should be used to fix this falling test?
A developer wrote the following method to find all the test accounts in the org: What should be used to fix this falling test?A . Test. loaddata to set up expected data B. Test. fixedSearchResults ( ) method to set up expected data C. @isTest (See AllData=true) to access org...
Which strategy can a developer use to improve the performance?
A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?A . use lazy loading to load the data on demand, instead of in the controller's constructor. B. use an <apex:actionPoller> in the page to load all...
What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously with minimal JavaScript intervention?
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...
Which edit should the developer make to ensure the test class runs successfully?
Consider the following code snippet: A developer created the following test class to provide the proper code coverage for the snippet above: 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?A . Enclose...
What should the developer specify in the debug log to see the values of the workflow rule conditions and debug the problem?
The Contact object in an org is configured with workflow rules that trigger field updates. The fields are not updating, even though the end user expects them to. The developer creates a debug log to troubleshoot the problem. What should the developer specify in the debug log to see the...