Security Architecture

A development team wants to find insecure coding patterns, such as unsanitized input passed into SQL queries, while developers are still writing code and before any build is deployed. Which testing approach BEST fits?

Show the answer

Correct answerB. SAST

AWhy not this: RASP protects a running application from attacks at runtime; it does not review code for coding flaws before deployment.

BWhy this is right: SAST inspects code without running it, so it can flag insecure patterns such as unsanitized SQL input during development.

CWhy not this: SCA inventories third-party components and their known vulnerabilities; it does not analyze the team's own code logic.

DWhy not this: DAST probes a running application from outside and needs a deployed build, so it cannot test code still being written.

SAST analyzes source code, bytecode or binaries without executing the application, so it finds insecure patterns early in development. DAST needs a running application and tests it from the outside, so it cannot run before a deployable build exists.