Question 240
The Claude application case reports: An application concatenates untrusted tool output into a privileged shell command. Select TWO: a safe corrective action and an independent acceptance test for this failure. (Select TWO.)
Explanation
Correct Answers
This corrective action targets An application concatenates untrusted tool output into a privileged shell command by applying: Use typed request contracts, code review, dependency pinning, automated tests, and secret scanning for Claude integrations. It addresses: Unreviewed SDK or dependency changes can introduce breaking API behavior or expose access credentials.
This evidence independently verifies the intervention for An application concatenates untrusted tool output into a privileged shell command: A CI gate rejects invalid request shapes, leaked secrets, and unreviewed dependency updates before deployment.
Incorrect Answers
Asynchronous concurrency and resource limits: Uncontrolled fan-out causes request saturation, expensive orphaned responses, and cross-session result mixups. That may be useful independently, but the missing requirement here is Secure software engineering and sdk maintenance.
Http status and retry-safe api clients: An API client that retries all failures identically can leak credentials, amplify incidents, and exceed quotas. The observed issue still requires Secure software engineering and sdk maintenance; the proposed alternative tests another control.
Scope control and stakeholder prioritization: Feature creep and unclear ownership lead to unsafe tool additions and untestable acceptance criteria. Without demonstrating Secure software engineering and sdk maintenance, that option does not satisfy the requested outcome.