Exam PDI Topic 2 Question 98 Discussion
Actual exam question for Salesforce's PDI exam
Question #: 98
Topic #: 2
Question #: 98
Topic #: 2
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?
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?
Suggested Answer: A Vote an answer
* Why Queueable Class?
* Queueable Apex supports callouts and allows chaining to process one record at a time efficiently.
* The trigger detects when the Order__c status changes to "Placed" and enqueues the Queueable class to perform the callout.
* Why Not Other Options?
* B. Batchable class: Batch jobs are ideal for bulk processing but not suited for single REST callouts.
* C. Flow with invocable method: Flows are less efficient and limited in handling callouts for large- scale operations.
* D. @future method: While it supports asynchronous callouts, it does not allow chaining, making Queueable more suitable.
* Queueable Apex: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode
/apex_queueing_jobs.htm
References:
* Queueable Apex supports callouts and allows chaining to process one record at a time efficiently.
* The trigger detects when the Order__c status changes to "Placed" and enqueues the Queueable class to perform the callout.
* Why Not Other Options?
* B. Batchable class: Batch jobs are ideal for bulk processing but not suited for single REST callouts.
* C. Flow with invocable method: Flows are less efficient and limited in handling callouts for large- scale operations.
* D. @future method: While it supports asynchronous callouts, it does not allow chaining, making Queueable more suitable.
* Queueable Apex: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode
/apex_queueing_jobs.htm
References:
by Wright at Sep 15, 2025, 04:06 PM
Contact Us
If you have any question please leave me your email address, we will reply and send email to you in 12 hours.
Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday
Support: Contact now
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).