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.
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
Topics
Community Discussion
No community discussion yet for this question.