Question 80
Two independently scoped GitHub Copilot requirements are being reviewed. Requirement A: A generated Python subprocess wrapper puts a customer-provided filename into a shell command. Requirement B: A developer asks Copilot to invent a citation supporting a compliance statement without providing evidence. Choose TWO changes that directly cover A and B.
Explanation
Correct Answers
This action addresses requirement B: A developer asks Copilot to invent a citation supporting a compliance statement without providing evidence. Generative AI can fabricate source details even when prose sounds confident. Verify by observing: Every cited policy passage exists and supports the compliance conclusion.
This action addresses requirement A: A generated Python subprocess wrapper puts a customer-provided filename into a shell command. AI code must be checked at trust boundaries before merge. Verify by observing: A filename containing shell operators is handled literally and runs no additional command.
Incorrect Answers
Copilot CLI tool and path authorization are separate from the correctness of generated shell text; blanket allow-all permissions can remove important operator confirmation. The two requirements instead call for these controls: (A) Pass an argument array without a shell and validate allowed paths; (B) Verify the claim against the controlling policy and cite the actual source instead of inventing a reference.
Copilot public-code references are conditional on the effective matching policy and periodically refreshed public GitHub index; absence of a reference is not legal clearance or a security audit. The two requirements instead call for these controls: (A) Pass an argument array without a shell and validate allowed paths; (B) Verify the claim against the controlling policy and cite the actual source instead of inventing a reference.
Human accountability for quality remains even when Copilot writes the patch. The two requirements instead call for these controls: (A) Pass an argument array without a shell and validate allowed paths; (B) Verify the claim against the controlling policy and cite the actual source instead of inventing a reference.