PDII Exam Question 36

An Apex trigger creates an Order__c record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders.
What the optimal method for a developer to troubleshoot this?
  • PDII Exam Question 37

    An Apex trigger and Apex class increment a counter, Edit_Count_c, any time that the Case is changed.

    A new process on the case object was just created in production for when a Case is created or updated< since the process was created, they are reports that the Count is being incremented by more than one on Case edit.
    Which change in the Apex code will fix the problem?
    A)

    B)

    C)

    D)
  • PDII Exam Question 38

    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 this?

    The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.
    The test method fails at the Line 20 because of too many SOQL queries.
    What is the correct way to fix this?
  • PDII Exam Question 39

    A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.
    <apex:selectList value="{!selectedIndustry}">
    <apex:selectOptions values="{!industries}"/>
    </apex:selectList>
    When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.
    What is the optimal way to implement this?
  • PDII Exam Question 40

    A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller's account number before proceeding with the rest of their call script.
    Following best practices, what should a developer use to meet this requirement?