Question 210
A software team reports this Copilot-related situation: A broad request for a code refactor returns changes beyond the requested module. Which action most directly satisfies the requirement?
Explanation
Correct Answer
A defined working set reduces unintended scope expansion. Acceptance evidence: Only permitted files change and targeted tests pass.
Incorrect Answers
Output format constraints reduce downstream parser failures. That recommendation is relevant to a different task: A user wants JSON output that another tool can parse without human cleanup. In this case the main need is: A broad request for a code refactor returns changes beyond the requested module.
Zero-shot prompting needs sufficiently precise task instructions without demonstrations. That recommendation is relevant to a different task: A new developer wants Copilot to write a routine from an explicit textual requirement only. In this case the main need is: A broad request for a code refactor returns changes beyond the requested module.
Scope restrictions help maintain code reviewability. That recommendation is relevant to a different task: A request for a security fix allows broad changes that are hard to review. In this case the main need is: A broad request for a code refactor returns changes beyond the requested module.