Question 390
At fictional Kingsford Customer Care, an automation delivery team is conducting a controlled UiPath workflow migration with a formally approved rollback and monitoring plan. The independently authored UiPath Automation Developer Associate case states: A fictional receipts robot removes rejected items from the same list while iterating it by index, accidentally skipping adjacent invalid receipts. 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
Add adjacent-boundary and empty-list unit tests to all collection-filtering workflows. Mutating a list during forward traversal can shift indices and invalidate iteration assumptions.
Incorrect Answers
This response concerns String normalization and Unicode case, which is different from the stated failure. A fictional receipts robot removes rejected items from the same list while iterating it by index, accidentally skipping adjacent invalid receipts.
Data type conversion and culture is not the cause of the reported failure: A fictional receipts robot removes rejected items from the same list while iterating it by index, accidentally skipping adjacent invalid receipts.
DataTable join on unstable names alone does not establish the needed evidence: A test with adjacent invalid entries retains all valid receipts and removes every rejected one exactly once.