Salesforce Platform Developer I (legacy) — Question 196

Universal Containers (UC) processes orders in Salesforce in a custom object, Order__c. They also allow sales reps to upload CSV files with thousands of orders at a time.

A developer is tasked with integrating orders placed in Salesforce with UC’s enterprise resource planning (ERP) system.

After the status for an Order__c is first set to ‘Placed’, the order information must be sent to a REST endpoint in the ERP system that can process one order at a time.

What should the developer implement to accomplish this?

Answer options

Correct answer: A

Explanation

The correct answer is A because using a Queueable class allows for asynchronous processing, which is suitable for making callouts to external systems without hitting governor limits. Option B is incorrect as Batchable is not meant for real-time processing of individual orders. Option C is not ideal since @future methods can only handle limited governor limits and don't provide the same level of control as Queueable. Option D does not fit the requirement since Flow is not typically used for direct callouts in this scenario.