Skip to content
Tech Interview Prep
Technical interview guide

Secure Software Development Lifecycle

Building security checks into every phase of development instead of testing for it only at the end.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: NIST SSDF 1.1; SLSA v1.2; OWASP SAMM and ASVS current 2026-08-31; CISA Secure by Design and Product Security Bad Practices current 2026-08-31.

Overview

Curated: · Written: · Reviewed:

Secure Software Development Lifecycle

In one line

Build security evidence into planning, design, build, release, operation and retirement, so each phase catches the defect classes it is best placed to catch. Reach for it when a team's only security control is a scan or pen test before release, because those controls see code and configuration late and miss design flaws entirely.

Key definitions

  • Security requirement: a testable statement of what the system must enforce, such as "refund requests must be authorized for the owning tenant's approver."
  • Threat model: a record of trust boundaries, data and control flows, identities, admin paths, and build and update mechanisms, used to find design flaws before code exists.
  • Provenance: a signed statement of how and where an artifact was built. It establishes identity and process, not that the source is safe.
  • SBOM: an inventory of components and versions. It shows what was shipped, not what code is reachable or executed.
  • Exception: a recorded release waiver naming the unmet requirement, compensating control, risk approver and expiry.
  • Secure default: a shipped configuration that is safe without the customer editing anything.

Formulas and complexity

Quote the coverage question as a ratio, not an activity count:

coverage=in-scope services scanned by a gating SAST jobtotal services\text{coverage} = \frac{\text{in-scope services scanned by a gating SAST job}}{\text{total services}}

For the MCQ 9 gate: 12240=5%\frac{12}{240} = 5\%

How it works

Each phase owns a class of defect. Requirements and threat models catch missing controls before code exists. Code review, SAST and dependency checks catch implementation and component defects at pull request time. API and authorization tests catch broken invariants that scanners cannot see. Release gates block on unresolved exposure. Operations and disclosure close the loop by fixing whole classes, not single instances.

Requirements and threat model Design review for high-risk changes Code review, SAST, SCA at PR Authz and API tests in CI Signed build with provenance Release gate with exceptions Operate, monitor, disclose, fix classes

When to use and when not to

SituationUse a full SDLC programA lighter control is enough
New tenant boundary, auth flow or privilege modelYes: threat model and tests before buildNo
Copy change or internal script with no new dataNoStandard review and existing checks
Team ships often with many servicesYes: paved-road templates and librariesAd hoc review does not scale
Single small tool, no exposureScoped checks onlyYes
Gate with no owners or expiries on suppressionsFix the gate firstBlocking on it adds noise

Traps interviewers probe

  1. Treating a green scanner as coverage. Fix: state what each tool reads. SAST sees injection patterns, SCA sees lockfile CVEs, neither reads tenant IDs. Add a test for the invariant that matters.
  2. Assuming more scanners fix design flaws. Fix: move the control earlier. Design defects need a threat model and requirement, since most of them are absent requirements, not bad code.
  3. Reading provenance as a safety guarantee. Fix: provenance proves the artifact came from a named builder and digest. It says nothing about whether the source is benign, so keep runtime controls.
  4. Trusting an SBOM to show exposure. Fix: an SBOM lists components. Reachability needs call-graph or runtime evidence, and a devDependency does not ship in a --omit=dev image.
  5. Re-signing a compromised artifact and calling it fixed. Fix: revoke trust, rebuild from known foundations, and verify the rebuilt artifact independently.

Interview tips

Open with the phase-by-phase claim: "Each phase catches a defect class the next one cannot, so I'd put the control where the defect is cheapest to fix." Then name the evidence per phase.

Expected follow-ups:

  • Which defects does SAST miss, and what covers them? (Design flaws and authorization invariants; a threat model and API tests.)
  • How do you stop the gate becoming checkbox theater? (Scoped populations, owners and expiries on suppressions, exceptions bound to the artifact digest.)
  • What does provenance not prove? (Source safety, absence of vulnerabilities, fitness for every consumer.)

30-second outline: Name the lifecycle phases in one sentence. Give the defect class each catches. State one gap the next phase closes. Finish with the metric you would track: coverage of in-scope services and exception age, not scan counts.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.