Question 370
A reviewer needs a focused diagnosis and proof of resolution for: A Copilot answer proposes a change in a file that was not open, selected or provided to the chat. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (inspect the files and selections actually included as model context for the request) isolates the relevant issue, and the acceptance evidence (the response explains the actual target file and can be checked against the provided code) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: A chat request references a production credential stored in a repository file and asks for a sample connection string. For 'A Copilot answer proposes a change in a file that was not open, selected or provided to the chat', examine inspect the files and selections actually included as model context for the request and confirm that the response explains the actual target file and can be checked against the provided code.
This diagnostic and result belong to a different incident: A team wants to know why irrelevant neighboring code appears in the context for an inline suggestion. For 'A Copilot answer proposes a change in a file that was not open, selected or provided to the chat', examine inspect the files and selections actually included as model context for the request and confirm that the response explains the actual target file and can be checked against the provided code.
This diagnostic and result belong to a different incident: A developer assumes that a locally disabled editor suggestion preference also changes GitHub server-side policy for all employees. For 'A Copilot answer proposes a change in a file that was not open, selected or provided to the chat', examine inspect the files and selections actually included as model context for the request and confirm that the response explains the actual target file and can be checked against the provided code.



GitHub Copilot Practice Tests