PDI Exam Question 81

Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name.
What is the best solution to assign the case to the appropriate support representative?
  • PDI Exam Question 82

    Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000$. A developer created the following trigger on the Account object to satisfy this requirement.
    for (Account a: Trigger.new) {
    if (a.AnnualRevenue > 1000000) {
    List < Opportunity > oppList = [SELECT Id FROM Opportunity WHERE accountId = :a.Id]; if(oppList.size() == 0) { Opportunity oppty = new Opportunity{Name = a.name, StageName = ' Prospecting ' , CloseDate = system.today().addDays(30)}; insert oppty;
    }
    }
    }
    Users are able to update the account records via the UI and can see an opportunity created for high annual revenue account. However, when the administrator tries to upload a list of 179 accounts using Data Loader, it fails with System.Exception errors.
    Which two actions should the developer take to fix the code segment shown above?
  • PDI Exam Question 83

    A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what is defined for payments in the PaymentProcessor interface.
    public interface PaymentProcessor{
    void pay(Decimal amount);
    }
    Which implementation is correct to use the PaymentProcessor interface?
  • PDI Exam Question 84

    A Lightning component has a wired property, ' searchResults ' , that stores a list of Opportunities.
    Which definition of the Apex method, to which the ' searchResults ' property is wired, should be used?
  • PDI Exam Question 85

    How many Accounts will be inserted by the following block of code?
    for(Integer i = 0 ; i < 500; i++) {
    Account a = new Account (Name= ' New Account ' + i);
    insert a;
    }