Every piece of software goes through the same phases, whatever the team calls them: work out what is needed, design it, build it, test it, secure it, release it, run it, and learn from how it is used. The software development life cycle (SDLC) is that sequence, and the models, waterfall, the V-model, iterative and spiral, Agile, and DevOps, differ in one main way: how much work passes through each phase at once, and how soon you find out you were wrong. This lesson follows one feature through the phases three ways, as part of a big waterfall release, as an Agile team without automation, and as a small batch through a DevOps pipeline, and shows where the weeks go and where a secure SDLC puts the security work.
Difficulty: Intermediate · Know this first: Lesson F06, Lesson 07, Lesson 60
This bar splits one feature's journey from request to a lesson learned, in working days. It is a worked example, not a measurement. The building time is similar in every model; the difference is waiting, for the rest of a batch or in someone else's queue.
Enter your team's four DORA metrics. The bands below are approximate, after the yearly DORA State of DevOps reports, whose exact thresholds change from year to year.
Roughly: high = deploys at least weekly, lead time under a week, failure rate under about 15%, restore within a day · low = deploys monthly or less, lead time over a month, or restore over a week
Fast and stable: small batches are working
Three questions. No score is saved anywhere — this is just you against the material.
The SDLC grows in four levels: first the phases and the classic models, then running one model well, then a secure SDLC built into the pipeline, and finally choosing and changing the model for an organization.
At the basic level you can name the phases, requirements, design, build, test, release, operate, and maintain, and the main models.
Try it: Basic
Which model pairs each development phase with a matching test level?
Now do it: Draw the V for one feature you know: what each test level would check.
At the intermediate level you run a team's life cycle so the phases do not become queues.
Uses of each model: waterfall still fits fixed-scope work with hard external deadlines and little uncertainty, such as a regulatory filing; the V-model fits safety-critical systems that need traceable verification; iterative models fit almost everything with users.
Try it: Intermediate
What should a team's definition of done include so work does not pile up after the sprint?
Now do it: Write your team's definition of done and mark which items are checked by the pipeline and which by a person.
At the advanced level security runs through every phase. Frameworks such as NIST's Secure Software Development Framework (SSDF, SP 800-218) and OWASP SAMM describe the practices; the pipeline makes them routine.
Failure scenario: scanners that block on every low finding train people to ignore them. Gate on severity and exploitability, and route the rest to a backlog.
Try it: Advanced
A dependency scan finds a critical vulnerability in a library the service uses. In a secure SDLC, when should that be found?
Now do it: List the security checks in your pipeline per phase. Mark the gaps against the list above.
At the master level you choose how an organization builds software and change it without stopping delivery.
Trade-off: big batches feel safer and plannable, and concentrate risk at the end; small batches feel chaotic at first, and spread risk into many small, reversible steps.
Try it: Master
A bank insists on a manual change board for every release because auditors require approval. What is the better design?
Now do it: Run batch_size.py in Go deeper and change WRONG to 12. Compare when each model discovers the last feature was misunderstood.
The models differ in batch size, and batch size decides how soon users get value and how soon you learn you were wrong. This script delivers the same 12 features as one big release and as 10-day iterations, and applies Little's law to work in progress. Standard library only; python3 batch_size.py.
# batch_size.py - the same 12 features, one big release or small iterations
FEATURES, DAYS_EACH, HORIZON = 12, 10, 180 # 10 working days of effort per feature
BIG_BANG_OVERHEAD = 30 # integration, test phase and release for one big batch
WRONG = 7 # feature 7 was misunderstood
def big_bang():
ship = FEATURES * DAYS_EACH + BIG_BANG_OVERHEAD
return [ship] * FEATURES # everything reaches users on the same day
def iterative():
return [DAYS_EACH * (i + 1) for i in range(FEATURES)] # one feature per iteration
for name, plan in [("one big release", big_bang()), ("iterations of 10 days", iterative())]:
first = min(plan)
value = sum(max(0, HORIZON - d) for d in plan) # feature-days in users' hands
found = plan[WRONG - 1] + 5 # users notice about 5 days after shipping
print(f"{name}:")
print(f" first feature reaches users on day {first}")
print(f" feature-days of use by day {HORIZON}: {value}")
print(f" the misunderstood feature {WRONG} is discovered on day {found}")
# Little's law for work: lead time = work in progress / throughput
for wip in (12, 3, 1):
print(f"{wip:>2} feature{'s' if wip > 1 else ' '} in progress, 1 finished per 10 days -> lead time {wip * DAYS_EACH} days each")
$ python3 batch_size.py one big release: first feature reaches users on day 150 feature-days of use by day 180: 360 the misunderstood feature 7 is discovered on day 155 iterations of 10 days: first feature reaches users on day 10 feature-days of use by day 180: 1380 the misunderstood feature 7 is discovered on day 75 12 features in progress, 1 finished per 10 days -> lead time 120 days each 3 features in progress, 1 finished per 10 days -> lead time 30 days each 1 feature in progress, 1 finished per 10 days -> lead time 10 days each
Read it like this: with the same effort, iterations put the first feature in users' hands on day 10 instead of day 150, give almost four times the use by day 180, and reveal the misunderstood feature 80 days sooner. The last three lines are Little's law: with one feature finished every ten days, every extra feature in progress adds ten days to everyone's lead time.
name: build-test-secure
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Unit and integration tests
run: make test
- name: Static analysis (SAST)
run: semgrep scan --config auto --error
- name: Dependency scan (SCA)
run: trivy fs --exit-code 1 --severity CRITICAL,HIGH .
- name: Secret scan
run: gitleaks detect --source . --redact
- name: SBOM
run: syft dir:. -o spdx-json > sbom.spdx.json
The workflow parses as YAML and follows the GitHub Actions syntax; the tools (Semgrep, Trivy, Gitleaks, Syft) must be installed in the runner first, usually with their official setup actions, and the commands should be checked against the versions you install. Design-time threat models and penetration tests stay human; everything above runs on every pull request.
This is a composite of a failure pattern that keeps repeating; the numbers are illustrative. A retailer planned a year-long replatforming as one waterfall release: requirements in Q1, design in Q2, build in Q3, test in Q4.
The next phase was cut into thin slices, each launched to a few percent of customers behind a flag, with tests and security scans in the pipeline and a threat model per slice. The team still wrote requirements, designed, tested, and reviewed security; it just did all of them every two weeks for a small piece, and heard from customers within a month instead of a year.
Redesign the delivery life cycle of a payments team that ships every quarter, has a manual QA phase and a monthly change board, and must pass PCI DSS audits.
Where does a feature wait today, and for how long? Which approvals do the auditors actually require, and what evidence satisfies them? Which tests and security checks could run on every change? How will you release safely in smaller pieces?
Say 8 engineers, 40 changes a quarter, a 90-day lead time, a 25 percent change failure rate, and a 5-day mean time to restore.
Map the value stream and its queues; trunk-based development with feature flags; the test pyramid and SAST, SCA, secret scanning, and SBOMs in CI; a threat model per change touching card data; standard changes approved automatically from pipeline evidence, with the board reviewing only high-risk changes; canary deployments with rollback; DORA metrics tracked monthly with targets of weekly deploys and under a week of lead time within two quarters.
Automated approval satisfies auditors with better evidence and needs pipeline controls the auditors trust. Smaller releases lower risk per change and need flags, observability, and on-call maturity. Keeping a human board for high-risk changes slows those down on purpose.