Question 230
At fictional Graniteview Academic Services, an automation delivery team is conducting a supervised automation regression rehearsal with a formally approved rollback and monitoring plan. The independently authored UiPath Automation Developer Associate case states: A fictional error handler catches an exception and throws an unrelated generic error, losing the original failure location needed for investigation. Assume these documented facts only; validate product-version support, obtain change approval, and use synthetic data in tests. Which ongoing engineering control would most directly prevent this condition from recurring?
Explanation
Writer-proposed answer: B (UNVERIFIED)
Preliminary individual option explanations — NOT expert validated
Correct Answer
Review catch blocks for context preservation and test representative propagated failures. Rethrowing a captured exception can preserve origin details that creating an unrelated replacement error may discard.
Incorrect Answers
This response concerns Structured logging with sensitive fields, which is different from the stated failure. A fictional error handler catches an exception and throws an unrelated generic error, losing the original failure location needed for investigation.
Exception classification and recovery is not the cause of the reported failure: A fictional error handler catches an exception and throws an unrelated generic error, losing the original failure location needed for investigation.
Conditional breakpoint and variable inspection alone does not establish the needed evidence: An injected test failure reaches the top-level handler with its original stack context while excluding credentials and personal data.