Quick interview answer
Dependency scanning (SCA), static analysis, secret scanning, authenticated ZAP baseline scans, and API authorisation tests (IDOR, role escalation, token expiry) written as normal automated tests.
Detailed explanation
Shift-left security is mostly automation plumbing: OWASP Dependency-Check or Snyk on every build, SAST on pull requests, gitleaks for secrets, and a ZAP baseline scan against the deployed environment with rules tuned to fail only on new findings. Authorisation is the part product tests miss — assert that user A cannot read user B's resource, that expired and tampered tokens are rejected, and that role-restricted endpoints return 403.
1@Test2void userCannotReadAnotherUsersOrder() {3 given().auth().oauth2(userAToken)4 .when().get("/orders/{id}", userBOrderId)5 .then().statusCode(403);6}Real-world example
An IDOR test in the regression suite caught an endpoint that returned any invoice by id after a refactor.
Interview tip
Lead with OWASP Top 10 categories you actually test — vague 'we do security testing' answers score zero.