Question 520
A Copilot-assisted software team encounters the following situation: Copilot keeps refactoring code outside a requested method. Which change best solves the specific issue without assuming unrelated requirements?
Explanation
Correct Answer
Clear boundaries reduce unintended broad modifications. The proposed action directly addresses the identified need: Copilot keeps refactoring code outside a requested method. A suitable acceptance check is: The diff changes only the named method and passes the relevant tests.
Incorrect Answers
The original request omitted an edge-case acceptance condition. The specific problem here is that the prompt lacked scope constraints for the edit.
The prompt only requested an undirected generic code review. The specific problem here is that the prompt lacked scope constraints for the edit.
The prompt omitted measurable success criteria. The specific problem here is that the prompt lacked scope constraints for the edit.