PDII Exam Question 46

A developer has been asked to create code that will meet the following requirements:
Receives input of: Map<ld, Project_c), List<Account>
Performs a potentially long-running callout to an outside web service
Provides a way to confirm that the process executed successfully
Which asynchronous feature should be used?
  • PDII Exam Question 47

    Which two relationship queries use the proper syntax? (Choose two.)
    SELECT Id, Name, Account__r.Name FROM Contact WHERE Account__r.Industry
  • PDII Exam Question 48

    trigger AssignOwnerByRegion on Account ( before insert, before update )
    {
    List<Account> accountList = new List<Account>();
    for( Account anAccount : trigger.new )
    {
    Region__c theRegion = [
    SELECT Id, Name, Region_Manager__c
    FROM Region__c
    WHERE Name = :anAccount.Region_Name__c
    ];
    anAccount.OwnerId = theRegion.Region_Manager__c;
    accountList.add( anAccount );
    }
    update accountList;
    }
    Consider the above trigger intended to assign the Account to the manager of the Account's region.
    Which two changes should a developer make in this trigger to adhere to best practices? (Choose two.)
  • PDII Exam Question 49

    A developer has created a Batchable class that inserts Accounts. The Batchable class is running with batch size of 200, and is getting an error. The developer identifies the following code as problematic. trigger AccountTrigger on Account(after insert) { for( Account a : Trigger.new) { AccountHandler.insertPartnerAccount(a); } } public Class AccountHandler{ @future public static void insertPartnerAccount(Account a){ //perform processing if( a.Is_Partner__c) { Account partnerAccount = new Account(); //set values insert partnerAccount; } } } What governor limit or system limitation is the developer most likely violating?
  • PDII Exam Question 50

    A company has a native i0S app for placing orders that needs to connect to Salesforce to retrieve consolidated information from many different objects in a JSON format.
    Which is the optimal method to implement this in Salesforce?