AWS Certified Developer – Associate (DVA-C02)DeploymentEasy

A company is planning to migrate an on-premises application to AWS. The application consists of several web servers and a database. They want to use AWS CodeDeploy for automated deployments to Amazon EC2 instances. To prepare the on-premises servers for CodeDeploy, they need to install and configure an agent. Which agent needs to be installed on the on-premises servers to enable CodeDeploy deployments?

  1. AAWS CodeDeploy Agent
  2. BAWS Systems Manager Agent (SSM Agent)
  3. CAWS CLI
  4. DAWS CloudWatch Agent
Show answer & explanation

Correct answer: A. AWS CodeDeploy Agent

To enable AWS CodeDeploy to deploy applications to Amazon EC2 instances or on-premises servers, the AWS CodeDeploy agent must be installed on those target instances. This agent is responsible for downloading application revisions, running deployment scripts, and reporting deployment status back to CodeDeploy.

Why the other options are wrong

  • B. SSM Agent is for Systems Manager capabilities like run commands, patch management, etc., not directly for CodeDeploy deployments.
  • C. AWS CLI is a command-line interface for interacting with AWS services, not an agent that facilitates application deployments on target servers.
  • D. CloudWatch Agent is for collecting metrics and logs, not for application deployments.

CodeDeploy Agent

A software package that runs on target instances (EC2 or on-premises) and is responsible for managing deployments orchestrated by AWS CodeDeploy.

  • Required for CodeDeploy deployments to EC2/on-premises.
  • Downloads application revisions from S3/GitHub.
  • Executes scripts defined in the AppSpec file.
  • Reports deployment status to CodeDeploy.

Memory trick: Agent of CodeDeploy, on-prem server's best way.

More Deployment questions