Question 63


1.3.1 Question

Multiple Choices

What occurs if an unhandled error is fired on a startup task?

  • A. The startup role consumes the error during its load; if there is no event handler configured, it is set to Handled as the task completes.
  • B. The startup is cancelled and the role does not start.
  • C. The OnStop method automatically runs.
  • D. The startup task goes to the lowest security setting and continues to run, if possible.

Answer:

B
Explanation
A. Incorrect: If the startup task fires an unhandled error, the role startup stops in a failure. The task will not complete successfully.
B. Correct: The task will stop processing and return a non-zero value.
C. Incorrect: The task will stop in error. The OnStop process will not run because the role will not get that far.
D. Incorrect: The task will stop processing. It will not try to continue to run on a lower security setting.