What two things should be done to create the test data within the unit test with the least amount of code?
A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified. The developer team decided that the trigger should be tested with 200 account records with unique names. What two things should be done to create the test data within the unit...
How can a developer use the OrderRequest class within the CustomerOrder class?
A lead developer creates a virtual class called "OrderRequest". Consider the following code snippet: Public class CustomerOrder { //code implementation } How can a developer use the OrderRequest class within the CustomerOrder class?A . public class CusctomerOrder implements OrderB . @Implements (class="OrderRequest”) public class CusatomaxOrderC . Extends (class="OrderRequest”) pubklic class...
Which approach can efficiently generate the required data for each unit test?
A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of tests allowing them to test independent requirements for various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?A . Use @TestSetup with a void...
Which two characteristics are true for Lightning Web Component custom events? Choose 2 answers
Which two characteristics are true for Lightning Web Component custom events? Choose 2 answersA . Data may be passed in the payload of a custom event using a property called detail.B . By default a custom event only propagates to its immediate container and to its immediate child component.C ....
How can this be achieved?
An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship. How can this be achieved?A . Use the Streaming API to create real-time roll-up summaries.B . Write a trigger on the child object and use an agaregate function to sum...
Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers
Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answersA . a method defined with the @tetestSetup annotation executes once for each test method in the test class and counts towards system limits.B . Records created in the test setup method cannot...
What should a developer change about the Visualforce page to help with the page load errors?
Universal Containers has a Visualforce page that displays a table of every Container___c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with...
How many Accounts will be inserted by the following block of code?
How many Accounts will be inserted by the following block of code? A . 100B . 0C . 500D . 150View AnswerAnswer: D Explanation: Understanding the Code: for (Integer i = 0; i < 500; i++) { Account a = new Account (Name='New Account ' + i); insert a; }...
While developing an Apex class with custom search functionality that will be launched from a Lightning Web Component, how can the developer ensure only records accessible to the currently logged in user are displayed?
While developing an Apex class with custom search functionality that will be launched from a Lightning Web Component, how can the developer ensure only records accessible to the currently logged in user are displayed?A . Use the inherited sharing keyword.B . Use the WITH SECURITY_ENFORCED clause within the SOQL.C ....
According to the order of execution rules, which step happens first?
A developer created a trigger on a custom object. This custom object also has some dependent pick lists. According to the order of execution rules, which step happens first?A . Old values are overwritten with the new record values.B . JavaScript validation is run in the browser,C . System validation...