Courseiva
DeploymentmediumMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

A team uses AWS CodeCommit for source control and wants to automatically trigger a build and deployment when code is pushed to the master branch. Which AWS service should be used to create this automation?

⚠ Common exam trap

Many candidates confuse individual services (CodeBuild for building, CodeDeploy for deploying) with the orchestration service (CodePipeline) needed to chain them together in response to a source code event.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

AWS CodePipeline

AWS CodePipeline is the correct service because it is a fully managed continuous delivery service that can be configured to automatically start a pipeline execution when a change is pushed to a specific branch in AWS CodeCommit. By setting the source stage to the CodeCommit repository and master branch, CodePipeline triggers subsequent build and deploy actions without manual intervention, enabling a complete CI/CD workflow.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • AWS CodeBuild

    Why it's wrong here

    AWS CodeBuild is a fully managed continuous integration service that compiles source code, runs tests, and produces software packages ready for deployment. While it processes code, it does not inherently monitor or initiate a CI/CD workflow directly from CodeCommit. CodeBuild requires an external trigger, typically from AWS CodePipeline or a webhook, to start a build process in response to changes in a source repository, serving as a crucial stage within a larger pipeline.

  • AWS CodePipeline

    Why this is correct

    AWS CodePipeline is a fully managed continuous delivery service that automates release pipelines for fast and reliable application and infrastructure updates. It seamlessly integrates with AWS CodeCommit as a primary source stage, automatically detecting code changes (e.g., pushes to a specific branch) and initiating the entire pipeline workflow. CodePipeline orchestrates subsequent stages like build, test, and deploy using other AWS services, making it the ideal choice for end-to-end CI/CD.

  • AWS Lambda

    Why it's wrong here

    AWS Lambda is a serverless compute service that runs code in response to events and automatically manages the underlying compute resources. Although CodeCommit can trigger Lambda functions via repository events, using Lambda alone to construct and manage a complete CI/CD pipeline (including build, test, and deployment stages) would involve extensive custom scripting and maintenance. This approach is significantly less efficient and robust than leveraging dedicated CI/CD orchestration services like CodePipeline.

  • AWS CodeDeploy

    Why it's wrong here

    AWS CodeDeploy is a deployment service that automates application deployments to various compute services such as Amazon EC2, AWS Lambda, and Amazon ECS. Its primary function is to deploy application revisions, which are typically artifacts produced by a build process. CodeDeploy does not directly integrate with CodeCommit as a source to monitor code changes or initiate a deployment workflow; it consumes deployment packages from locations like Amazon S3 or CodeBuild.

About these practice questions

This DVA-C02 question is part of Courseiva's 724-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.