Question 156

Assuming that name is a String obtained by a Visualforce page, which two SOQL queries performed are safe from SOQL injection? (Choose two.)
  • Question 157

    The orderHelper class is a utility class that contains business logic for processing orders. Consider the following code snippet:

    A developer needs to create a constant named delivery_multiplier with a value of 4.15. The value of the constant should not change at any time in the code.
    How should the developer declare the delivery multiplier constant to meet the business objectives?
  • Question 158

    Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered.
    What is the best practice to get the sum of all Order Line item totals on the Order record?
  • Question 159

    A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of Apex tests allowing them to test isolated requirements for various types of Salesforce cases.
    Which approach can efficiently generate the required data for each unit test?
  • Question 160

    In the following example, which sharing context will myMethod execute when it is invoked?