Courseiva
Deployment →easyMultiple Select

DVA-C02 Deployment Practice Question

Which TWO AWS services can be used to automatically deploy code to Amazon EC2 instances? (Choose two.)

⚠ Common exam trap

Watch out — candidates often confuse AWS CloudFormation's ability to deploy infrastructure with deploying application code, or they mistakenly think AWS CodeBuild's build process includes deployment, when in fact CodeBuild only produces artifacts and requires a separate service like CodeDeploy for actual deployment.

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 Elastic Beanstalk

AWS Elastic Beanstalk is a PaaS service that automates the deployment of applications to EC2 instances by handling capacity provisioning, load balancing, and health monitoring. It automatically deploys code when you upload a new application version, making it a correct choice for automated deployment to EC2.

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 Elastic Beanstalk

    Why this is correct

    AWS Elastic Beanstalk is a fully managed Platform as a Service (PaaS) that automatically handles the deployment, provisioning, and scaling of application code. Developers simply upload their application, and Beanstalk provisions and manages the underlying infrastructure, including EC2 instances, load balancers, and databases, enabling rapid and automated code deployment without manual server configuration.

  • ✓

    AWS CodeDeploy

    Why this is correct

    AWS CodeDeploy is a deployment service that automates application deployments to various compute services, including Amazon EC2 instances, AWS Lambda functions, and Amazon ECS. It orchestrates the deployment process, managing updates across fleets of instances with strategies like in-place or blue/green deployments, ensuring minimal downtime and consistent application delivery.

  • ✗

    AWS CloudFormation

    Why it's wrong here

    AWS CloudFormation is an Infrastructure as Code (IaC) service used for provisioning and managing AWS resources through declarative templates. While it can define the infrastructure *on which* applications are deployed, it does not directly deploy application code itself; its primary function is to create, update, and delete AWS services like EC2 instances, not to push application binaries to them.

  • ✗

    AWS OpsWorks

    Why it's wrong here

    AWS OpsWorks provides configuration management services using Chef and Puppet to automate server configuration, software installation, and application deployment. While it can deploy applications as part of its lifecycle management, its core strength lies in managing the operational configuration of instances and applications, rather than being a dedicated, streamlined service solely for automated code deployment like CodeDeploy or Elastic Beanstalk.

  • ✗

    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 is a build service designed to process code *before* deployment, transforming raw source into executable packages or container images. CodeBuild does not perform the actual deployment of these artifacts to target environments.

About these practice questions

One of 1,135 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.