Blue Prism Certified Professional Developer (APD01) — Question 18
Using a Wait stage to check if a Java element exists requires the Java Application Model tree to be traversed. Constantly accessing the model can be costly in terms of CPU efficiency.
Which of the following tips is a valid method to help manage this CPU efficiency cost?
Answer options
- A. Avoid using long timeout periods in Wait Stages that wait for Java elements
- B. Close and restart the Java application between cases
- C. Spy all the Java elements using an alternative spy mode
- D. Ensure all the actions required to interface with the Java application are contained in a single Object
Correct answer: B
Explanation
The correct answer is B, as closing and restarting the Java application can help reset the state and reduce CPU load by clearing unnecessary processes. The other options, while they may offer some improvements, do not directly address the efficiency of CPU usage as effectively as restarting the application does.