Question 660
A reviewer needs a focused diagnosis and proof of resolution for: A Copilot-authored API test accepts a 200 response for both authorized and unauthorized users. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (inspect the authorization matrix and expected status/content for denied identities) isolates the relevant issue, and the acceptance evidence (unauthorized requests are rejected while approved requests behave as specified) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: Copilot proposes disabling certificate verification to fix an HTTPS integration error. For 'A Copilot-authored API test accepts a 200 response for both authorized and unauthorized users', examine inspect the authorization matrix and expected status/content for denied identities and confirm that unauthorized requests are rejected while approved requests behave as specified.
This diagnostic and result belong to a different incident: An AI optimization replaces a reliable loop with parallel requests but the service becomes slower under load. For 'A Copilot-authored API test accepts a 200 response for both authorized and unauthorized users', examine inspect the authorization matrix and expected status/content for denied identities and confirm that unauthorized requests are rejected while approved requests behave as specified.
This diagnostic and result belong to a different incident: Generated unit tests hardcode the implementation's current output as the expected answer. For 'A Copilot-authored API test accepts a 200 response for both authorized and unauthorized users', examine inspect the authorization matrix and expected status/content for denied identities and confirm that unauthorized requests are rejected while approved requests behave as specified.



GitHub Copilot Practice Tests