nerdexam
Amazon

DVA-C02 · Question #430

A developer is working on an application that will be deployed on AWS. The developer needs to test and debug the code locally. The code is packaged and stored in an Amazon S3 bucket. How can the devel

The correct answer is D. Install the AWS CodeDeploy agent locally to validate the deployment package. Run the. Installing the CodeDeploy agent locally lets the developer validate and test the deployment package without any cloud infrastructure, requiring the least configuration.

Submitted by yaw92· Mar 5, 2026Deployment

Question

A developer is working on an application that will be deployed on AWS. The developer needs to test and debug the code locally. The code is packaged and stored in an Amazon S3 bucket. How can the developer test and debug the code locally with the LEAST amount of configuration?

Options

  • ACreate an application and a deployment group in AWS CodeDeploy. For the compute platform,
  • BCreate a repository in AWS CodeArtifact. Publish the application code package to the repository.
  • CCreate a build project in AWS CodeBuild. In AWS CodePipeline, add a CodeBuild test action by
  • DInstall the AWS CodeDeploy agent locally to validate the deployment package. Run the

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    13% (4)
  • C
    3% (1)
  • D
    80% (24)

Why each option

Installing the CodeDeploy agent locally lets the developer validate and test the deployment package without any cloud infrastructure, requiring the least configuration.

ACreate an application and a deployment group in AWS CodeDeploy. For the compute platform,

Creating a CodeDeploy application and deployment group requires provisioning AWS infrastructure (such as EC2 instances) and configuring deployment targets, which adds significant setup overhead for local testing.

BCreate a repository in AWS CodeArtifact. Publish the application code package to the repository.

AWS CodeArtifact is a package repository; publishing to it and then testing locally still requires additional tooling to pull and execute the package, adding unnecessary configuration steps.

CCreate a build project in AWS CodeBuild. In AWS CodePipeline, add a CodeBuild test action by

Creating a CodeBuild project and CodePipeline action tests code in the AWS cloud, not locally, and requires setting up a full pipeline which is far more configuration than local agent testing.

DInstall the AWS CodeDeploy agent locally to validate the deployment package. Run theCorrect

The AWS CodeDeploy agent can be installed on a local machine and used to simulate a deployment from a local package, allowing the developer to test AppSpec hooks, scripts, and package contents without creating any cloud resources or pipelines.

Concept tested: Local CodeDeploy agent for deployment package validation

Source: https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice