Testing and Deployment (22%)
Domain 3 is 22% of the scored content of the AWS Certified Developer – Associate (DVA-C03) exam. AWS facts were checked against current AWS documentation in November 2026.
| Task | Statement |
|---|---|
| 3.1 | Prepare application artifacts to be deployed to AWS |
| 3.2 | Implement and automate application testing in AWS environments |
| 3.3 | Deploy code by using AWS continuous integration and continuous delivery (CI/CD) services |
Overview
Domain 3: Testing and Deployment AWS Certified Developer – Associate (DVA-C03): artifacts, automated tests, CI/CD and safe releases
Welcome to Domain 3 of the AWS Certified Developer Associate exam, DVA-C03: Testing and Deployment. It is 22 percent of the scored content, about 11 of the 50 scored questions.
Task 3.1 is preparing artifacts: dependencies, container images in E C R, code repositories, environment configuration and API Gateway stages.
Task 3.2 is automated testing: tests with S A M and the C D K, mock A P Is, test events, separate environments and A I-generated tests.
Task 3.3 is deploying with C I C D: Lambda packaging, containers, infrastructure as code, CodeDeploy, CodePipeline, deployment strategies and rollback.
AWS S A M appears across all three tasks.
So do the Code services: CodeBuild, CodeDeploy, CodePipeline and CodeArtifact.
The key: test automatically, shift traffic gradually, and roll back automatically.
Exam key takeaway: Domain 3 tests packaging artifacts and images, automated testing in AWS environments, and shipping through CI/CD pipelines with gradual deployments and automatic rollback.
3.1 Prepare application artifacts to be deployed to AWS
Artifacts, Images and Repositories Task 3.1 · Package dependencies, build container images, and use repositories
- Dependencies: Task 3.1 starts with dependencies. Bundle libraries with your code or share them through Lambda layers, and host private packages in AWS CodeArtifact for npm, PyPI and Maven.
- Dockerfiles: Build container images from Dockerfiles with small base images and multi-stage builds, never baking secrets in, often with CodeBuild pushing the image.
- ECR tagging: Tag images in Amazon E C R with immutable tags, such as a version or git commit hash, so a tag always means the same image.
- ECR lifecycle: E C R lifecycle policies expire untagged or old images by count or age, and scanning finds vulnerabilities on push or continuously.
- Code repositories: Code lives in repositories such as CodeCommit, GitHub, GitLab or Bitbucket, connected to pipelines, where branches and tags drive deployments.
- Images vs zip for Lambda: Lambda accepts zip packages, up to 50 megabytes zipped for direct upload and 250 megabytes unzipped including layers, or container images up to 10 gigabytes.
Exam key takeaway: Use layers and CodeArtifact for dependencies, small multi-stage images with immutable ECR tags and lifecycle policies, repositories that drive pipelines, and the right Lambda package type.
Environment-Specific Configuration Task 3.1 · Keep one artifact, change only configuration per environment
| Service | Stores | Use For |
|---|---|---|
| AWS AppConfig | Validated config and feature flags with deployment strategies | Change behavior safely without redeploy |
| Parameter Store | Hierarchical parameters such as /prod/app/url | Plain and SecureString config |
| Secrets Manager | Credentials with rotation | Database passwords, API keys |
| Lambda | Environment variables, aliases pointing to versions | Per-alias behavior |
| API Gateway | Stages with stage variables and stage URLs | dev, test, prod endpoints |
Build one artifact and change only configuration per environment. AWS AppConfig delivers validated configuration and feature flags with gradual deployment strategies and automatic rollback on alarms.
Parameter Store keeps hierarchical parameters, such as a production path for each setting, in plain or SecureString form.
Secrets Manager stores credentials that need rotation, such as database passwords and A P I keys.
Lambda environment variables hold simple settings, and aliases such as dev and prod point to published versions.
API Gateway stages, such as dev, test and prod, each have their own U R L and stage variables, for example to point at different Lambda aliases.
Exam key takeaway: Promote one artifact and vary configuration: AppConfig for flags, Parameter Store and Secrets Manager for values, Lambda aliases and API Gateway stages for environments.
3.2 Implement and automate application testing in AWS environments
Automated Testing on AWS Task 3.2 · Unit, integration and contract tests with AWS tools
- AWS SAM CLI: Task 3.2 is testing. The S A M C L I runs functions and A P Is locally, generates sample events for services such as S3 and S Q S, and syncs to the cloud for fast iteration.
- CDK assertions: The C D K assertions library unit tests synthesized templates, catching wrong resource settings before deployment.
- Test events: Create J S O N test events to invoke Lambda functions and API Gateway methods, and share them with the team.
- Mock APIs: Use API Gateway mock integrations to return fixed responses for external dependencies, so front ends can test before back ends exist.
- Test environments: Create isolated test environments with Lambda aliases, container image tags, Amplify branch deployments and API Gateway stages. The guide also names AWS Copilot environments, but the Copilot C L I reached end of support in June 2026.
- AI-generated tests: A I tools such as Kiro generate tests from specifications, run them, analyze results and expand regression coverage, with developers reviewing the output.
Exam key takeaway: Test locally with the SAM CLI, unit test CDK templates, use JSON test events and mock integrations, isolate environments with aliases, tags, branches and stages, and let AI tools help with tests.
3.3 Deploy code by using AWS continuous integration and continuous delivery (CI/CD) services
Deployment Strategies by Service Task 3.3 · Know which strategies each service supports and how rollback works
| Service | Strategies | Rollback |
|---|---|---|
| Lambda (SAM + CodeDeploy) | Canary (e.g. 10% for 5 min), linear, all-at-once on an alias | Alarm-triggered rollback |
| ECS | Rolling update; blue/green with canary or linear shifts | Circuit breaker or alarm rollback |
| EC2 / on-premises (CodeDeploy) | In-place or blue/green with appspec lifecycle hooks | Redeploy last good revision |
| Elastic Beanstalk | All at once, rolling, rolling with batch, immutable, traffic splitting | Swap URLs for blue/green |
| API Gateway | Stage canary release settings | Promote or delete the canary |
| CloudFormation | Change sets; stack updates | Automatic rollback on failure |
Task 3.3 is deployment. For Lambda, S A M with CodeDeploy shifts alias traffic as canary, such as 10 percent for 5 minutes, linear, such as 10 percent every minute, or all at once, and rolls back on CloudWatch alarms.
E C S supports rolling updates and blue/green deployments with canary or linear traffic shifts, with the deployment circuit breaker or alarms rolling back failures.
CodeDeploy for EC2 and on-premises servers does in-place or blue/green deployments, running appspec lifecycle hooks such as BeforeInstall, AfterInstall, ApplicationStart and ValidateService.
Elastic Beanstalk offers all at once, rolling, rolling with an additional batch, immutable and traffic splitting, and blue/green by swapping environment U R Ls.
API Gateway stages support canary releases that send a percentage of traffic to a new deployment before promoting it.
CloudFormation previews updates with change sets and rolls back automatically when a stack update fails, or on alarms you configure as rollback triggers.
Exam key takeaway: Lambda shifts alias traffic with CodeDeploy, ECS does rolling or blue/green, CodeDeploy runs appspec hooks on servers, Beanstalk offers immutable and swaps, and CloudFormation rolls back.
Pipelines, IaC and Source Control Task 3.3 · Orchestrate builds and releases across environments
- CodePipeline: AWS CodePipeline orchestrates source, build, test and deploy stages, with manual approvals between environments, and starts when code is pushed to a linked repository.
- CodeBuild: CodeBuild runs the buildspec phases, install, pre-build, build and post-build, and produces artifacts and test reports.
- SAM templates: S A M templates use the serverless transform to expand short resource definitions into CloudFormation, deployed with sam build and sam deploy.
- CloudFormation: CloudFormation templates use parameters, mappings, outputs and exports, and intrinsic functions such as Ref and GetAtt, with cfn helper scripts on EC2.
- Branches and tags: Use source control branches and tags to manage releases, so each deployment maps to a labeled version.
- AI in CI/CD: A I tools can help in C I C D, by summarizing changes for approvals, provisioning test environments and validating deployments, while humans still approve production.
Exam key takeaway: CodePipeline orchestrates with approvals, CodeBuild follows buildspec phases, SAM expands to CloudFormation, templates use parameters and outputs, tags label releases, and AI assists checks.
Review
Exam Distractors: What to Reject Deployment answers that are risky, manual or simply wrong
- All-at-once Lambda deploy for a payment API. Canary or linear with alarms.
- Mutable latest tag in production. Immutable version tags.
- Rebuilding the artifact for each stage. Build once, promote one artifact.
- Separate code branch per environment config. AppConfig or Parameter Store.
- Waiting for a real back end before testing. API Gateway mock integration.
- New ECS environments with the Copilot CLI. CDK, SAM or ECS Express Mode.
Exam key takeaway: Reject all-at-once for critical APIs, mutable production tags, per-stage rebuilds, config branches, waiting for back ends, and new work on the retired Copilot CLI.
Where current AWS differs from the exam guide
- Skill 3.2.4 names AWS Copilot environments, but the AWS Copilot CLI reached end of support on June 12, 2026.
- AWS CodeCommit returned to general availability on November 24, 2025.
References
- AWS Certified Developer – Associate exam page — checked Nov 30, 2026
Check your understanding
Shift 10% of Lambda traffic for 5 minutes, then all, rolling back on errors.Show answerHide answer
Answer
CodeDeploy canary via SAM.Run a function locally with a sample S3 event.Show answerHide answer
Answer
sam local invoke with generate-event.Host private npm packages for builds.Show answerHide answer
Answer
AWS CodeArtifact.Beanstalk update on fresh instances, no capacity loss.Show answerHide answer
Answer
Immutable deployment.Validate the app after CodeDeploy installs it on EC2.Show answerHide answer
Answer
ValidateService hook.