Question 60
A reviewer needs a focused diagnosis and proof of resolution for: A Copilot completion embeds a production API token directly into a source-code test fixture. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (scan the proposed diff and repository history for the literal secret and inspect secret-scanning alerts) isolates the relevant issue, and the acceptance evidence (the test passes without plaintext production credentials in code, logs, or commits) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: A teammate accepts a Copilot claim that an undocumented flag disables all security checks for a build tool. For 'A Copilot completion embeds a production API token directly into a source-code test fixture', examine scan the proposed diff and repository history for the literal secret and inspect secret-scanning alerts and confirm that the test passes without plaintext production credentials in code, logs, or commits.
This diagnostic and result belong to a different incident: A hiring team considers an AI-generated developer candidate summary that consistently favors candidates from one background. For 'A Copilot completion embeds a production API token directly into a source-code test fixture', examine scan the proposed diff and repository history for the literal secret and inspect secret-scanning alerts and confirm that the test passes without plaintext production credentials in code, logs, or commits.
This diagnostic and result belong to a different incident: An AI-proposed authentication refactor names a framework method that does not exist in the installed package version. For 'A Copilot completion embeds a production API token directly into a source-code test fixture', examine scan the proposed diff and repository history for the literal secret and inspect secret-scanning alerts and confirm that the test passes without plaintext production credentials in code, logs, or commits.



GitHub Copilot Practice Tests