Understanding DevOps and the Software Delivery Lifecycle
DevOps is a set of cultural practices and technical capabilities that shortens the time between writing a change and running it safely in production. This lesson explains the principles behind DevOps, the stages of the software delivery lifecycle and the AWS services that automate each stage, so that later lessons can be read as parts of a single system rather than as isolated tools.
Learning outcomes
After completing this lesson, you will be able to:
- Explain the principles of DevOps and why they reduce delivery risk.
- Describe the stages of the software delivery lifecycle and the AWS services used in each stage.
- Distinguish between the delivery performance measures commonly used to assess a DevOps practice.
- Recognise the operating responsibilities that the DOP-C02 exam assigns to a DevOps engineer.
Why DevOps Exists
Traditional delivery separated the people who wrote software from the people who ran it. Developers were measured on how many features they shipped, and operations teams were measured on stability. Because change is the main cause of outages, the two goals conflicted: operations teams slowed releases down with long change-approval processes, and releases became large, infrequent and risky. A release that bundles three months of work is hard to test, hard to diagnose when it fails and hard to roll back, which in turn makes the next release even more cautious.
DevOps resolves this conflict by making small, frequent changes the safest way to work. When a change is small, it is easy to review, the automated tests that cover it run quickly, and a failure can be traced to a single commit. The same team that builds a service is responsible for running it, so operational concerns such as logging, alarms and rollback are designed in from the start instead of being added after a failure. Automation replaces manual hand-offs, so every change follows the same repeatable path to production.
On AWS, DevOps is implemented through managed services that remove the undifferentiated work of running build servers, deployment tooling and monitoring infrastructure. The DOP-C02 exam assumes that you can combine these services into a complete delivery and operations system, and that you can choose between them when several could meet a requirement.
Core Principles
Several principles appear repeatedly in DevOps practice and in exam scenarios. Each principle describes a behaviour that reduces risk or increases speed, and most exam questions reward the answer that applies them.
Automate everything that is repeated
Any task that is performed more than once, such as building code, provisioning infrastructure, applying patches or rotating credentials, should be automated. Automation makes the task consistent, records what was done and removes the delay of waiting for a person. In exam questions, an answer that relies on an administrator remembering to perform a manual step is almost always inferior to one that performs the step automatically.
Treat infrastructure as code
Infrastructure as code (IaC) describes servers, networks, databases and permissions in version-controlled templates. The template becomes the single source of truth: environments are created from it, changes to it are reviewed like application code, and an environment that has drifted from it can be detected and corrected. AWS CloudFormation, the AWS Cloud Development Kit (AWS CDK) and the AWS Serverless Application Model (AWS SAM) are the IaC tools covered by the exam.
Make small, frequent, reversible changes
Small changes reduce the blast radius of a failure. Reversibility means that every deployment has a defined way to return to the previous version, such as shifting traffic back to the previous environment in a blue/green deployment or rolling back a CloudFormation stack.
Measure and observe
Teams cannot improve what they cannot see. Metrics, logs and traces show whether a change has affected users, and they provide the signals that automated deployments use to decide whether to continue or roll back. Amazon CloudWatch and AWS X-Ray provide these signals on AWS.
Shift quality and security left
Shifting left means detecting problems as early in the lifecycle as possible, when they are cheapest to fix. Unit tests run on every commit, static analysis and dependency scanning run during the build, and template validation runs before infrastructure is changed. Security controls are applied by the pipeline rather than by a review at the end.
Design for failure
Components fail, so systems are designed to tolerate failure through redundancy across Availability Zones, automatic recovery and graceful degradation. Failure is also rehearsed deliberately, for example with AWS Fault Injection Service (AWS FIS), so that recovery procedures are known to work.
The Software Delivery Lifecycle on AWS
The software delivery lifecycle describes the path a change takes from a developer's workstation to production and the feedback that flows back. The following stages are used throughout this guide. The table after the descriptions summarises the main AWS services for each stage.
- Source. Developers commit changes to a Git repository. A commit, a pull request or a tag starts the automated process.
- Build. Source code is compiled, dependencies are resolved and packaged, and deployable artifacts such as container images, ZIP archives or Amazon Machine Images (AMIs) are produced.
- Test. Automated tests run at several levels: unit, integration, security, performance and acceptance. A failed test stops the change.
- Release and store. Versioned artifacts are stored in repositories so that the exact artifact that was tested is the one that is deployed.
- Deploy. The artifact is released to an environment using a strategy that limits risk, such as rolling, blue/green or canary deployment.
- Operate and monitor. Metrics, logs, traces and events show how the change behaves. Alarms and automated responses handle failures.
- Learn. Incidents and measurements feed back into the backlog, into new tests and into improved runbooks.
The table below maps each lifecycle stage to the AWS services that the exam associates with it.
| Stage | Main AWS services | Typical output |
|---|---|---|
| Source | Git providers through AWS CodeConnections, Amazon S3, Amazon ECR as a source | A commit or image that starts a pipeline |
| Build | AWS CodeBuild, EC2 Image Builder, AWS Lambda for custom steps | Packages, container images, AMIs |
| Test | CodeBuild test reports, AWS CodePipeline test actions, AWS Step Functions | Test and coverage reports, a pass or fail result |
| Release and store | AWS CodeArtifact, Amazon ECR, Amazon S3 | Versioned, immutable artifacts |
| Deploy | AWS CodeDeploy, CloudFormation, Amazon ECS, AWS Elastic Beanstalk, AWS AppConfig | A new version running in an environment |
| Operate and monitor | Amazon CloudWatch, AWS X-Ray, Amazon EventBridge, AWS Systems Manager, AWS Config | Alarms, dashboards, automated remediation |
| Govern and secure | AWS Organizations, AWS Control Tower, AWS Security Hub, Amazon GuardDuty, IAM | Guardrails applied across accounts |
The following diagram shows the lifecycle stages with their main AWS services.

Measuring Delivery Performance
Delivery performance is commonly assessed with four measures that were popularised by the DevOps Research and Assessment (DORA) programme. Two measure speed and two measure stability, and high-performing teams improve both at the same time rather than trading one for the other.
- Deployment frequency
- How often an organisation successfully releases to production. Small, automated releases increase it.
- Lead time for changes
- The time from a commit to that commit running in production. Pipeline automation and fast tests reduce it.
- Change failure rate
- The percentage of deployments that cause a failure in production and need remediation. Automated testing and progressive deployment reduce it.
- Time to restore service
- How long it takes to recover from a failure in production. Automated rollback, alarms and runbooks reduce it.
These measures explain why many exam answers favour automated rollback triggered by CloudWatch alarms: the automation lowers the time to restore service without lowering deployment frequency. They also explain why answers that add a long manual approval to every environment are rarely the best choice unless a scenario explicitly requires human sign-off.
Speed or stability?
The Role of the DevOps Engineer in the Exam
The DOP-C02 exam is aimed at engineers with two or more years of experience provisioning, operating and managing AWS environments. It is organised into six domains. Domain 1 (SDLC Automation, 22%) covers pipelines, testing, artifacts and deployment strategies. Domain 2 (Configuration Management and IaC, 17%) covers CloudFormation, the AWS CDK, AWS SAM, multi-account provisioning and Systems Manager. Domain 3 (Resilient Cloud Solutions, 15%) covers high availability, scalability and recovery. Domain 4 (Monitoring and Logging, 15%) covers metrics, logs, tracing and automated monitoring. Domain 5 (Incident and Event Response, 14%) covers event-driven automation and troubleshooting. Domain 6 (Security and Compliance, 17%) covers identity, data protection and security monitoring at scale.
Questions are scenario based. A typical question describes an organisation, a current architecture and several requirements, such as minimising operational overhead, meeting a recovery time objective or applying a control to every account. Several options would work; the correct option is the one that meets every stated requirement with the least custom code and manual effort. Learning to identify the decisive requirement is therefore as important as knowing each service.
Reading exam scenarios
When two options both meet the functional requirement, prefer the one that uses a managed AWS feature over custom scripts, that applies the control centrally rather than per resource, and that responds to events rather than polling on a schedule.
Mapping a Manual Process to a DevOps Workflow
A retail company deploys a web application once a month. A developer builds a ZIP file on a laptop, emails it to the operations team, and an administrator copies it to each Amazon EC2 instance during a four-hour maintenance window. Failures are diagnosed by connecting to instances with SSH and reading log files. The company wants to release weekly without increasing the number of incidents.
The following steps show how each part of the manual process is replaced.
-
Source
The code moves to a Git repository. Merges to the main branch start an AWS CodePipeline pipeline through an AWS CodeConnections connection, so no person has to start a release.
-
Build and test
AWS CodeBuild builds the application from a buildspec file in the repository and runs unit tests. The build fails if a test fails, so a broken change never becomes an artifact.
-
Store
The build output is stored as a versioned artifact in Amazon S3, so the artifact that was tested is the one that is deployed.
-
Deploy
AWS CodeDeploy performs a blue/green deployment to a new Auto Scaling group behind the Application Load Balancer. Traffic moves only after the new instances pass health checks.
-
Observe and roll back
CloudWatch alarms on the error rate are attached to the deployment group. If an alarm enters the ALARM state, CodeDeploy rolls back automatically.
-
Operate
Logs are sent to Amazon CloudWatch Logs by the CloudWatch agent, and Session Manager replaces SSH, so no inbound ports are open and every session is logged.
The result increases deployment frequency, shortens lead time and lowers both the change failure rate and the time to restore service. Each of these services is covered in detail in later modules.
A team releases quarterly because each release needs a weekend of manual testing. Which DevOps principle most directly addresses the cause of the slow releases?
Show answer
Automating repeated work, in this case the tests. Automated tests run on every change in minutes, which makes small, frequent releases safe and removes the need for a large manual test cycle.
Exam Tips
Remember for the exam
- The exam rewards solutions that automate repeated tasks, apply controls centrally and respond to events rather than relying on manual steps or scheduled polling.
- Small, frequent and reversible changes reduce risk; answers that bundle changes into large releases or lack a rollback path are usually wrong.
- Know the six domains and their weights: SDLC Automation (22%) is the largest, followed by Configuration Management and IaC (17%) and Security and Compliance (17%).
- When several options work, choose the one with the least operational overhead that still meets every stated requirement.