Question 80
During an enterprise Copilot rollout, the following condition is confirmed: A proposed exception bypasses input validation for all anonymous users. Which action addresses the actual technical requirement?
Explanation
Correct Answer
The best response is "Validate inputs centrally and reject the blanket bypass". Broad exceptions convert localized issues into public vulnerabilities. This directly addresses the condition: A proposed exception bypasses input validation for all anonymous users.
Incorrect Answers
The alternative "Switch to a suitable nonroot runtime user where supported" fits another situation: A generated Dockerfile runs the application as root for convenience. Unnecessary container privilege increases blast radius. Here the condition is A proposed exception bypasses input validation for all anonymous users; use "Validate inputs centrally and reject the blanket bypass" instead. Broad exceptions convert localized issues into public vulnerabilities.
For the different scenario A code completion embeds a bearer token in a client-side JavaScript bundle, "Move the sensitive operation behind a protected server-side boundary" could be appropriate. Browser-delivered assets cannot keep embedded credentials secret. The present requirement is A proposed exception bypasses input validation for all anonymous users, which calls for "Validate inputs centrally and reject the blanket bypass". Broad exceptions convert localized issues into public vulnerabilities.
"Restrict token permissions to the minimum required" targets A proposed GitHub Actions change grants repository write access to a read-only lint job. Extra workflow privileges widen supply-chain attack surface. That differs from A proposed exception bypasses input validation for all anonymous users; the required decision here is "Validate inputs centrally and reject the blanket bypass". Broad exceptions convert localized issues into public vulnerabilities.