Interview Security & DevSecOps

When in the pipeline does each of SAST, DAST, and SCA run? [Basic]

Answer

SCA and SAST usually run early in pull request and build stages. DAST runs later against a deployed test or staging environment because it needs a live application. Image and IaC scanning run before deployment, and runtime controls continue after release.

Technical explanation

SAST is useful before merge because developers can fix findings in the same code review cycle.

SCA should run on every dependency change and image build because new vulnerabilities can affect old packages.

DAST should run after deployment to an ephemeral or staging environment with representative routes, authentication, and test data.

Hands-on example

Pipeline example: PR stage = lint, unit tests, SAST, SCA, secret scan. Build stage = image scan and SBOM generation. Test deploy stage = DAST/ZAP scan. Release stage = signature verification and admission policies. Production = runtime monitoring and vulnerability drift detection.

Preparing for an interview?

Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.

More Security & DevSecOps interview questions

← All Security & DevSecOps questions