DOP-C02 SDLC automation explained
SDLC Automation is the largest DOP-C02 domain at 22% of scored content. It has four task statements: implement CI/CD pipelines, integrate automated testing, build and manage artifacts, and implement deployment strategies for instance, container and serverless environments. In short, you must know how code gets from a repository to production safely and repeatedly, and how to fix it when it does not.
1.1 CI/CD pipelines
Expect services such as CodePipeline, CodeBuild and CodeDeploy, plus source integration with version control. The guide mentions pipeline patterns for single and multi-account environments and managing build and deployment secrets with Secrets Manager or Parameter Store. A recurring idea is that pipelines should never contain plain-text credentials and that a cross-account pipeline assumes a role in the target account.
1.2 Automated testing
The guide lists unit, integration, acceptance and UI tests and security scans, and asks you to know where each belongs. Cheap, fast tests run early; slow or environment-dependent tests run later. Know that a build can fail on a non-zero exit code or on a test report below a threshold, and that load and performance tests can run as pipeline stages.
1.3 Artifacts
Artifacts are build outputs: packages, container images and machine images. The guide names CodeArtifact, S3 and ECR as repositories and EC2 Image Builder for automating image builds. Think about lifecycle: how long to keep artifacts, who can pull them and how permissions are granted.
1.4 Deployment strategies
This task statement carries the most exam weight within the domain. You should be able to compare the strategies for each platform.
| Strategy | Idea | Typical trade-off |
|---|---|---|
| All at once | Replace everything together | Fastest, highest risk, downtime possible |
| Rolling | Update batches | Reduced capacity during update, slower rollback |
| Rolling with additional batch | Add capacity first | Keeps capacity, costs a little more |
| Immutable | Launch a new fleet | Clean rollback, more resources briefly |
| Blue/green | Two environments, switch traffic | Fast rollback, duplicate cost during switch |
| Canary or linear | Shift a percentage over time | Limits blast radius, needs good alarms |
Differences by platform matter. CodeDeploy supports EC2 and on-premises, ECS and Lambda; Lambda deployments shift traffic between versions through aliases; ECS blue/green swaps target groups. The CodeDeploy agent on instances is a common troubleshooting topic.
Troubleshooting deployments
Failed deployments usually come down to permissions, a missing agent, a health check that never passes or a hook script that exits with an error. Read the deployment logs before changing the strategy.
How questions are framed
Look for words such as minimal downtime, fast rollback, least operational overhead and no in-place change. Each maps to a strategy: those words point to blue/green or immutable approaches over rolling or in-place.
Example questions
Question 1. A Lambda function behind an API receives steady traffic. A team wants each new version to receive 10 percent of requests for 10 minutes and roll back automatically if an alarm fires. What should they use?
- A. Overwrite the function code and watch metrics manually
- B. Create a second API Gateway stage and ask clients to switch
- C. A CodeDeploy canary configuration on a Lambda alias with an alarm
- D. Change the alias by hand after reading the logs
Show answer
Answer: C
CodeDeploy for Lambda can shift traffic between versions behind an alias using canary or linear configurations and can roll back on alarms. Redeploying the function in place sends all traffic at once, a manual alias change has no automatic rollback and creating a second API doubles the management work.
Want more questions like this? Full DOP-C02 practice tests →
Question 2. A pipeline in a tooling account must deploy to a production account. Which approach follows least privilege?
- A. A cross-account IAM role in production that the pipeline assumes
- B. Long-lived access keys stored in the build project environment variables
- C. An administrator role shared by all accounts
- D. Manual copying of artifacts to the production account
Show answer
Answer: A
The pipeline assumes a role in the production account that grants only the deployment permissions needed, and that role trusts the tooling account. Long-lived access keys are a leak risk, an administrator role is over-permissive, and copying code by hand skips the pipeline.
Want more questions like this? Full DOP-C02 practice tests →
Question 3. A team wants base machine images rebuilt every month with the latest patches, tested, and then made available to several accounts. Which service is the best fit?
- A. An EC2 launch template
- B. A manually created AMI updated by an administrator
- C. Amazon CloudFront
- D. EC2 Image Builder with a pipeline schedule and distribution settings
Show answer
Answer: D
EC2 Image Builder automates building, testing and distributing images on a schedule, including sharing to other accounts. A launch template only describes how to start instances, a manually maintained AMI is error prone and CloudFront distributes content, not machine images.
Want more questions like this? Full DOP-C02 practice tests →
Next step
Continue with configuration management and IaC and check the study plan for week one.