Question 110
A reviewer needs a focused diagnosis and proof of resolution for: An AI-proposed pull request changes authorization checks but includes only happy-path tests. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (inspect the permission matrix and compare existing tests against unauthorized-user cases) isolates the relevant issue, and the acceptance evidence (forbidden identities and cross-tenant requests are denied by tested policy paths) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: An agent proposes to skip CI checks so a release can meet a deadline. For 'An AI-proposed pull request changes authorization checks but includes only happy-path tests', examine inspect the permission matrix and compare existing tests against unauthorized-user cases and confirm that forbidden identities and cross-tenant requests are denied by tested policy paths.
This diagnostic and result belong to a different incident: Two Copilot responses suggest different cache invalidation approaches for the same incident. For 'An AI-proposed pull request changes authorization checks but includes only happy-path tests', examine inspect the permission matrix and compare existing tests against unauthorized-user cases and confirm that forbidden identities and cross-tenant requests are denied by tested policy paths.
This diagnostic and result belong to a different incident: A programmer accepts an AI-written tax calculation without testing rounding at the permitted currency boundary. For 'An AI-proposed pull request changes authorization checks but includes only happy-path tests', examine inspect the permission matrix and compare existing tests against unauthorized-user cases and confirm that forbidden identities and cross-tenant requests are denied by tested policy paths.



GitHub Copilot Practice Tests