A developer must test and debug an application locally. The application's deployment package is stored in Amazon S3. Which approach lets the developer run the code locally with the least setup?
Choose an answer
Tap an option to check your answer.
Correct answer: Install the AWS CodeDeploy agent on the local machine and run the codedeploy-local command, providing the S3 bucket location of the deployment bundle with the --bundle-location option..
Why this is the answer
The codedeploy-local command, part of the AWS CodeDeploy agent, is specifically designed for local testing of CodeDeploy deployments. By installing the agent and using this command with the S3 bundle location, developers can simulate a CodeDeploy deployment on their local machine, making it the most direct and least-setup approach for local testing. Creating an AWS CodeDeploy application and deployment group for a local machine is overly complex for simple local testing and not the intended use of CodeDeploy for local debugging. AWS CodeArtifact is a package manager, not a tool for running or debugging application code locally. AWS CodeBuild is a continuous integration service for building and testing code in the cloud, not for running applications locally.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed