---
title: SDLC Explained: Phases, Models and a Worked Example
url: https://www.masaischool.com/resources/what-is-sdlc-explained
description: What is SDLC? Phases of the software development life cycle, waterfall vs agile and other models, one feature through every phase, and interview Q&A.
updated: 2026-12-01
publisher: Masai (https://www.masaischool.com)
---

# SDLC Explained: Phases, Models (Waterfall, Agile, V, Spiral, DevOps) and One Feature Taken Through Every Phase

> **Short answer**
>
> The software development life cycle (SDLC) is the set of stages a team follows to take software from idea to retirement: plan, define requirements, design, build, test, deploy and maintain. Models such as waterfall, agile, V-model, spiral and the DevOps loop arrange those same stages in different orders and cycle lengths.

This page is for students who meet SDLC in a syllabus, an interview or a first job and want one clear picture. It defines the term from a primary source, compares five models in a table, and then follows one small feature through all seven phases with code that runs.

Sources were read on 1 December 2026: the US National Institute of Standards and Technology (NIST) glossary, the Agile Manifesto and a vendor overview from AWS. The model histories come from the reference pages cited at the end.

## What SDLC means and the seven phases

NIST's glossary defines the system development life cycle as the scope of activities associated with a system: its initiation, development and acquisition, implementation, operation and maintenance, and finally its disposal ([NIST glossary, read 1 December 2026](https://csrc.nist.gov/glossary/term/system_development_life_cycle)). In software teams the same idea is broken into phases. AWS lists plan, design, implement, test, deploy and maintain ([AWS, read 1 December 2026](https://aws.amazon.com/what-is/sdlc/)). Most textbooks add a requirements phase after planning, giving seven.

| Phase | Question it answers | Typical output | Who leads |
|---|---|---|---|
| 1. Planning | Is this worth building, and with what budget and time? | Scope note, estimate, schedule | Product or project manager |
| 2. Requirements | What exactly must the software do? | User stories or a requirements document, acceptance criteria | Business analyst or product owner |
| 3. Design | How will it be built? | Architecture, data model, API contract, screens | Senior engineers, designers |
| 4. Implementation | Does the code do it? | Source code in version control | Developers |
| 5. Testing | Does it meet the requirements, and what breaks? | Test results, bug list | QA and developers |
| 6. Deployment | How does it reach users safely? | A release in production | Developers, DevOps |
| 7. Maintenance | How do we fix, monitor and improve it? | Patches, new versions, monitoring | Whole team |

Two points interviewers like. First, the phases are activities, not job titles, and a small team does all of them. Second, maintenance is usually the longest and costliest phase, because software lives for years after its first release.

## SDLC models compared: waterfall, agile, V, spiral and DevOps

A model fixes the order and length of the phases. The right choice depends on how well the requirements are known and how costly a late change is.

| Model | How it runs | Strength | Weakness | Fits |
|---|---|---|---|---|
| Waterfall | Phases in strict sequence, each finished before the next | Clear milestones and documents | Late discovery of wrong requirements is expensive | Stable, well-understood requirements, contracts with fixed scope |
| V-model | Waterfall with a test level paired to each design level | Testing planned early | Same rigidity as waterfall | Safety-critical and regulated systems |
| Iterative or incremental | Build a small version, then enlarge it in cycles | Early working software | Scope can creep | Products with a clear core and unclear edges |
| Spiral | Repeated cycles, each starting with risk analysis and a prototype | Risk is handled first | Heavy for small projects | Large, risky or novel systems |
| Agile (Scrum, Kanban) | Short cycles that deliver working software and take feedback | Handles changing requirements | Needs close user contact and a disciplined team | Most product software |
| DevOps loop | Plan, code, build, test, release, deploy, operate and monitor as one continuous loop | Frequent, automated, low-risk releases | Needs pipeline and monitoring investment | Web services released often |

Waterfall is often traced to a 1970 paper by Winston Royce. Royce actually described the plain sequential version as risky because testing happens at the end ([Waterfall model overview](https://en.wikipedia.org/wiki/Waterfall_model)). Barry Boehm described the spiral model in a 1986 paper ([Spiral model overview](https://en.wikipedia.org/wiki/Spiral_model)).

Agile is a set of values, not one process. The [Agile Manifesto](https://agilemanifesto.org/) says its authors value working software over comprehensive documentation and responding to change over following a plan, while still seeing value in the items on the right. Scrum and Kanban are the two best-known ways to practise it: see [Scrum and agile explained](https://www.masaischool.com/resources/scrum-and-agile-explained). The DevOps loop depends on automated pipelines: see [CI/CD pipeline explained](https://www.masaischool.com/resources/ci-cd-pipeline-explained).

## Waterfall vs agile: how to decide

- **Requirements known and stable?** Lean waterfall or V-model. Example: a fixed-scope government form system.
- **Requirements uncertain or users still learning what they want?** Agile. Example: a new consumer app.
- **Failure is dangerous (medical device, avionics)?** V-model or spiral with heavy documentation, often combined with iterative work.
- **Release many times a week?** Agile plus a DevOps pipeline.
- **Fixed contract, uncertain scope?** Talk to the client early. Neither model fixes that mismatch.

Most real teams use a mix. A bank may plan a year in waterfall style and build each quarter in Scrum sprints. Knowing the mix exists is a stronger interview answer than naming a favourite.

## Worked example: one feature through every phase

The feature: in an expense-tracker app, let a user download one month's expenses as a CSV file. The app has about 5,000 users and one four-person team. The numbers in this example are made up to show each phase.

1. **Planning.** Users have asked for exports to share with an accountant. The team estimates three days of work and agrees it fits the current sprint. They decide against a PDF export for now.
2. **Requirements.** Written as acceptance criteria: the file has a header row date,category,amount_inr; it contains only the chosen month; the last row is a total; an empty month gives a total of 0.
3. **Design.** One new API endpoint, GET /reports/{month}.csv, reusing the existing expenses table. No new tables. A button on the monthly screen calls it. See [REST API explained](https://www.masaischool.com/resources/rest-api-explained) for how such endpoints are shaped.
4. **Implementation.** A developer writes the export function on a branch, in version control, and opens a pull request for review.
5. **Testing.** Automated checks encode the acceptance criteria. A tester also tries a month with no data and a category name containing a comma.
6. **Deployment.** The change is merged, built by the pipeline, released to a small share of users first, and then to everyone.
7. **Maintenance.** A week later a user reports a wrong total for a month boundary. The team writes a test that reproduces it, fixes it and ships a patch.

The implementation and test steps in code. The function builds the CSV, and the assertions are the acceptance criteria from the requirements phase.import csv, io def monthly_report_csv(expenses, month): """Return a CSV string of one month's expenses, with a total row.""" rows = [e for e in expenses if e["date"].startswith(month)] out = io.StringIO() w = csv.writer(out, lineterminator="\n") w.writerow(["date", "category", "amount_inr"]) for e in rows: w.writerow([e["date"], e["category"], e["amount"]]) w.writerow(["total", "", sum(e["amount"] for e in rows)]) return out.getvalue() data = [ {"date": "2026-11-03", "category": "food", "amount": 250}, {"date": "2026-11-18", "category": "travel", "amount": 1200}, {"date": "2026-12-01", "category": "food", "amount": 300}, ] # Test phase: check the acceptance criteria written in the requirements phase. report = monthly_report_csv(data, "2026-11") lines = report.splitlines() assert lines[0] == "date,category,amount_inr" assert len(lines) == 4 # header + 2 November rows + total assert lines[-1] == "total,,1450" assert monthly_report_csv(data, "2026-10").splitlines()[-1] == "total,,0" print(report) print("all acceptance checks passed") 

Output when run: the header line, the two November rows, the line total,,1450, then all acceptance checks passed. Note that the December row is correctly left out. We did not build a cost-of-change simulation here: the popular claim that bugs cost a fixed multiple more in each later phase is debated, and a toy model with invented multipliers would only restate the assumption.

## SDLC interview questions with short answers

### Explain SDLC in one minute.

It is the lifecycle a team follows to build software: plan, gather requirements, design, code, test, deploy and maintain. A model such as waterfall or agile decides how those phases are ordered and how long each cycle runs. Then give your example, such as the CSV feature above.

### What is the difference between waterfall and agile?

Waterfall finishes each phase before the next and delivers once at the end. Agile repeats all phases in short cycles and delivers working software each cycle, so feedback arrives earlier. Waterfall suits stable requirements; agile suits changing ones.

### Where does testing happen in agile?

In every cycle, alongside coding, not at the end. Developers write automated tests and testers explore the feature as it is built. The V-model also moves testing earlier by planning each test level when the matching design level is written.

### What is the most expensive phase?

Usually maintenance, because it lasts as long as the software is used. Fixing a misunderstood requirement late is also costly, which is the reason iterative models seek feedback early.

### Where do DevOps and CI/CD fit?

They automate the build, test and deploy steps so releases are small and frequent. They extend the lifecycle into operations and monitoring rather than replacing it. Read the [CI/CD explainer](https://www.masaischool.com/resources/ci-cd-pipeline-explained) for the pipeline stages.

For role-specific practice, see [types of software engineer roles](https://www.masaischool.com/resources/types-of-software-engineer-roles) and [system design interview preparation](https://www.masaischool.com/resources/system-design-interview-preparation).

## Frequently asked questions

### What are the phases of SDLC?

A common seven-phase list is planning, requirements, design, implementation, testing, deployment and maintenance. AWS lists six by merging requirements into planning. The names vary by textbook and company, but the activities are the same, and in agile teams they repeat every cycle.

### What is the SDLC in simple words?

It is the step-by-step life of a piece of software: decide what to build, design it, write it, test it, release it and keep it working. Teams use a model to organise those steps, and the model decides whether they run once in order or repeat in short cycles.

### What is the difference between SDLC and agile?

SDLC is the general lifecycle that every software project goes through. Agile is one family of approaches to running that lifecycle, using short cycles and frequent feedback. Waterfall is another approach. Agile does not remove the SDLC phases; it repeats them in small pieces.

### Which SDLC model is most used today?

We found no reliable single survey figure, so we do not give a percentage. Agile approaches, mostly Scrum and Kanban, are widely used for product software, often together with DevOps pipelines. Waterfall and V-model remain in regulated and fixed-scope work.

### Is DevOps a phase of SDLC?

No. DevOps is a set of practices and tooling that joins development and operations and automates build, test and release. It touches the deployment and maintenance phases most, and it turns the lifecycle into a loop that repeats continuously.

### Why is SDLC important for a software engineer?

It tells you where your task sits, who depends on your output and what done means. Knowing it helps you ask for acceptance criteria before coding, write tests, and explain your work in interviews and standups.
