DVA-C02 · Question #430
DVA-C02 Question #430: Real Exam Question with Answer & Explanation
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.
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
Explanation
Installing the CodeDeploy agent locally lets the developer validate and test the deployment package without any cloud infrastructure, requiring the least configuration.
Common mistakes.
- A. 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.
- B. 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.
- C. 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.
Concept tested. Local CodeDeploy agent for deployment package validation
Reference. https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent.html
Community Discussion
No community discussion yet for this question.