Question 460
The team has implemented a fix for this Copilot-related requirement: A team inherits a legacy method with deeply nested conditionals and unclear intent. Which observed result best demonstrates successful remediation?
Explanation
Correct Answer
This is the specific observable acceptance result for the scenario. Refactoring assistance saves effort only when existing behavior remains correct. It demonstrates the required behavior, rather than merely showing that a setting was changed.
Incorrect Answers
Published examples correctly handle authentication, errors and normal responses. However, this does not establish the required outcome: characterization tests produce the same observable outputs before and after the refactor.
Each scripted case reproduces locally, a duplicate callback causes no second charge, and the test environment makes no network call to production payment services. However, this does not establish the required outcome: characterization tests produce the same observable outputs before and after the refactor.
The new regression test fails on the old build and passes with the fix. However, this does not establish the required outcome: characterization tests produce the same observable outputs before and after the refactor.