Question 530
A reviewer needs a focused diagnosis and proof of resolution for: A developer includes a live token in a prompt to ask Copilot for a curl example. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (inspect the supplied prompt for secrets and determine the minimum needed placeholders) isolates the relevant issue, and the acceptance evidence (the example is functional after substituting a locally managed credential without exposing the real token) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: A Copilot request to add pagination ignores the repository's existing cursor token convention. For 'A developer includes a live token in a prompt to ask Copilot for a curl example', examine inspect the supplied prompt for secrets and determine the minimum needed placeholders and confirm that the example is functional after substituting a locally managed credential without exposing the real token.
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 includes a live token in a prompt to ask Copilot for a curl example', examine inspect the supplied prompt for secrets and determine the minimum needed placeholders and confirm that the example is functional after substituting a locally managed credential without exposing the real token.
This diagnostic and result belong to a different incident: A developer wants the same error-handling pattern as an existing module but only gives abstract prose. For 'A developer includes a live token in a prompt to ask Copilot for a curl example', examine inspect the supplied prompt for secrets and determine the minimum needed placeholders and confirm that the example is functional after substituting a locally managed credential without exposing the real token.



GitHub Copilot Practice Tests