Software Development Life Cycle (SDLC) Interview Questions

261 multiple-choice tech interview questions on Software Development Life Cycle (SDLC): SDLC planning and phases, requirements and design baselines, build, test, maintenance and retirement, waterfall and the V-model, iterative and spiral models, environments and promotion, versioning and release management, deployment versus release, and the secure and regulated SDLC. Written for technical phone screens and interview prep, organized by subtopic, with a short explanation for every answer. Learn the 25 key terms with the flashcards first, then test yourself.

Take the practice test · Flashcards · All study tools

What it covers

  1. 3.1 Life cycle overview and planning
  2. 3.2 Requirements, design and the SRS
  3. 3.3 Build, test, deploy, maintain and retire
  4. 3.4 Waterfall and the V-model
  5. 3.5 Iterative, spiral, RAD and other models
  6. 3.6 Environments and promotion
  7. 3.7 Versioning and release management
  8. 3.8 Deployment versus release
  9. 3.9 Secure and regulated SDLC

Key terms

3.1 Life cycle overview and planning

SDLC
Phases from planning through maintenance that software goes through
Requirements analysis
Phase that gathers and documents what the system must do

3.4 Waterfall and the V-model

Waterfall
Sequential phases, each finished before the next
V-model
Each development phase paired with a matching test phase
Spiral model
Risk-driven repeated cycles

3.7 Versioning and release management

Semantic versioning
MAJOR.MINOR.PATCH versioning based on compatibility
Feature flag
Runtime switch separating deployment from release
Release candidate
Build ready for final testing before release

3.9 Secure and regulated SDLC

Shift left
Moving quality and security work earlier
SAST
Static analysis of code for security flaws
Feasibility study
A check of technical, financial, and operational viability before committing
Phase gate
A planned go/no-go decision before more money is spent
Verification
Checking that the product was built to the specification
Validation
Checking that the product meets the real need
User acceptance testing
The receiving party checks fitness for use
Corrective maintenance
Fixing defects in a system that is already in use
Adaptive maintenance
Changing a system so it still works in a new environment
Perfective maintenance
Improving a live system's function, performance, or maintainability
Iterative model
Revisiting and improving a version in later cycles
Staging environment
A production-like place to test before real users are affected
Promotion
Moving a known build forward through agreed environments and checks
Changelog
A record of what changed, what was fixed, and what might break
Threat modeling
Early analysis of how a system could be abused
Software requirements specification
A baseline of functional and quality requirements
End of support
The date after which a release line will no longer get fixes

Sample practice questions

  1. What is the software development life cycle (SDLC)?

    1. A command-line tool that compiles source code into binaries
    2. The time a server runs before it needs to be restarted
    3. A list of programming languages approved for a project
    4. The phases software goes through, from planning to maintenance

    Answer: D. The phases software goes through, from planning to maintenance Models differ in how they sequence and repeat these phases.

  2. In which SDLC phase are business needs gathered and documented?

    1. Requirements analysis
    2. Deployment and release
    3. Maintenance and support
    4. Testing and quality checks

    Answer: A. Requirements analysis Mistakes here are the most expensive to fix later.

  3. Why is the maintenance phase often the longest and most expensive part of the life cycle?

    1. Maintenance requires rewriting all of the code from scratch every month
    2. Software runs for years, needing fixes, patches, updates and features
    3. Maintenance only happens before release, when the most work is done
    4. It includes the cost of every piece of hardware, for as long as it runs

    Answer: B. Software runs for years, needing fixes, patches, updates and features Designing for maintainability pays off over the system's lifetime.

  4. What characterizes the waterfall model?

    1. Short iterations, each ending with a frequent release to real users
    2. No planning or documentation of any kind, from start to finish
    3. Continuous deployment of every commit straight to production
    4. Sequential phases, each finished before the next, with little going back

    Answer: D. Sequential phases, each finished before the next, with little going back It suits projects with stable, well-understood requirements and heavy regulation.

  5. What distinguishes the spiral model?

    1. A single pass through every phase, with no repetition at all
    2. No risk management of any kind, in any of its phases
    3. Repeated cycles of planning, risk analysis, building and evaluation
    4. A model that's designed specifically for building websites

    Answer: C. Repeated cycles of planning, risk analysis, building and evaluation Barry Boehm proposed it for large, high-risk projects.

  6. What is the purpose of separate dev, test or staging, and production environments?

    1. Tripling the organization's cloud costs on purpose to justify a bigger budget
    2. Letting each developer run a different version of the code than everyone else
    3. Testing changes in production-like conditions before real users are affected
    4. Avoiding the need for version control by keeping copies in each environment

    Answer: C. Testing changes in production-like conditions before real users are affected Staging should mirror production configuration as closely as practical.

  7. What is semantic versioning (SemVer)?

    1. Versioning each release only by the calendar date it was published on
    2. Random version numbers assigned to each build by the CI pipeline
    3. MAJOR.MINOR.PATCH: breaking changes, compatible features, compatible fixes
    4. A Git branching strategy with separate branches for each version

    Answer: C. MAJOR.MINOR.PATCH: breaking changes, compatible features, compatible fixes Example: going from 2.3.1 to 3.0.0 signals a breaking change.

  8. What is a feature flag, and why is it useful in releases?

    1. A code comment that marks a section of unfinished work for later
    2. A Git tag that's attached to the commit for each official release
    3. A label that's added to a bug ticket to show which feature it affects
    4. A runtime switch letting teams deploy code without exposing it yet

    Answer: D. A runtime switch letting teams deploy code without exposing it yet It separates deployment from release and enables gradual rollouts and quick rollback.

  9. What does "shift left" mean in the SDLC?

    1. Moving testing, security and quality work earlier
    2. Moving all deployments to Friday afternoons instead
    3. Assigning work to the left side of the office floor
    4. Delaying all testing until after the software's release

    Answer: A. Moving testing, security and quality work earlier Running static analysis and tests in pull requests is a typical shift-left practice.

  10. What is a feasibility study at the start of a project?

    1. A performance test that's run against the finished product before launch
    2. A user satisfaction survey that's sent out after the product is released
    3. Checking technical, financial and operational viability before committing
    4. A checklist that reviewers follow when reviewing each code change

    Answer: C. Checking technical, financial and operational viability before committing It may conclude that the project should not proceed.

Practice all 261 questions

More Development Practices