nerdexam
SalesforceSalesforce

PDI · Question #95

PDI Question #95: Real Exam Question with Answer & Explanation

The correct answer is B: Future method. This scenario requires a developer to implement components for an interactive, scripted process that involves an external REST endpoint callout and data presentation to the user.

Submitted by ricky.ec· Apr 18, 2026Logic and Process Automation

Question

Uniersal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create. In the first steps of collecting information, UC's ERP system must be checked via as a REST endpoint to see if the customerexists. If the customer exists, the data must be presented to the sales rep in Salesforce. Which two should a developer implement to satisfy the requirements? Choose2 answer

Options

  • AFlow
  • BFuture method
  • CTrigger
  • DInvocable method

Explanation

This scenario requires a developer to implement components for an interactive, scripted process that involves an external REST endpoint callout and data presentation to the user.

Common mistakes.

  • A. While a Flow would orchestrate the scripted steps and call the Apex, the question asks what a developer should implement, pointing to the code components rather than the declarative orchestration tool itself.
  • C. A Trigger executes automatically on record DML and is not designed for an interactive, guided screen flow that involves user input and immediate presentation of external data.

Concept tested. Apex for Flow integration and asynchronous callouts

Reference. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_future.htm

Topics

#Apex Integration#Asynchronous Apex#Flow Integration#Invocable Methods

Community Discussion

No community discussion yet for this question.

Full PDI PracticeBrowse All PDI Questions