Question 490
A reviewer needs a focused diagnosis and proof of resolution for: A developer wants the same error-handling pattern as an existing module but only gives abstract prose. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (inspect the existing module and identify one approved representative code example) isolates the relevant issue, and the acceptance evidence (the generated handler follows the local error-handling pattern and passes relevant tests) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: A developer includes a live token in a prompt to ask Copilot for a curl example. For 'A developer wants the same error-handling pattern as an existing module but only gives abstract prose', examine inspect the existing module and identify one approved representative code example and confirm that the generated handler follows the local error-handling pattern and passes relevant tests.
This diagnostic and result belong to a different incident: A model generates a retry loop without a maximum attempt limit because the prompt only says 'retry failed requests'. For 'A developer wants the same error-handling pattern as an existing module but only gives abstract prose', examine inspect the existing module and identify one approved representative code example and confirm that the generated handler follows the local error-handling pattern and passes relevant tests.
This diagnostic and result belong to a different incident: A prompt says only 'make this function faster' and Copilot proposes a change that breaks output ordering. For 'A developer wants the same error-handling pattern as an existing module but only gives abstract prose', examine inspect the existing module and identify one approved representative code example and confirm that the generated handler follows the local error-handling pattern and passes relevant tests.



GitHub Copilot Practice Tests