A developer has been using Copilot CLI for a long local refactor. The original task was to replace a deprecated billing helper only in src/billing/legacy.ts. After several prompts, the developer wants to check whether the current working tree has drifted before asking Copilot to continue. Which change should the developer make first? Select one answer.
cd ~/work/payments-api
git status --short
git diff --name-only
copilot
# Prompt:
# Continue the refactor and clean up anything else you notice.Choose an answer
Tap an option to check your answer.
Correct answer: Compare changed files to the original scope.
Why this is the answer
The developer should first compare the changed files to the original scope to ensure the refactor hasn't introduced unintended modifications outside of src/billing/legacy.ts. This step is crucial for maintaining control over the codebase and preventing "drift," especially when using AI tools like Copilot that might interpret "clean up anything else you notice" broadly. Asking Copilot to continue without review risks further unintended changes. Committing all changes before inspection is premature and could save unwanted code. Resetting the branch and restarting would discard all progress, which is inefficient and unnecessary if the changes are mostly correct.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed