Development with AWS Services

An AI-assisted security review flags a possible SQL injection path in a working application. What should the developer do before accepting the suggested fix?

Show the answer

Correct answerD. Inspect the data flow and verify that the fix addresses the finding.

AWhy not this: Functional tests can pass while unsafe handling of untrusted input remains.

BWhy not this: Syntactically valid generated code can retain the same injection vulnerability.

CWhy not this: An AI-generated finding does not establish that its proposed patch is correct or complete.

DWhy this is right: Inspecting the data flow establishes whether the finding applies and whether the proposed change mitigates it.

AI security findings and fixes require validation against the actual data flow and vulnerability. Passing functional tests does not demonstrate that malicious input is handled safely.