Certified Pega Senior System Architect v8.7 — Question 60
What is the difference between using the Call and Branch methods in an activity step to invoke other activities?
Answer options
- A. Call provides more robust debugging capability than Branch, while Branch provides better run-time performance.
- B. Branch creates a new thread to allow asynchronous processing, while Call runs in the thread from it was invoked.
- C. Call returns to the originating activity, while Branch skips the remainder of the originating activity.
- D. Branch overrides the security restrictions of the called activity allowing you to easily test code; it will not run in production.
Correct answer: C
Explanation
The correct answer is C because the Call method allows the program to return to the point of invocation after the called activity finishes, whereas the Branch method continues to execute other activities and does not return to the original activity. Options A and B discuss differences in debugging and threading, which are not central to the core differences in control flow between Call and Branch. Option D misrepresents the purpose of Branch in a production environment.