exam questions

Exam APD01 All Questions

View all questions & answers for the APD01 exam

Exam APD01 topic 1 question 27 discussion

Actual exam question from Blue Prism's APD01
Question #: 27
Topic #: 1
[All APD01 Questions]

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?

  • 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
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mndfsnz
4 years, 1 month ago
A is the correct. 3 Interconnection with Java applications 3.1 Waiting stages Using a standby stage to see if a Java element exists means that you go through the Java Application Model tree. Constantly accessing the model can be costly in terms of CPU efficiency, so it is recommended that you follow the tips below: - Avoid using waiting stages that constantly verify the existence of a Java element. A 10-second waiting stage could spoil the application model considerably. An alternative could be to use a waiting stage with a fixed period before the waiting stage that checks if the element exists. By doing this, enough time should have passed to allow the element to appear, meaning that the first check of the application model would be sufficient. - Avoid using wait stages that check several conditions at the same time. For example, it does not make much sense to check an element that rarely occurs, especially if doing so would result in potentially costly CPU instructions. It would be better to wait for fewer conditions, leveled according to the possibility of their occurrence. You can always go back to this waiting stage if the waiting time is over.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago