Courseiva
DeploymenteasyMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

A development team wants to automatically deploy a web application to Amazon EC2 instances when new code is pushed to the master branch of an AWS CodeCommit repository. Which AWS service should the team use to orchestrate the build, test, and deployment phases?

⚠ Common exam trap

It's easy for candidates to confuse AWS CodeBuild with CodePipeline because both can be triggered by CodeCommit pushes, but CodeBuild alone cannot orchestrate multiple sequential phases like testing and deployment, which is the key requirement in the question.

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 orchestrates the entire build, test, and deployment phases as a pipeline. It can be configured to automatically trigger on code pushes to the master branch of an AWS CodeCommit repository, then invoke AWS CodeBuild for building and testing, and finally deploy to EC2 instances via AWS CodeDeploy, providing end-to-end automation.

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 CloudFormation

    Why it's wrong here

    AWS CloudFormation is primarily designed for provisioning and managing AWS infrastructure as code, allowing developers to define resources like EC2 instances, databases, and networking components in templates. While it can deploy infrastructure necessary for a web application, it does not inherently handle the compilation, testing, or continuous deployment of the application's code onto that infrastructure. Its role is infrastructure creation and updates, not application release orchestration.

  • AWS CodeBuild

    Why it's wrong here

    AWS CodeBuild is a fully managed continuous integration service that compiles source code, runs unit tests, and produces deployable artifacts. It serves as a vital component within a CI/CD pipeline, specifically executing the build and test phases. However, CodeBuild itself does not orchestrate the entire end-to-end process, which includes fetching source code from repositories, managing approval steps, or deploying the built application to target environments.

  • AWS CodePipeline

    Why this is correct

    AWS CodePipeline is a fully managed continuous delivery service that automates release pipelines for rapid and reliable application and infrastructure updates. It orchestrates the entire CI/CD workflow, seamlessly integrating with various AWS services like CodeCommit for source, CodeBuild for build and test, and CodeDeploy for deployment. This comprehensive orchestration capability makes it the ideal choice for automatically deploying a web application through a defined, multi-stage pipeline.

  • AWS CodeDeploy

    Why it's wrong here

    AWS CodeDeploy is a service that automates application deployments to a variety of compute services, including Amazon EC2, AWS Fargate, AWS Lambda, and on-premises servers. Its core function is to execute the deployment of application revisions to target environments. However, CodeDeploy does not manage the preceding stages of a complete CI/CD pipeline, such as retrieving source code, compiling it, or running automated tests; it solely focuses on the deployment action itself.

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.