0%
AWS Developer Associate (DVA-C03) Exam Prep: Development, Security, Testing, Deployment and Troubleshooting
How the Exam Works
Domain 1: Development with AWS Services
Domain 2: Security
Domain 4: Troubleshooting and Optimization
New in DVA-C03: Containers and AI
Final Review and Mock Exams
CI/CD Pipelines with the AWS Developer Tools
The Deployment domain is worth about a quarter of the exam, and a large share of its questions are about the AWS developer tools: CodeBuild, CodeDeploy, CodePipeline and CodeArtifact, plus the question of where your source code lives. The exam treats these services from a developer's point of view. It expects you to know which file controls a build, which hook runs a database migration, why a deployment failed on two instances out of ten, and which action pauses a pipeline until a manager says yes. This lesson walks through each tool in the order a commit meets them, then closes with testing and the exam traps.
The neighbouring lessons own related material. Infrastructure as code with CloudFormation, SAM and the CDK is the next lesson, and the strategies for shifting traffic, such as canary, linear, rolling and blue green, are in the lesson after that. Here you learn the mechanics of the tools; there you learn how to choose a rollout shape.
What CI and CD mean on the exam
Continuous integration means every change is merged into a shared branch often, and each merge triggers an automated build and test run. The point is to catch a broken build within minutes of the commit that broke it, while the author still remembers what they changed. Continuous delivery means every change that passes the automated checks produces a release candidate that could be deployed to production, usually with a human approval before it goes out. Continuous deployment goes one step further: a change that passes every check goes to production with no human step at all.
The exam uses these words precisely. If a scenario says the team wants every passing commit in production automatically, that is continuous deployment and the answer will not include a manual approval action. If it says releases must be signed off by a change manager, the answer includes an approval action in front of the production stage. Read for the word that tells you whether a human is in the loop.
How the four services fit together
Picture one commit travelling through a pipeline. CodePipeline is the orchestrator: it watches the source, starts each stage in order, passes artifacts between stages and records what happened. CodeBuild is the worker that compiles code, runs tests and packages output; it has no idea it is part of a pipeline, it just runs a buildspec in a container. CodeDeploy takes a packaged revision and installs it onto EC2 instances, on-premises servers, Lambda functions or ECS services, running hooks along the way. CodeArtifact is a package repository that builds pull dependencies from and publish libraries to.
A useful way to remember the split: CodePipeline decides when, CodeBuild decides how to build, CodeDeploy decides how to install. When a question asks which service runs unit tests, the answer is CodeBuild, not CodePipeline. When it asks which service runs a script on each instance after the new files are copied, the answer is CodeDeploy. When it asks which service makes the whole process start on every push, it is CodePipeline, triggered by the source.
CodeCommit and its status
CodeCommit is AWS's managed Git service. Repositories are private, encrypted at rest with KMS, and access is controlled with IAM rather than with a separate user database. Developers connect over HTTPS with Git credentials generated for their IAM user, over SSH with a key uploaded to their IAM user, or, best of all for federated users and roles, with the git-remote-codecommit helper that signs requests with temporary credentials from the normal credential chain.
CodeCommit's status has changed in recent years. In 2024 AWS stopped onboarding new customers to it and pointed people toward external Git providers, and it later reversed that decision and returned the service to general availability. For the exam, the safe position is this: CodeCommit is a valid source for CodePipeline and you should know its access methods and notifications, but questions increasingly show GitHub, GitLab or Bitbucket as the source, connected through a connection resource. Check the current service page if you are choosing for real work.
CodeCommit can send events to EventBridge and notifications to SNS or chat through notification rules, and it supports approval rule templates on pull requests, such as requiring two approvals from members of a release team before a merge. Triggers on a repository can invoke a Lambda function or publish to SNS on a push.
Connections to GitHub, GitLab and Bitbucket
For external providers, CodePipeline uses a connection resource from AWS CodeConnections (formerly CodeStar Connections). You create the connection once, complete an OAuth style handshake in the console, and from then on the pipeline's source action references the connection's ARN plus a repository and branch. The connection installs an app on the provider side, which sends webhook events, so the pipeline starts within seconds of a push without polling.
The older GitHub version 1 source action used a personal access token stored in the pipeline and is not the recommended path. If an answer option mentions storing a long lived GitHub token in the pipeline and another uses a connection, choose the connection. The pipeline's service role needs permission to use the connection, which is the codestar-connections:UseConnection action or its CodeConnections equivalent.
S3 and ECR as sources
A pipeline does not need Git at all. An S3 source action watches a versioned bucket and a specific object key, often a zip file uploaded by another system. The bucket must have versioning enabled, because the pipeline tracks object versions as revisions. Change detection uses an EventBridge rule on the object's write event, which the console creates for you; older pipelines polled the bucket, and the exam may still mention CloudTrail as the mechanism that makes those S3 events available to EventBridge.
An ECR source action starts the pipeline when a new image is pushed with a given tag. That is common for container workloads where a separate team builds base images. Whichever source you use, the source action outputs an artifact, a zip in the pipeline's artifact bucket, and every later action references it by name.
What the interviewer and the exam are checking
Questions in this area usually have one of three shapes. Some describe a manual process, such as a developer zipping code and copying it to servers by hand, and ask for the least effort way to automate it; the answer is a pipeline with the right source, CodeBuild and CodeDeploy. Some describe a failure and ask where to look, such as a build that passes locally and fails in CodeBuild. Some describe a control requirement, such as an approval, a separation of accounts or an audit trail, and ask which feature provides it. In every shape, knowing which service owns which job eliminates half the options immediately.
A worked example: from manual copies to a pipeline
Consider a small team that deploys a Node.js API to four EC2 instances. Today a developer runs the tests on their laptop, zips the project, copies it to each server with scp and restarts the process. Releases take an hour, and twice last month someone forgot to run the tests first. The exam style question asks for the most automated approach with the least operational overhead.
The answer has four parts. The repository stays where it is, in GitHub, and a connection lets CodePipeline see each push to main. A CodeBuild project runs npm ci and npm test, then packages the application together with an appspec.yml and its hook scripts as the build artifact. A CodeDeploy application with a deployment group targets the four instances by tag, with the agent installed on each, and the deployment group is attached to the load balancer so each instance is taken out of service while it updates. CodePipeline ties the three together, so a push to main produces a tested release on every server without anyone touching a terminal.
Notice what the answer does not include. It does not add a Jenkins server, because that is more to operate. It does not use a Lambda function to copy files, because CodeDeploy already does that with hooks and rollback. It does not use CloudFormation to replace the instances on every release, which is a different pattern with a slower feedback loop. Questions in this area reward the answer that uses each managed tool for its own job.
Notifications and the audit trail
Every developer tool can send notifications through notification rules: pick the resource, pick the events, such as build failed, deployment succeeded or approval needed, and pick a target, an SNS topic or a chat client channel. For anything more selective, every tool also emits detailed events to EventBridge, where a rule can match a specific project, stage or state and route it to Lambda, SQS or Step Functions.
CloudTrail records the API calls behind all of this: who started a build, who changed a deployment group, who approved a pipeline action. If a question asks who approved last night's release, the answer is CloudTrail, not CloudWatch metrics. If it asks how to alert the team automatically when a build fails, the answer is a notification rule or an EventBridge rule on the build state change event.
CodePipeline decides when work happens and moves artifacts. CodeBuild runs the build and the tests. CodeDeploy installs a revision and runs lifecycle hooks. Most wrong options give one service another service's job.